GR 12
GR 12
alter table Student12 ADD(City char(10) default "Delhi"); (Add Column with
default value)
alter table Student12 ADD Primary key (Rollno); (Add primary key)
//Update
UPDATE Student12 SET Marks=90 where Rollno=5;
//SQL queries
1. Display Students Rollno, name, gender and matrks
Ans. select Rollno, name,Gender, Marks from Student12;
3. Display Rollno, name and marks with greater than 50 and less than 100.
Ans. select Rollno, Name, Marks from Student12 where Marks>50 AND Marks<100;
//Group by Clause
alter table Student12 ADD(sal decimal(7,2));
//Domain: