My SQL
My SQL
Use the command to get the details of the students with marks more than
15.
Output:
Query 6
Find the minimum, maximum and average of marks in students table.
Query 7
Write a command to display details of a student whose name start with g
Output:
Query 8
Write a command to display rollno., name, DOB of those students who
are born between 2021-01-01 and 2021-12-31.
Output:
Query 9
Write a command to display rollno,name,dob,marks of male students in
ascending order of their name.
Output:
Query 10
Write a command to display the unit section available in the table.
Output:
Query 11
Write an SQL query to sort the studentid,marks in descending order of
their marks.
Output:
Query 12
Write a command to add a new column named email in the above table
student.
Output:
Query 13
Write a command to increase marks by 5% of those students who have
rollno more than 5.
Output:
`
Query 14
Write a command to delete the table students from the database.
Output:
Query 15
Find the total number of customer from each country in the customer
table (customerid,name,country).
Output:
Query 3
Display the details of table students
Output:
Query 4
Delete the details of the students in the above table.
Output:
Query 2
Output:
INDIAN MODERN SR SEC SCHOOL
ROLLNO:
SQL COMMANDS
S.NO. PRACTICAL SIGNATURE
1 Create a table student with studentid , name ,marks,
rollno, class, section, DOB, gender as attributes
where studentid is PRIMARY KEY(take studentid
as stuid).
2 Insert the details of 10 students.