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

Assignment 7

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

Assignment 7

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

Program – 2.

1
Queries on Logical Operators
1. Select all columns in student table.

2. Select all columns in faculty table with a salary over 20000.

3. Display all columns in faculty table where salary is between 120000 and 150000
4. Select EnrolNO, SNAME, and DOB for for each student whose class coordinator is
Dr. Parul.

5. Select all columns in student table whose birthdate >=9th December, 2001.

6. Select enrolno,name and class coordinators of those students whose class


coordinator is either Dr. Sarita or DR. Parul.

7. Select fname, course_id and specialization of those faculty whose salary>120000


and specialization is Marketing
8. Select fname from faculty table where fname doesnt start with letter P.

9. Retrieve the list of all honours courses from course table.

10. Display the name of courses which start with letter B.


11. Which honours course has fees more than 81000.

12. What is the percentage requirement of BBA Course.

13. Which Courses are held in floor 3 and 8.


14. Display the faculty name who are specialized in IT or Finance and drawing a
salary of more than 50000.

Queries on Pattern Matching

15. Display the names of students whose name begins with ‘M”.
16. Display the names of students whose name ends with ‘N”.

17. Display the names of students whose name ends with ‘A” or ends with ‘N’.

18. Display the names of students whose name contains ‘AA’ and Class coordinator is
Dr. Deepak.
19. Display the names of students whose name contains ‘O’ twice.

You might also like