Monday 21 November 2016

SQL Basic

SQL

  1. What is Primary Key?

  2. Primary keys are unique names of a table.
    Primary keys are integer ids in a table rows.
    Primary keys are unique identifiers for each row in a table.
    None of the above.

  3. which is not a constraint in below options?

  4. Foreign Key
    Unique
    Varchar
    All of the above

  5. A column that automatically generates numeric values is called __________.

  6. Unique column
    Integer column
    Identity column
    Candidate column

  7. Select which is not in Joins?

  8. Inner Join
    Outer Join
    Primary Join
    Cross Join

  9. What are indexes?

  10. Index speed up the data retrieval
    Index stores large number of integer values
    Index minimize the data redundancy
    None of the above.

  11. What is the difference between Primary key and Unique key?

  12. Primary key doesn’t allow null value whereas unique key allows multiple null values
    Primary key allows one null value whereas unique key doesn’t allow null value.
    Primary key doesn’t allow null value whereas unique key allows one null value.
    Primary key allows one null value whereas unique key allows multiple null values.

  13. What is a trigger?

  14. A trigger is a SQL procedure that initiates an action when event (INSERT, DELETE or UPDATE) occurs
    A trigger is an event that can be raised from Stored Procedures.
    A trigger is a SQL procedure that performs some tasks on accessing db tables.
    A trigger is a procedure which executes when an error occurred.

  15. How many types of indexes in SQL server?

  16. Integer and string
    Unique and non-unique
    Clustered and Nonclustered
    None of the above

  17. What is View?

  18. Virtual table
    Physical table
    It's not a virtual table
    None of the above

  19. what is Order by ?

  20. It will arrange in asecnding/ descending order
    It won't arrange in asecnding/ descending order
    It will join the tables
    None of the above

No comments: