0% found this document useful (0 votes)
8 views3 pages

Xi PT - 1 2024-25-1

This document is a periodic test for Class XI in Informatics Practices, dated July 7, 2024, with a total mark of 40. It includes various questions on SQL concepts such as definitions, commands, and queries related to database management. The test assesses students' understanding of data definition language (DDL), data manipulation language (DML), and practical SQL query writing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

Xi PT - 1 2024-25-1

This document is a periodic test for Class XI in Informatics Practices, dated July 7, 2024, with a total mark of 40. It includes various questions on SQL concepts such as definitions, commands, and queries related to database management. The test assesses students' understanding of data definition language (DDL), data manipulation language (DML), and practical SQL query writing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

PERIODIC TEST- I 2024-25

Class : XI Subject Time :


Date : .07.2024 INFORMATICS PRACTICES MM :40
1.Attempt all Questions
Instruction : 2.Write all the output based answer sequentially

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)

(i) SELECT * FROM DRESS WHERE MCODE= ‘M001’;


(ii) SELECT DESCRIPTION,TYPE FROM DRESS WHERE PRICE>=1250 ;
(iii) SELECT * FROM MATERIAL WHERE DESCRIPTION =”PANT”;
(iv) SELECT DISTINCT PRICE FROM DRESS ;
(v) write query to display description and price with increment of 100 in each price
(vi) write a query to display all records of dress having price more than 1000
(vii) write a query to display manufacturer code and dress code of frock
(viii) write a query to display the price and launchdate of dress code 10090
(ix) write a query to display description, launch dateanddresscodeexcept price
amount 850
(x) Write a query to double the price and also display last four letyers from
description.
(xi) To display the structure of table
(xii) Write a query to extract month name from launch date.

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:

i)Help him to complete the task by suggesting appropriate SQL commands.


ii) What is the Degree and Cardinality of the table Flight.
iii)Which attribute should be the primary key of the table?
*****************************

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy