MySQL Record PT 1
MySQL Record PT 1
EXP.NO: 01
DATE:
PROGRAM:
10) Write a command to display s_name and stream of the students whose stream is equal
to cs.
11) Write a command to display name and stream in the ascending order of name.
12) Write a command to display name and stream in the descending order of name.
13) Write a command to add new column marks to the table s1.
14) Write a command to display name, stream and marks of the students who are in stream
cs and have marks greater than 90.
17) Write a query to display the name of the students whose name is starting with ‘A’
19) Write a query to display name of all students whose fees contains null
20) Write a query to display
max,min,sum,avg,count(*),count(marks),count(distinct(marks)) of each stream
21) Write a query to display stream where the number of students is more than 2.
22) Write a query to display rno, s_name, address and phone_no of tables s1 and s2.