SQL P
SQL P
1. Courses
Cno. Course_name
202 Accountancy
301 Statistics
111 Marketing
102 Mathematics
222 IT
2. Students
Solution
1.
Insert records in the above tables:
Solution
1.
2.
List all the information about all students from students table.
Solution
List all students names along with their DOB from students table.
Solution
Solutions
List the name of the students with ‘A’ grade in accountancy.
Solution
Solutions
Solution
List the names of the students who are not born on 30/11/2003.
Solution
List the student names and grades, whose grades are between A and C.
Solution
Solution
List the student names having ‘o’ as the second character.
Solution
List out the student number, first name, grades in ascending order of first name.
Solution
List the students name, grade, gender, and course no. in ascending order of course no. and
then descending order of grades.
Solution
Solution
List the details of all male students who are having grade B.
Solution
Solution
Write a query to inner join two tables to display the first name & course name.
Solution