WAT-1
WAT-1
[1*11=11]
i. Which SQL statement do we use to find out the total number of records present in the table
ORDERS?
a) SELECT * FROM ORDERS;
b) SELECT COUNT (*) FROM ORDERS;
c) SELECT FIND (*) FROM ORDERS;
d) SELECT SUM () FROM ORDERS;
ii. In SQL, which function is used to display current date and time?
(a) Date () (b) Time () (c) Current () (d) Now ()
iii. SQL stands for -----------------------?
(a) Structured Query Language (b) Sequential Query Language
(c) Structured Question Language (d) Sequential Question Language
iv. DBMS stands for ------------------------?
(a) Database management system (b) Database management software
(c) Database manage system (d) none of these
v. Write MySQL command to open an existing database.
vi. Table SCHOOL has 4 rows and 5 columns. What is the Cardinality and Degree of this table?
vii. Which function is used to display power of number?
viii. Which function is used to display small letter of a string?
ix. Which MySQL command is used to delete a table?
x. Which MySQL command is used to display all exist database in our MySql?
xi. Which MySQL command is used to create a new databases?
a) Based on the STUDENT table given here ,write a suitable queries for the following
b) Based on the STUDENT table given here ,write a suitable queries for the following
i. Write a query to add a DOB column in existing table?
ii. Write a query to delete 3 rows in existing table?
iii. Write a query to display name column in descending order?
c) Based on the STUDENT table given here ,write a suitable queries for the following
i. Write a query to update anchal mark in a existing table?
ii. Write a query to change column roll no to SL_NO. ?
iii. Write a query to display all records where gender is ‘M’ ?
4. Based on the STUDENT table given here ,write a suitable queries for the following [5*1=5]