Ask Computer Engineering Expert

1. A DBMS performs several important functions that guarantee the integrity and consistency of the data in the database. Which of the following is NOT one of those functions? 
Multiuser access control
Data integrity management
Database access languages
End of month reports 

2. Data constitutes the building blocks of _____________. 
information
processing
applications
programming 

3. A relationship is an association between_____________. 
objects.
entities.
databases.
fields. 

4. A field that consists of integer values is a _________ type field. 
Date/Time
Yes/No
Memo
Numeric

5. Composite primary keys are particularly useful as identifiers of composite entities, where each primary key combination is allowed only once in the ____ relationship. 
null
1:1
1:M
M:N 

6. The extended entity relationship model (EERM) is sometimes referred to as the ____. 
entity relationship model
enhanced entity relationship model
entity clustering relationship model
extended entity relationship doctrine 

7. A table that has all key attributes defined, has no repeating groups, and all its attributes are dependent on the primary key, is said to be in_____________. 
1NF.
2NF.
3NF.
4NF.
BCNF. 

8. Which of the following SQL statements would select data from all of the rows and columns in the DEVRY table? 
SELECT all FROM devry;
SELECT * FROM devry;
SELECT devry;
SHOW * FROM devry; 

1. When creating a table, which of the following statements is NOT correct? 
The schema of the table must be explicitly stated.
A user can have two tables with the same name, as long as the column names are different.
The column list must be enclosed in parentheses ( ).
Default values cannot be assigned to all columns in a table. 

2. Which of the following SQL statements would you use to create a table named DEVRY? 
CREATE Devry 
(
Student_id NUMBER (12),
Student_name VARCHAR2 (15),
Student_city VARCHAR2 (12) 
);
CREATE TABLE Devry 
(
Student_id NUMBER (12)
Student_name VARCHAR2 (15)
Student_city VARCHAR2 (12) 
);
CREATE TABLE Devry 
(
Student_id NUMBER (12),
Student_name VARCHAR2 (15),
Student_city VARCHAR2 (12) 
);
CREATE TABLE Devry 
Student_id NUMBER (12),
Student_name VARCHAR2 (15),
Student_city VARCHAR2 (12); 

3. The ____ constraint requires that a specific condition be met before a record can be added to a table. 
UNIQUE
REFERENCE
CONDITION
CHECK 

4. A FOREIGN KEY constraint can only reference a column in another table that has been assigned a(n) _________ constraint. 
NOT NULL
UNIQUE
CHECK
PRIMARY KEY 

5. Which of the following commands will increase the size of the CITY column in the CUSTOMERS table from 12 to 20 and increase size of the LASTNAME column from 10 to 14? 
ALTER TABLE customers
MODIFY (city VARCHAR2(+8), lastname VARCHAR2(+4));
ALTER TABLE customers
MODIFY (city VARCHAR2(20), lastname VARCHAR2(14));
ALTER TABLE customers
MODIFY (city (+8), lastname (+4));
ALTER TABLE customers
MODIFY (city (20), lastname (14)); 

6. Which of the following keywords is used to remove a database table in Oracle? 
DROP TABLE
ALTER TABLE...DROP
DELETE TABLE
TRUNCATE TABLE 

7. When a column is added to a table, it is the _________ column in the table. 
first
last
second
third 

8. Given a table named EMPLOYEE, the SQL command to sort records in a specific order would be: 
SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE
FROM EMPLOYEE
LIST BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE
FROM EMPLOYEE
ORDER BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE
FROM EMPLOYEE
DISPLAY BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE
FROM EMPLOYEE
SEQUENCE BY EMP_LNAME, EMP_FNAME, EMP_INITIAL; 

1. (TCO 7) Which of the following can only be used to link tables that have a common column? 
FULL OUTER JOIN
JOIN...ON
NATURAL JOIN
CROSS JOIN 


2. To list a unique value, where the list will produce only a list of those values that are different from one another, you will prepare the command_____________. 
SELECT ONLY V-CODE
FROM PRODUCT;
SELECT UNIQUE V-CODE
FROM PRODUCT;
SELECT DIFFERENT V-CODE
FROM PRODUCT;
SELECT DISTINCT V-CODE
FROM PRODUCT; 

3. A(n) ___________ clause cannot include a group function. 
WHERE
HAVING
ORDER BY
FROM 

4. Which of the following format elements will display insignificant leading zeros? 
$999
0009999
99.999
9,999.990 

5. (TCO 8) Which of the following is an accurate statement? 
When the LOWER function is used in a SELECT clause, it will automatically store the data in lower-case letters in the database table.
When the LOWER function is used in a SELECT clause, the function stays in affect for the remainder of that user's session.
When the LOWER function is used in a SELECT clause, the function only stays in affect for the duration of that SQL statement.
When the LOWER function is used in a SELECT clause, the function only affects the first column in the result set. 

6. (TCO 9) The column to be updated by the UPDATE command is specified in the ______ clause. 
UPDATE
SET
WHERE
COL 

7. (TCO 9) Which of the following SQL statements would insert a line of data into the DEVRY table and supply a NULL value for the Student_city column? 
INSERT into DEVRY VALUES
(012393, 'Jimmey Jones', 'NULL');
INSERT into DEVRY VALUES
(012393, 'Jimmey Jones', " ");
INSERT into DEVRY VALUES
(012393, 'Jimmey Jones', NULL);
INSERT into DEVRY VALUES
(012393, 'Jimmey Jones', ' '); 

8. (TCO 10) A ____ is a uniquely identifiable object that allows a given person to log on to the database. 
user
role
profile
manager 


9. (TCO 10) Which of the following commands can be used to revoke system or object privileges previously granted to a user? 
UNGRANT
REMOVE
REVOKE
DROP 

1. (TCO 2) What is meant by logical independence?


2. (TCO 3) describe in what two specific cases presented in the text composite primary keys are particularly useful.


3. (TCO 7) How are comparisons done on character string data in a queries WHERE clause, and why would this be especially useful in comparing certain attributes?

4. (TCO 8) Sally wants to query the EMP table and determine how many of the employees live in each of the cities the company has factories in. She prepares the following query but it does not work. What is wrong with the way the query is constructed?
SELECT city, COUNT(emp_no) as "Number of Customers"
FROM emp
ORDER BY city
GROUP BY city;

5. (TCO 6) prepare the SQL statement that will remove the database table EMPLOYEE.

1. (TCO 7) prepare a join query that for every order placed on September 5, 1998, (use '05-SEP-1998') will list the order number and order date along with the customer number, last name, and first name of the customer who placed the order. 

2. prepare a query to determine the cost of the least expensive part in the part table? Format the returned price in dollars and cents using the correct function. Your result set should have only one amount in it. 

3. prepare a sub query that will list the part number, part description, and units on hand of all parts where the number of units on hand is greater than the average of units on hand for all parts.

4. Using the orders table, prepare a query that will list the order number, date, and customer number for every order that was made prior to September 5, 1998. Format the date in your result set to be in the same format as above (i.e., September 5, 1998). 

5. Using a NATURAL JOIN method, prepare a query that will list the customer number, last name, and first name for every customer who currently has an order on file for an iron

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9112682

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As