[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Technical Interview Questions and Answers :: SQL

    41 / 108

    What is a PRIMARY KEY?
    Answer:

    The PRIMARY KEY is the column(s) used to uniquely identify each row of a table.

    Please Login First :

    42 / 108

    What is a FOREIGN KEY?
    Answer:

    A FOREIGN KEY is one or more columns whose values are based on the PRIMARY or CANDITATE KEY values from the database.

    Please Login First :

    43 / 108

    What is a UNIQUE KEY?
    Answer:

    A UNIQUE KEY is one or more columns that must be unique for each row of the table.

    Please Login First :

    44 / 108

    What is the difference between UNIQUE and PRIMARY KEY?
    Answer:

    The UNIQUE KEY column restricts entry of duplicate values but entry of NULL value is allowed. In case of PRIMARY KEY columns entry of duplicate as well as value is also restricted.

    Please Login First :
    Answer:

    A View is a database object that is a logical representation of a table. It is derived from a table but has no storage space of its own and often may be used in the same manner as a table.

    Please Login First :
    Answer:

    ROWID is the logical address of a row, and it is unique within the database.

    Please Login First :
    Answer:

    INDEX is a general term for an SQL feature used primarily to speed up execution and impose UNIQUENESS upon data. You can use an index to gain fast access to specific information in a database table. An index is a structure that orders the values of one or more columns in a database table. The index provides pointers to the data values stored in specified columns of the table, and then orders those pointers according to the sort order you specify.

    Please Login First :

    48 / 108

    The Difference between 'Count' and 'Count (*)'?
    Answer:

    'Count': Counts the number of non-null values. 'Count (*)': Counts the number of rows in the table, including null values and duplicates.

    Please Login First :

    49 / 108

    Which are the default databases get installed with the MSSQL installation?
    Answer:

    Master, Model, msdb, Northwind, Pubs, tempdb.

    Please Login First :

    50 / 108

    What is the purpose of using COLLATE in a query?
    Answer:

    No Discussion on this question yet!

    Please Login First :


Looking to grab a job as a Database Developer or Administrator? You can easily find SQL technical interview questions and answers on this page. All the questions have been previously asked during the technical rounds in IT companies. You can test your SQL database knowledge by solving these questions and compare your chances of fetching the job with a top IT company.

Are you targeting a specific IT company like Adobe? You can filter the question set by the company name easily. If you are not sure about a specific answer, you can easily click and read the answer along with the explanation. So, check these SQL technical interview questions and answers to prepare for your dream job.