SQL Practice Questions: Test Your Knowledge! What is the purpose of the GROUP BY clause in SQL?To join tablesTo filter rowsTo sort resultsTo group rows with similar valuesWhich SQL function is used to round a number to a specified number of decimal places?CEIL()FLOOR()ROUND()TRUNCATE()What is the difference between DELETE and TRUNCATE in SQL?DELETE removes specific rows, TRUNCATE removes all rowsDELETE is faster, TRUNCATE is slowerTRUNCATE can be rolled back, DELETE cannotThere is no differenceWhich SQL function returns the number of rows affected by an INSERT, UPDATE, or DELETE statement?ROW_COUNT()AFFECTED_ROWS()CHANGED_ROWS()MODIFIED_ROWS()Which SQL keyword is used to specify a common table expression (CTE)?WITHASUSINGFROMWhich SQL function returns the smallest value in a set of values?MINSMALLESTLEASTMINIMUMWhat is the purpose of the SQL WINDOW function?To define a named window specification for reuse in multiple window functionsTo filter rows based on a conditionTo sort the result set in ascending or descending orderTo join tables based on a common columnWhich SQL keyword is used to filter rows based on a condition?SELECTWHEREFILTERSEARCHWhich SQL function is used to calculate the sample standard deviation of a numeric column?STDEVSTDDEV_SAMPVARIANCEDEVIATIONWhich SQL statement is used to create a new index on a table?CREATE INDEXALTER INDEXINSERT INDEXUPDATE INDEXWhat is the purpose of the SQL CONCAT function?To concatenate two or more strings togetherTo 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 data aggregation in the ETL process?To combine data from multiple sourcesTo summarize data at a higher levelTo filter data based on specific criteriaTo sort data in a specific orderWhich SQL function is used to extract a substring from a string?EXTRACT()CUT()SUBSTRING()SLICE()Which SQL statement is used to create a trigger?CREATE TRIGGERMAKE TRIGGERBUILD TRIGGERNEW TRIGGERWhat is the purpose of the SQL PERCENT_RANK function?To calculate the cumulative distribution of a value within a partitionTo calculate the percentile rank of a value within a partitionTo calculate the rank of a value within a partitionTo calculate the dense rank of a value within a partitionWhich SQL statement is used to create a new user-defined function?CREATE FUNCTIONALTER FUNCTIONDROP FUNCTIONNEW FUNCTIONWhat is the purpose of the SQL REGR_AVGY() function?To calculate the average of the dependent variable in the linear regression between two numeric columnsTo calculate the average of the independent variable in the linear regression between two numeric columnsTo calculate the sum of squares of the independent variable in the linear regression between two numeric columnsTo calculate the sum of squares of the dependent variable in the linear regression between two numeric columnsWhich SQL function is used to perform window function calculations?OVERPARTITION BYWINDOWANALYTICSWhich SQL function is used to calculate the variance of a set of values?VARVARIANCEVAR_POPVAR_SAMPWhich SQL statement is used to insert new data into a database?UPDATEDELETESELECTINSERT Score: 0/20 Next Set of Questions