1. | The SQL database language includes statements for: |
Answer: (d).All of the above.
|
2. | A command to remove a relation from an SQL database |
Answer: (b).Drop table table name
|
3. | Which SQL Query is use to remove a table and all its data from the database? |
Answer: (c).Drop Table
|
4. | A type of query that is placed within a WHERE or HAVING clause of another query is called |
Answer: (b).Sub query
|
5. | Aggregate functions are functions that take a ___________ as input and return a single value. |
Answer: (a).Collection of values
|
6. | Select __________ from instructor where dept name= ’Comp. Sci.’; Which of the following should be used to find the mean of the salary ? |
Answer: (b).Avg(salary)
|
7. | All aggregate functions except _____ ignore null values in their input collection. |
Answer: (b).Count(*)
|
8. | A Boolean data type that can take values true, false, and________ . |
Answer: (d).Unknown
|
9. | Select count (____ ID) from teaches where semester = ’Spring’ and year = 2010; If we do want to eliminate duplicates, we use the keyword ______in the aggregate expression. |
Answer: (a).Distinct
|
10. | The ____ connective tests for set membership, where the set is a collection of values produced by a select clause. The ____ connective tests for the absence of set membership. |
Answer: (c).In, not in
|