sql2
sql2
HW Questions
1. Create table teacher(tid,tname,tage,dob)
2. Describe Teacher
3. Insert 5 records
4. Select the table teacher
==================================================
Extra Question
Q. Delete all Records
Extra
Delete records whose age is less than 18
delete from studentsy where sage<18;
Delete records whose id is more than 1003 but less than 1005 including boundaries
delete from studentsy where sid>=1003 and sid<=1005;
delete from studentsy where sid between 1003 and 1005;
Update Query
(Data Modification)
update studentsy
set sdob='17-Feb-2005'
where sname='Varun';
update studentsy
set sid=2004
where sname='piyush';