SQL
SQL
Create database:
use cvr;
Student:
Sno
Sname
marks
city
mobile
gender
create table student(sno int, sname varchar(20), marks int, city varchar(20),
mobile int, gender varchar(20));
3. Display female students from Hyderabad and male students from Pune and all the
students from bglr.
5. Display students details whose score between 50 and 80 and city should be
Hyderabad or bglr.
6.Display student details whose name starts with S and ends with A
select city, avg(marks) as "avg score" from students group by city order by "avg
score" desc limit 1;