Interview questions
Sql Basics interview questions
15 questions. Tap “Show answer” to check yourself.
-
The SQL keywords _____ is used with wildcards.
- A.NOT in only
- B.IN and NOT IN
- C.IN only
- D.LIKE only
Show answer
D. LIKE only
-
Which of the following is the original purpose of SQL?
- A.To define the data structures
- B.To specify the syntax and semantics of SQL data definition language
- C.To specify the syntax and semantics of SQL manipulation language
- D.All of the above
Show answer
D. All of the above
-
Which one of the following sorts rows in SQL?
- A.ALIGN BY
- B.ORDER BY
- C.SORT BY
- D.GROUP BY
Show answer
B. ORDER BY
-
SQL data definition commands make up a(n)
- A.HTML
- B.DML
- C.DDL
- D.XML
Show answer
C. DDL
-
In the _____ normal form, a composite attribute is converted to individual attributes.
- A.1st
- B.2nd
- C.3rd
- D.4th
Show answer
A. 1st
-
You can add a row using SQL in a database with which of the following?
- A.INSERT
- B.CREATE
- C.ADD
- D.MAKE
Show answer
A. INSERT
-
Which normal form is considered adequate for relational database design?
- A.1 NF
- B.2 NF
- C.3 NF
- D.4 NF
Show answer
C. 3 NF
-
The result of a SQL SELECT statement is a(n)
- A.File
- B.Report
- C.Form
- D.Table
Show answer
D. Table
-
The primary key is selected from the
- A.Determinants
- B.Candidate keys
- C.Composite keys
- D.Foreign keys
Show answer
B. Candidate keys
-
A relation is in this form if it is in BCNF and has no multivalued dependencies.
- A.Second normal form
- B.Third normal form
- C.Fourth normal form
- D.Domain/key normal form
Show answer
C. Fourth normal form
-
SQL can be used to
- A.Create database structures only
- B.Query database data only
- C.Modify database data only
- D.All of the above can be done by SQL
Show answer
D. All of the above can be done by SQL
-
SQL query and modification commands make up a(n)
- A.DDL
- B.HTML
- C.XML
- D.DML
Show answer
D. DML
-
Second normal form should meet all the rules for
- A.1 NF
- B.3 NF
- C.4 NF
- D.5 NF
Show answer
A. 1 NF
-
The SQL statement that queries or reads data from a table is
- A.READ
- B.SELECT
- C.ORDER
- D.QUERY
Show answer
B. SELECT
-
The command to eliminate a table from a database is
- A.DELETE TABLE CUSTOMER
- B.UPDATE TABLE CUSTOMER
- C.DROP TABLE CUSTOMER
- D.REMOVE TABLE CUSTOMER
Show answer
C. DROP TABLE CUSTOMER