Xi PT - 1 2024-25-1
Xi PT - 1 2024-25-1
Section A
Q1 Define : 06
A) Cardinality. B) Relation or table. C) Primary Key.
D) Foreign key. E) Degree. F) Tuples
Q2 Differentiate between DDL and DML with example. 02
Q3 Ms Purva wants to create a database with her name and then she wants to switch to 02
the newly created database. Help her to write both the sql statements.
_______________statement 1
________________statement2
Q4 Among the following commands choose DDL and DML commands separately 02
INSERT,SELECT,CREATE,DROP,DELETE,ALTER
Q5 Kavita has created a table named Orders, she has been asked to increase the value of 02
a column named sales amount by 20. She has written the following query for the
same.
Select table Orders Add sales amount =salesamount+20;
But it is not solving the purpose.
i) Rewrite the correct query.
ii) Now Kavita wants to remove the table Orders from Database. Write the appropriate
query
Q6 Differentiate between DELETE and DROP command, add one example too. 02
Q7 Write a query to create the table with field given below and add any 1 rows of your 02
choice according to the field name:
Q8 Consider the following tables DRESS . Write outputs of SQL commands for the 12
statements (i) to (iv)
Q9 i) If you want to add a row in a table then which command you will use? 05
A) INSERT INTO. B) ADD. C) ALTER. D) CREATE
ii) SELECT is a type of which SQL command?
A) DML. B) DDL. C) DCL. D)DQL
iii) Can we have more than 1 primary key in a table?
A) TRUE. B)FALSE
iii) In the following statement, what do you mean by the ‘student’?
USE student;
A) Table name. B) Database name. C) Row name. D) Column name
iv) if the degree of the table is 4 what does it means
A) 4 Tuples. B) 4 Attributes. C) 4 Data. D) None of the above
(v) To see all the databases which command is used?
A) Show database; B) Show databases; C)Show database(); D) Show_all
database;
Q10 Anita has created a new table Employee with 5 columns and 4 rows. Two more rows 01
were added in the table. What will be the Degree and Cardinality of the table
Employee?
Q11 Identify and write the fields name and suitable datatypes for the table Product given 01
below :
Q12 Raman has to create a database named MYEARTH in MYSQL. She now needs to create 03
a table named FARES in the database to store the records of various cities across the
globe. The table FARES has the following structure: