SQL Interview Questions
SQL Interview Questions
What is SQL?
SQL (Structured Query Language) is a programming language used to manage and manipulate
data stored in a relational database management system (RDBMS).
What is the difference between a clustered index and a non-clustered index in SQL?
A clustered index determines the physical order of data in a table and is created on the primary
key or a unique column. A non-clustered index is created on a non-primary key column and does
not affect the physical order of data. While a table can have only one clustered index, it can have
multiple non-clustered indexes.
SQL Interview Questions
What is the difference between a primary key and a foreign key in SQL?
A primary key is a column or set of columns that uniquely identifies each row in a table. A foreign
key is a column or set of columns that refer to the primary key of another table, establishing a
relationship between the two tables.
What is the difference between an inner join and an outer join in SQL?
An inner join returns only the rows that have matching values in both tables, while an outer join
returns all the rows from one table and the matching rows from the other table. There are three
types of outer join: left outer join, right outer join, and full outer join.
SoftwareTestingBRO