CBSE TERM
CBSE TERM
a) In SQL, which function is used to display current date and time? 3. Answer the following question (any 10) [2*10=20]
(a) Date ( ) (b) Time ( ) (c) Current ( ) (d) Now ()
a) Explain two aggregate functions in SQL.
b) SQL stands for -----------------------?
b) Write a command to add a NOT NULL constraint on FEES column of a
(i) Structured Query Language (ii) Sequential Query Language
student table.
(iii) Structured Question Language (iv) Sequential Question Language
c) What is primary key ?
c) DBMS stands for ------------------------?
d) Write Update syntax with example?
(i) Database management system (ii) Database management software
e) How to delete all records in existing table?
(iii) Database manage system (iv) none of these
f) How to delete a row in existing table?
d) Which SQL statement do we use to find out the total number of records
g) How to add multiple column in existing table?
present in the table ORDERS?
h) How to delete multiple column in existing table?
(i ) SELECT * FROM ORDERS;
i) How to display specific column in existing table?
(ii) SELECT COUNT (*) FROM ORDERS;
j) Which of the following types of table constraints will prevent the entry of
(iii) SELECT FIND (*) FROM ORDERS;
duplicate rows with reason?
(iv) SELECT SUM () FROM ORDERS;
(i) unique (ii) Distinct (iii) Primary key (iv) null
e) Write MySQL command to open an existing database.
k) Ravina has stored the records of all students of her class in a MYSQL table.
f) Table SCHOOL has 4 rows and 5 columns. What is the Cardinality and
Suggest a suitable SQL clause that she should use to display the names of
Degree of this table?
students in alphabetical order with sql command
g) Which function is used to display power of number?
(i) Sort by (ii) order by (iii) Group by (iv) Align by
h) Which function is used to display small letter of a string?
l) SELECT DISTINCT is used if a user wishes to see duplicate columns in a
i) Which MySQL command is used to delete a table?
query with reason?
j) Which MySQL command is used to display all exist database in our MySql?
(i) True (ii) False
2. Answer the following question [1*10=10]
3. Answer the following question [1*09=9]
a) Which MySQL command is used to create a new databases?
b) Which function is used to remove blank space remove from both side?
c) Name two mathematical functions in SQL.
d) Which MySQL command is used to display structure of our database?
e) Which command is used to display all tables in database?
f) DDL stands for --------------------------?
(i) Data Difference Language (ii) Data Define Language
(iii) Data Definition Language (iv) none of these
g) DML stands for --------------------------?
(i) Database Manipulation Language (ii) Data Manipulation Language
(iii) Data Manage Language (iv) none of these
h) Name of two DDL commands? a) Based on the STUDENT table given here ,write a suitable queries for the
i) What does the POWER() function do? following
i. Write a query to display name and city column in an existing table?
ii. Write a query to display those students are secured greater than 400
marks?
iii. Write a query to display those students are lived in agra and delhi?
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]