Anda di halaman 1dari 1

TEST SET1 Roll No: ________________________

1. Define the following: a. Program data independence b. meta-data c. ON DELETE CASCADE (in
foreign key constraint)
2. Define database. What are the characteristics of database approach and how it differs from traditional file system.
3. Explain how GROUP BY clause works. What is the difference between WHERE and HAVING clause?
4. Consider following relational schema for inventory database and specify the queries:
Relation name Attributes
SUPPLIERS SNO,SNAME,STATUS,CITY
PARTS PNO,PNAME,COLOR,WEIGHT,CITY
PROJECT JNO,JNAME,CITY
SHIPMENT SNO,PNO,JNO,QUANTITY
a. Write a CREATE TABLE COMMAND for relation SUPPLIERS. Also, identify foreign keys in all tables.
b. Get part nos. for parts that either weigh16 pounds or are supplied by supplier S2,or both
c. Get full details of parts supplied by a supplier in London.

============================================================================================

TEST SET2 Roll No: ________________________


1. Define the following: a. Data model b. schema c. ON UPDATE CASCADE
(in foreign key constraint)
2. Define DBMS. List the advantages of using DBMS.
3. List the data types that are allowed for SQL attributes.
4. Consider following relational schema for inventory database and specify the queries:
Relation name Attributes
SUPPLIERS SNO,SNAME,STATUS,CITY
PARTS PNO,PNAME,COLOR,WEIGHT,CITY
PROJECT JNO,JNAME,CITY
SHIPMENT SNO,PNO,JNO,QUANTITY
a. Write a CREATE TABLE COMMAND for relation PARTS. Also, identify foreign keys in all tables.
b. Get part cities that store more than five red parts.
c. Get part numbers for part supplied by a supplier in London to a project in London.
============================================================================================

TEST SET1 Roll No: ________________________


1. Define the following: a. Program data independence b. meta-data c. ON DELETE CASCADE (in
foreign key constraint)
2. Define database. What are the characteristics of database approach and how it differs from traditional file system.
3. Explain how GROUP BY clause works. What is the difference between WHERE and HAVING clause?
4. Consider following relational schema for inventory database and specify the queries:
Relation name Attributes
SUPPLIERS SNO,SNAME,STATUS,CITY
PARTS PNO,PNAME,COLOR,WEIGHT,CITY
PROJECT JNO,JNAME,CITY
SHIPMENT SNO,PNO,JNO,QUANTITY
a. Write a CREATE TABLE COMMAND for relation SUPPLIERS. Also, identify foreign keys in all tables.
b. Get part nos. for parts that either weigh16 pounds or are supplied by supplier S2,or both
c. Get full details of parts supplied by a supplier in London.

============================================================================================

TEST SET2 Roll No: ________________________


1. Define the following: a. Data model b. schema c. ON UPDATE CASCADE
(in foreign key constraint)
2. Define DBMS. List the advantages of using DBMS.
3. List the data types that are allowed for SQL attributes.
4. Consider following relational schema for inventory database and specify the queries:
Relation name Attributes
SUPPLIERS SNO,SNAME,STATUS,CITY
PARTS PNO,PNAME,COLOR,WEIGHT,CITY
PROJECT JNO,JNAME,CITY
SHIPMENT SNO,PNO,JNO,QUANTITY
a. Write a CREATE TABLE COMMAND for relation PARTS. Also, identify foreign keys in all tables.
b. Get part cities that store more than five red parts.
c. Get part numbers for part supplied by a supplier in London to a project in London.

Anda mungkin juga menyukai