Solved 2025 Sample Question Paper CBSE Class 12 Computer Science (083) — Question 3
Back to all questionsSaman has been entrusted with the management of Law University Database. He needs to access some information from FACULTY and COURSES tables for a survey analysis. Help him extract the following information by writing the desired SQL queries as mentioned below.
Table: FACULTY
| F_ID | FName | LName | Hire_Date | Salary |
|---|---|---|---|---|
| 102 | Amit | Mishra | 12-10-1998 | 12000 |
| 103 | Nitin | Vyas | 24-12-1994 | 8000 |
| 104 | Rakshit | Soni | 18-5-2001 | 14000 |
| 105 | Rashmi | Malhotra | 11-9-2004 | 11000 |
| 106 | Sulekha | Srivastava | 5-6-2006 | 10000 |
Table: COURSES
| C_ID | F_ID | CName | Fees |
|---|---|---|---|
| C21 | 102 | Grid Computing | 40000 |
| C22 | 106 | System Design | 16000 |
| C23 | 104 | Computer Security | 8000 |
| C24 | 106 | Human Biology | 15000 |
| C25 | 102 | Computer Network | 20000 |
| C26 | 105 | Visual Basic | 6000 |
(I) To display complete details (from both the tables) of those Faculties whose salary is less than 12000.
(II) To display the details of courses whose fees is in the range of 20000 to 50000 (both values included).
(III) To increase the fees of all courses by 500 which have "Computer" in their Course names.
(IV)
(A) To display names (FName and LName) of faculty taking System Design.
OR
(B) To display the Cartesian Product of these two tables.
(I)
SELECT * FROM FACULTY, COURSES
WHERE Salary < 12000 AND FACULTY.F_ID = COURSES.F_ID;(II)
SELECT *
FROM COURSES
WHERE Fees BETWEEN 20000 AND 50000;(III)
UPDATE COURSES
SET Fees = Fees + 500
WHERE CName LIKE '%Computer%';(IV)
(A)
SELECT FName, LName
FROM FACULTY, COURSES
WHERE CName = 'System Design' AND
FACULTY.F_ID = COURSES.F_ID;OR
(B)
SELECT *
FROM FACULTY, COURSES;