0% found this document useful (0 votes)
28 views

11 Ip

This document contains instructions for a test on Informatics Practices involving SQL commands. Students are asked to define database terms, explain SQL command categories, compare data types, write SQL commands to create a database and table, and perform queries on a sample Graduate table. The test covers skills like creating databases and tables, inserting records, displaying table structures and records, and writing queries to select and filter records based on specified conditions.

Uploaded by

Vikas Saxena
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

11 Ip

This document contains instructions for a test on Informatics Practices involving SQL commands. Students are asked to define database terms, explain SQL command categories, compare data types, write SQL commands to create a database and table, and perform queries on a sample Graduate table. The test covers skills like creating databases and tables, inserting records, displaying table structures and records, and writing queries to select and filter records based on specified conditions.

Uploaded by

Vikas Saxena
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ST.

XAVIERS SENIOR SECONDARY SCHOOL, DELHI 110054

Class 11
24-7-2014

First Unit Test in INFORMATICS PRACTICES

1. Answer the following questions :i)


Define the following terms :
a) Relation
b) Domain
d) Degree
e) Primary Key

[3]
c) Attribute
f) Alternate Key

ii) Explain any two categories of commands available in SQL ?


ii) Write any two differences between the following
a) Integer and Float
b) Char and Varchar
c) Date and DateTime
2. Write SQL command for following:
a) Create a database Exam and check for its existence also
b) Open the database Exam
c) Create a table HOSPITALwith the following attribute
Column Name
D_No
Department
Doc_name
Dt_Birth
Consultation_Fee

Time : 1 hr.
M. Marks : 20

Data Type
INT
VARCHAR
VARCHAR
DATE
FLOAT

[2]
[3]

[1]
[]
[3]

Size
4
20
30
5, 2

3. Write SQL commands for the following on the basis of table GRADUATE.
SNo
1
2
3
4

NAME STIPEND SUBJECT MARKS RANK


Karan
400
Physics
1
Divakar 450
Computers 62
2
Arjun
350
Physics
56
3
Rohan
900
Computers 78
4

a) Insert first record in the table Graduate.


b) Display the structure of table graduate
c) Command to see all the tables present in the database
d) Command to see all the databases present in MySQL
e) Display all the records of table Graduate
f) Display Name, Stipend and Marks of table graduate
g) Display Name, Subject whose marks is greater than 60
h) Display subject of all graduates uniquely
i) Display marks increased by 5 for computers subject
j) Write the degree and cardinality of the table Graduate
-x-x-x-x-x-

[1]
[]
[]
[]
[]
[1]
[1]
[]
[1]
[1]

You might also like