This document contains a worksheet for a Class 12 Informatics Practices subject test on database queries using SQL. It includes 10 multiple choice and short answer questions testing various SQL functions like SELECT, WHERE, ROUND, TRUNCATE, LENGTH, DAY, MONTH, MOD, POW and aggregate functions. Students are asked to write the output for each query testing these SQL functions on sample data and column values.
This document contains a worksheet for a Class 12 Informatics Practices subject test on database queries using SQL. It includes 10 multiple choice and short answer questions testing various SQL functions like SELECT, WHERE, ROUND, TRUNCATE, LENGTH, DAY, MONTH, MOD, POW and aggregate functions. Students are asked to write the output for each query testing these SQL functions on sample data and column values.
This document contains a worksheet for a Class 12 Informatics Practices subject test on database queries using SQL. It includes 10 multiple choice and short answer questions testing various SQL functions like SELECT, WHERE, ROUND, TRUNCATE, LENGTH, DAY, MONTH, MOD, POW and aggregate functions. Students are asked to write the output for each query testing these SQL functions on sample data and column values.
Q8.The avg() function in MySql is an example of __________.
a. Math function b. Text function c. Date Function d. Aggregate Function
Q9. Consider the table given below :
Write output.
(i) SELECT Name, LENGTH(Name) FROM Salesperson
Q10. The LastName column of a table "Directory" is given below:
Based on this information, find the output of the following queries: (a) SELECT lastname FROM Directory WHERE lastname like "_a%"; (b)SELECT lastname FROM Directory WHERE lastname not like "%a";