Alter Add
Alter Add
DELETER COLUMN;
Alter table student drop income
TO SHOW
Select * from manthunarang;
Select * from table-name from table-name where condition;
Star ke jagah column k name
Select Sname,Sbirth from student where rollno=2;
RETRIVE SELECTED COLUMN;
Select Sname from manthan;
AGAR 2 KRVANE H
Select SName,Srollno from manthan;
RENAMING OF COLUMN;
Use as
Select Sname as Name from manthan;
Here name and salary column name is changed and also displayed
Select Ename as Name,Salary*12 as Annual Salary from manthan;
DISTINCT CLAUSE;
Help in showing data without repeating
Select distinct DEAPID from student;
WHERE CLAUSE;
Condition specify
< > => <= can also be used
And and or are also used in where
All emplye earing more than 50000 and dept id is 004
Select * from student where income>5000 and Deptid = 004;
Display all empolye expect aliya , so not is used
Select * from student where not Sname = aliya;
Select * from student where Dept id = 001 or Dept id = 002 or Dept
id = 003
UPDATION IN RECORS
Update student set Dept = 001 where Rollno = 3