1 PDF
1 PDF
1 PDF
6. DATA MANAGEMENT 10
a) State the use of foreign key in relational database. [1]
b) Write down SQL statement for creating table LIBRARY having following attributes: [2]
i. BOOK_ID – an integer, primary key of the table
ii. BOOK_TITLE –a string
iii. AUTHOR—a string
iv. QTY – an integer
v. PRICE – a real number
c) Find the output of the queries based on the following relation STUDENT: [1]
i) SELECT NAME, GRADE FROM STUDENT WHERE MARKS BETWEEN 40 AND 75;
ii) SELECT * FROM STUDENT WHERE GRADE = ‘A+’;
d) Write SQL commands for the following table MOVIE: [4]
i) Display the list of all movies with price over 200 rupees and sorted by rating.
ii) Display a report listing the movie number, current price, updated price for each
movie in the above table if their price is increased by 15%.
iii) Display the number of seats left for action movies.
iv) Delete all the movies from the table with rating ‘C’.
e) A table FLIGHT has 4 rows and 3 columns and another table AIRHOSTESS has 3 rows and 4 [1]
columns. What will be the degree and cardinality of the resultant table if we obtain Cartesian
product of these two tables?
f) State the advantages of using index in database. [1]
(ii) An act of stealing someone’s personal information such as name, login details etc.
and then posting as if that person is online.