T4Tutorials .PK

1. Which of the following is not a built-in aggregate function in SQL?

(A) Total


(B) Max


(C) Avg


(D) Count




2. The _____ aggregation operation adds up all the values of the attribute?

(A) Sum


(B) Avg


(C) Max


(D) Add




3. What values does the count (*) function ignore?

(A) Repetitive values


(B) Characters


(C) Null values


(D) Integers




4. Which of the following is not a valid aggregate function?

(A) COUNT


(B) SUM


(C) COMPUTE


(D) MAX




5. Which data manipulation command is used to combines the records from one or more tables?

(A) SELECT


(B) PROJECT


(C) JOIN


(D) PRODUCT




6. Which type of JOIN is used to returns rows that do not have matching values?

(A) Outer JOIN


(B) Natural JOIN


(C) EQUI JOIN


(D) All of the above




7. Which of the following is not a DDL command?

(A) TRUNCATE


(B) UPDATE


(C) ALTER


(D) None of the Mentioned




8. ___ is not a category of Database language.

(A) TCL


(B) DDL


(C) DCL


(D) SCL




9. DCL provides commands to perform actions like

(A) Change the structure of Tables


(B) Authorizing Access and other control over Database


(C) Insert, Update or Delete Records and Values


(D) None of Above




10. The result of a SQL SELECT statement is a ______.

(A) table


(B) report


(C) file


(D) form




11. Which of the following do you need to consider when you make a table in SQL?

(A) Data types


(B) All of the above


(C) Default values


(D) Primary keys




12. Which of the following are TCL commands?

(A) COMMIT and ROLLBACK


(B) UPDATE and TRUNCATE


(C) SELECT and INSERT


(D) GRANT and REVOKE




13. Relational Algebra is a __________ query language that takes two relations as input and produces another relation as an output of the query.

(A) Procedural


(B) Structural


(C) Relational


(D) Fundamental




14. Which of the following is a fundamental operation in relational algebra?

(A) Set intersection


(B) Natural Join


(C) Select


(D) Assignment




15. The ___________ operation, denoted by −, allows us to find tuples that are in one relation but are not in another.

(A) Union


(B) Difference


(C) Set-difference


(D) Intersection




Exit mobile version