SQL Practical File - 20 Mixed Questions
1. Create a database named College.
2. Create a table Student with fields: Roll_No, Name, Age, Class, Marks.
3. Insert at least 5 records into the Student table.
4. Display all records from the Student table.
5. Display Name and Marks of students.
6. Find students who scored more than 75 marks.
7. Display students whose age is between 18 and 22.
8. Sort students by Marks in ascending order.
9. Find students whose name starts with 'A'.
10. Use LIKE operator to find names ending with 'n'.
11. Find the maximum marks.
12. Find the average marks of students.
13. Count total number of students.
14. Display average marks of each class using GROUP BY.
15. Update marks of a student.
16. Delete a student record using Roll_No.
17. Create another table Course with Course_ID, Course_Name, Roll_No.
18. Perform INNER JOIN between Student and Course tables.
19. Find the second highest marks using subquery.
20. ALTER table to add a new column Email.