SQL Practice Questions: Test Your Knowledge! Which SQL clause is used to specify the number of rows to return?FETCHLIMITTOPROWNUMWhat is the purpose of the SQL LAST_VALUE function?To retrieve the first value within a partitionTo retrieve the last value within a partitionTo retrieve the nth value within a partitionTo retrieve the average value within a partitionWhat is the purpose of the SQL IFNULL function?To return a specified value if an expression is NULL, otherwise it returns the expressionTo check if an expression is NULLTo return the first non-null value in a list of expressionsTo replace NULL values with a specified valueWhat is the purpose of the SQL PIVOT operator?To rotate rows into columnsTo filter rows based on a conditionTo join two or more tablesTo aggregate data using multiple columnsWhat is the purpose of the SQL INSERT INTO statement?To add new rows to a tableTo update existing rows in a tableTo delete rows from a tableTo create a new tableWhich SQL keyword is used to add a new column to an existing table?ADD COLUMNALTER TABLEMODIFY COLUMNINSERT COLUMNWhich SQL function is used to perform a cumulative sum or running total?SUMRUNNING_TOTALCUMULATIVE_SUMRUNNING_SUMWhat is the purpose of data replication in the ETL process?To create multiple copies of data for backup and disaster recoveryTo remove duplicate recordsTo transform data from one format to anotherTo delete old data permanentlyWhat is the purpose of the SQL EXPLAIN statement?To show the execution plan of a queryTo describe the structure of a tableTo list all tables in a databaseTo display the privileges of a userWhich SQL statement is used to create a stored procedure?CREATE PROCEDUREMAKE PROCEDUREBUILD PROCEDURENEW PROCEDUREWhat is the purpose of data replication in the ETL process?To create a backup of the source dataTo create a copy of the target data for disaster recoveryTo create a copy of the data for distribution to other systemsTo create a copy of the data for testing purposesWhat is the purpose of the JOIN clause in SQL?To combine rows from two or more tables based on a related columnTo filter the rows based on a conditionTo sort the result setTo group the result set by one or more columnsWhich SQL operator is used to perform pattern matching?MATCHPATTERNCOMPARELIKEWhat does the SQL LEAD function do?Accesses data from a subsequent row in the result setAccesses data from a previous row in the result setCalculates the running total of a set of valuesRanks rows within a partitionWhat is the purpose of the PERCENT_RANK function in SQL?To calculate the percentile rank of a value within a partitionTo calculate the cumulative distribution of a value within a partitionTo calculate the relative rank of a value within a partitionTo calculate the moving average of a numeric column within a partitionWhich SQL function returns the day of the month from a date value?DAY()MONTH()YEAR()DATE()Which SQL clause is used to sort the result set in ascending or descending order?SORT BYARRANGE BYORDER BYSEQUENCE BYWhich SQL statement is used to create a table with a columnstore index?CREATE TABLE WITH COLUMNSTORE INDEXCOLUMNSTORE INDEX TABLECREATE COLUMNSTORE TABLETABLE WITH COLUMNSTORE INDEXWhat is the purpose of the LIKE operator in SQL?To check if a value is equal to a specified valueTo compare two values for equalityTo perform mathematical calculationsTo perform pattern matching on string valuesWhich SQL operator is used to combine multiple conditions and return true if all of the conditions are true?ORNOTANYAND Score: 0/20 Next Set of Questions