Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
5(a)
01. (a)What is a relation? What is the difference between a tuple and an attribute? 1998
02. (a) What is the need for normalization ? Define first, second and third normal forms.
1999 & 2000
03.(a) What are DDL and DML ? 2001
04. (a) What is relation ? Define the relational data model. 2002
05.(a) What do you understand by normalization ? What is First Normal Form? 2004
06.(a) What do you understand by the terms Primary Key and Degree of a relation in
relational database? 2005
07.(a) Differentiate between primary key and alternate key. 2007
09.(a) What do you understand by Candidate Keys in a table ? Give a suitable example
of Candidate keys from a table containing some meaningful data. 2009 & 2010
10.(a) What do you understand by Union & Cartesian Product operations in
relational algebra? 2011
11.(a) Giv a suitable example of a tabl with sample data and illustrate Primery and Alternate
Keys in it. 2012
12.(a) What do you understand by Degree and Cardinality of a table? S. P. 1 & 2 & 3
13. (a) What are DDL and DML Commands? Give one example of each. 2013 SP1&3
14. (a) What do you understand by the term alternate key and degree of a relation in a relational
database? 2013 SP 2
15. (a) What do you understand by the terms Alternate key and Foreign Key of a relation?
2013 SP 4
Q.No. 5 (B)
01. (b) Write SQL commands for (i) to (vii) and write the outputs for (vii) on the basis of
table HOSPITAL. 1998
03. (b) Write SOL commands for (i) to (iv) and write the outputs for (v) on the basis of
table CLUB. 2000
(i) To show all information about the swimming coaches in the club.
(ii) To list name of all coaches with their date of appointment (DATEOFAPP) in
descending order.
(iii) To display a report, showing coachname, pay, age and bonus (15% of pay) for all the
coaches.
(iv) To insert a new row in the CLUB table with the following data :
11, "PRAKASH", 37, "SQUASH", {25/02/98}, 2500, "M"
(vii) Give the output of the following queries based on the above tables :
SELECT COUNT(DISTINCT Publishers) FROM Books
SELECT SUM(Price) FROM Books WHERE Quantity >5
SELECT Book_Name, Author_Name FROM Books WHERE Price<500
SELECT COUNT (*) FROM Books
07. (b) Consider the following tables EMPLOYEES and EMPSALARY. Write SQL
commands for the statements (i) to (iv) and give outputs for SQL queries (v) to (viii).
2005
(i) To display Firstname, Lastname, Address and City of all employees living in
Paris from the table EMPLOYEES.
(ii) To display the content of EMPLOYEES table in descending order of
FIRSTNAME.
(iii) To display the Firstname, Lastname, and Total Salary of all Managers from
the tables EMPLOYEES and EMPSALARY, where Total Salary is calculated as
Salary + Benefits.
(iv) To display the Maximum salary among Managers and Clerks from the table
EMPSALARY.
(ii) To display the details of all the GARMENTs, which have READYDATE in
between 08-DEC-07 and 16-JUN-08 (inclusive of both the dates).
(iii) To display the average PRICE of all the GARMENTs, which are made up of
FABRIC with FCODE as F03.
(iv) To display FABRICwise highest and lowest price of GARMENTs from GARMENT
table. (Display FCODE of each GARMENT along with highest and lowest price).
10.(b) Consider the following tables. Write SQL commands for the statements (i) to (iv)
and give outputs for SQL queries (v) to (viii). 2010
(i) To display details of all the items in the Store table in ascending order of
LastBuy.
(ii) To display ItemNo and Item name of those items from Store table Whose Rate
is more than 15 Rupees.
(iii)To display the details of those items whose Suppliers code (Scode) is 22 or
Quantity in Store (Qty) is more than 110 from the table Store.
(iv) To display Minimum Rate of items for each Supplier individually as per
Scode from the table Store.
11.(b)Consider the following tables WORKER and PAYLEVEL and answer the given
questions. 2011
12.(b) Consider the following tables CARDEN and CUSTOMER and answer the
questions. 2012
13. (b) Consider the following tables GAMES and PLAYER. Write SQL commands for
the statements (i) to (iv) and give outputs for SQL queries (v) to (viii).
S.P. 1
(i) To display the name of all Games with their Gcodes
(ii) To display details of those games which are having PrizeMoney more than 7000.
(iii) To display the content of the GAMES table in ascending order of ScheduleDate.
(iv) To display sum of PrizeMoney for each of the Number of participation groupings (as
shown in column Number 2 or 4)
14. (b) Consider the following tables ACTIVITY and COACH. Write SQL commands for
the statements (i) to (iv) and give outputs for SQL queries (v) to (viii)
SP2
(i) To display the name of all activities with their Acodes in descending order.
(ii) To display sum of PrizeMoney for each of the Number of participants groupings (as
shown in column ParticipantsNum 10,12,16)
(iii) To display the coach’s name and ACodes in ascending order of ACode from
the table COACH
(iv) To display the content of the GAMES table whose ScheduleDate earliar than
01/01/2004 in ascending order of ParticipantNum.
15. (b) Consider the following tables ACTIVITY and COACH and answer the questions:
SP3
16. (b) Consider the following tables Stationary and Consumer. Write SQL commands for
the statement (i) to (iv). 2013 S. P. 1
17. (b) Consider the following tables EMPLOYEES and EMPSALARY. Write SQL
commands for the statements (i) to (iv) and give outputs for SQL queries (v) to (viii).
2013 S.P. 2
(i) To display Firstname, Lastname, address and city of all employees leaving in Paris
from the table EMPLOYEES.
(ii) To display the content of EMPLOYEES table in descending order of Firstname.
(iii) To display the Firstname , Lastname, and total salary of all Managers from the
tablesEMPLOYEES and EMPSALARY, where total salary is calculated as SALARY +
BENEFITS
(iv) To display the maximum salary among Managers and Clerks from the table
EMPSALARY.
18. (b)Consider the following table Organisation and Grossincome and answer (I) and (II)
part of the question: 2013 S.P. 3
19. (b)Consider the following tables SCHOOL and ADMIN. Write SQL commands for
the statements (i) to (iv) and give outputs for SQL queries (v) to (viii).
2013 S.P. 4
(i) To display TEACHERNAME, PERIODS of all teachers whose periods less than 25.
(ii) To display TEACHERNAME, CODE and DESIGNATION from tables SCHOOL and
ADMIN whose gender is male.
(iii) To display number of teachers in each subject wise.
(iv) To display CODE, TEACHERNAME and SUBJECT of all teachers who have joined
the school after 01/01/1999.