Interview questions

Sql Basics interview questions

15 questions. Tap “Show answer” to check yourself.

  1. The SQL keywords _____ is used with wildcards.

    1. A.NOT in only
    2. B.IN and NOT IN
    3. C.IN only
    4. D.LIKE only
    Show answer

    D. LIKE only

  2. Which of the following is the original purpose of SQL?

    1. A.To define the data structures
    2. B.To specify the syntax and semantics of SQL data definition language
    3. C.To specify the syntax and semantics of SQL manipulation language
    4. D.All of the above
    Show answer

    D. All of the above

  3. Which one of the following sorts rows in SQL?

    1. A.ALIGN BY
    2. B.ORDER BY
    3. C.SORT BY
    4. D.GROUP BY
    Show answer

    B. ORDER BY

  4. SQL data definition commands make up a(n)

    1. A.HTML
    2. B.DML
    3. C.DDL
    4. D.XML
    Show answer

    C. DDL

  5. In the _____ normal form, a composite attribute is converted to individual attributes.

    1. A.1st
    2. B.2nd
    3. C.3rd
    4. D.4th
    Show answer

    A. 1st

  6. You can add a row using SQL in a database with which of the following?

    1. A.INSERT
    2. B.CREATE
    3. C.ADD
    4. D.MAKE
    Show answer

    A. INSERT

  7. Which normal form is considered adequate for relational database design?

    1. A.1 NF
    2. B.2 NF
    3. C.3 NF
    4. D.4 NF
    Show answer

    C. 3 NF

  8. The result of a SQL SELECT statement is a(n)

    1. A.File
    2. B.Report
    3. C.Form
    4. D.Table
    Show answer

    D. Table

  9. The primary key is selected from the

    1. A.Determinants
    2. B.Candidate keys
    3. C.Composite keys
    4. D.Foreign keys
    Show answer

    B. Candidate keys

  10. A relation is in this form if it is in BCNF and has no multivalued dependencies.

    1. A.Second normal form
    2. B.Third normal form
    3. C.Fourth normal form
    4. D.Domain/key normal form
    Show answer

    C. Fourth normal form

  11. SQL can be used to

    1. A.Create database structures only
    2. B.Query database data only
    3. C.Modify database data only
    4. D.All of the above can be done by SQL
    Show answer

    D. All of the above can be done by SQL

  12. SQL query and modification commands make up a(n)

    1. A.DDL
    2. B.HTML
    3. C.XML
    4. D.DML
    Show answer

    D. DML

  13. Second normal form should meet all the rules for

    1. A.1 NF
    2. B.3 NF
    3. C.4 NF
    4. D.5 NF
    Show answer

    A. 1 NF

  14. The SQL statement that queries or reads data from a table is

    1. A.READ
    2. B.SELECT
    3. C.ORDER
    4. D.QUERY
    Show answer

    B. SELECT

  15. The command to eliminate a table from a database is

    1. A.DELETE TABLE CUSTOMER
    2. B.UPDATE TABLE CUSTOMER
    3. C.DROP TABLE CUSTOMER
    4. D.REMOVE TABLE CUSTOMER
    Show answer

    C. DROP TABLE CUSTOMER

Companies that ask Sql Basics questions