MCQs
Limit clause does not support partitioning, so we cannot get the top n within each partition without performing ranking; further, if more than one student gets the same GPA, it is possible that one is included in the top 10, while another is excluded.
SQL Server has had only a partial implementation up to now, but it has come up in SQL 2012.
Query optimization is used to improve the quality.
Since SQL Server 2005 we have had support for some window functions, they are: ROW_NUMBER, RANK, DENSE_RANK and NTILE.
FOREIGN KEY constraints identify and enforce the relationships between tables.
DDL statement is used alter structure of table.
ORDER BY CLAUSE is not optional clause in ROW NUMBER function.
The ROW_NUMBER ranking function is the simplest of the ranking functions.Its purpose in life is to provide consecutive numbering of the rows in the result set by the order selected in the OVER clause for each partition specified in the OVER clause.
Here * is used to select all the fields of the relation.