SQL Practical List
SQL Practical List
1. Create a student table with the student id, name, and marks as attributes where the student id
is the primary key.
2. Insert the details of a new student in the above table.
3. Delete the details of a student in the above table.
4. Use the select command to get the details of the students with marks more than 80.
5. Find the min, max, sum, and average of the marks in a student marks table.
6. Find the total number of customers from each country in the table (customer ID, customer
Name, country) using group by.
7. Write a SQL query to order the (student ID, marks) table in descending order of the marks
8. Write a SQL query to display the marks without decimal places, display the reminder after diving
marks by 3 and display the square of marks
9. Write a SQL query to display names into capital letters, small letters, display frist 3 letters of
name, display last 3 letters of name, display the position the letter A in name
10. Remove extra spaces from left, right and both sides from the text – ” Informatics Practices Class
XII “.
11. Display today’s date in “Date/Month/Year” format.
12. Display dayname, monthname, day, dayname, day of month, day of year for today’s date.