Annual Lab Questions
Annual Lab Questions
Annual Lab Questions
Write the SQL queries for (i) to (iv) and find the output for SQL queries (v) to (viii),which are based
on the tables.
Table :BOOK
CODE BNAME TYPE
F101 The priest Fiction
L102 German easy Literature
C101 Tarzan in the lost world Comic
F102 Untold story Fiction
C102 War heroes Comic
TABLE :MEMBER
MNO MNAME CODE ISSUEDATE
M101 RAGHAV SINHA L102 2016-10-13
M103 SARTHAK JOHN F102 2017-02-23
M102 ANISHA KHAN C101 2016-07-12
i. To display all details from table MEMBER in descending order of ISSUEDATE
ii. To display the bno and bname of all fiction type books from the table BOOK
iii. To display TYPE and number of books in each type from the table BOOK
iv. To display all MNAME and ISSUEDATE of those members from table member who have book
issued in the year 2017
v. SELECT MAX(ISSUEDATE) FROM MEMBER;
vi. SELECT DISTINCT TYPE FROM BOOK;
vii. SELECT A.CODE,BNAME,MNO,MNAME FROM BOOK A,MEMBER B WHERE A.CODE=B.CODE;
viii. SELECT BNAME FROM BOOK WHERE TYPE NOT IN (“FICTION”,”COMIC”);
Write the SQL queries for (i) to (iv) and find the output for SQL queries (v) to (viii),which are based
on the tables
TABLE:DEPT
DCODE DEPARTMENT CITY
D101 MEDIA DELHI
D02 MARKETING DELHI
D03 INFRASTRUCTURE MUMBAI
D05 FINANCE KOLKATA
DO4 INFRASTRUCTURE MUMBAI
TABLE :WORKER
WNO NAME DOJ DOB GENDER DCODE
1001 George k 2013-09-02 1991-09-01 male D01
1002 Ryma sen 2012-12-11 1990-12-15 female D03
1003 Mohitesh 2013-02-03 1987-09-04 Male D05
1007 Anil jha 2014-01-17 1984-10-19 Male D04
1004 Manila sahai 2012-12-09 1986-11-14 female D01
1005 R sahay 2013-11-18 1987-03-31 male D02
1006 Jaya priya 2014-06-09 1985-06-23 female D05
Write the SQL queries for (i) to (iv) and find the output for SQL queries (v) to (viii),which are based
on the tables
TABLE :BOOKS
Book_Id Book_Name Author_Name Publishers Price Type Qty
C0001 Fast Cook Lata kapoor EPB 355 COOKERY 5
F0001 The Tears William hopkins FIRST PUBL. 650 FICTION 20
T0001 My First C++ Brain & brooke EPB 350 TEXT 10
T0002 C++ brainworks A.w.rossaine TDH 350 TEXT 15
F0002 Thunderbolts Anna reborts F.IRST PUBL 750 FICTION 50
TABLE: ISSUED
Book_Id Quantity_Issued
T0001 4
C0001 3
F0001 2
i. To show Book_Name,Author name and price of books of First Publ.publishers.
ii. To list the names from books of text type.
iii. To display the names and price from books in ascending order of their price.
iv. To increase the price of all book of epb publishers by 50
v. SELECT COUNT(*) FROM BOOKS;
vi. SELECT MAX(PRICE) FROM BOOKS WHERE QTY>=15
vii. SELECT BOOK_NAME,AUTHOR_NAME FROM BOOKS WHERE PUBLISHERS=’EPB’;
viii. SELECT COUNT(DISTINCT PUBLISHERS) FROM BOOKS WHERE PRICE >=400;
Write the SQL queries for (i) to (iv) and find the output for SQL queries (v) to (viii),which are based
on the tables.
Table: EMPLOYEE
Table: SALGRADE
Write the SQL queries for (i) to (iv) and find the output for SQL queries (v) to (viii),which are based
on the tables.
Table :DVD
CODE DTITLE DTYPE
F101 Henry Martin Folk
C102 Dhurpad Classical
C101 The Planets Classical
F102 Universal Soldier Folk
R102 A Day in life Rock
TABLE :MEMBER
MNO MNAME CODE ISSUEDATE
101 AGM SINGH R102 2017-11-30
103 ARTH JOSEPH F102 2016-12-13
102 NISHA HANS C101 2017-07-24
1. Write a C++ program to implement Student Result Analysis System using class
2. Write a C++ program to implement Function overloading without using class
3. Write a C++ program to implement the multiple inheritance
4. Write a C++ program to implement the multilevel inheritance
5. Write a C++ file program to count lines, characters, particular word in a text file.
6. Write a C++ program to perform binary file manipulation (insertion and display)
7. Write a C++ program to perform binary file manipulation (delete and display)
8. Write a C++ program to perform binary file manipulation (search and display)
9. Write a C++ program to search a element using linear and binary search method
10. Write a C++ program to implement dynamic stack (linked list implementation)
11. Write a C++ program to implement dynamic queue (linked list implementation)