Thursday, 25 July 2019

Sample is Null, Not, Between, and, in keywords


Sample is Null, Not, Between, and, in keywords

//alter table employee add (sal numeric(8,2))

alter table employee drop column sal

//rename emp1 to emp

//desc employee

insert into employee values('Mohan','Dhrbhanga','919874653231','55423','','40')

select * from employee where empname=''

select * from employee where empname is Null

select * from employee where empname is not Null

select * from employee where deptname=''

select empname,address,phno,salary,deptname,deptid from employee where not deptid=10

select empname,address,phno,salary,deptname,deptid from employee where not(deptid=10 or deptid=20)

select * from employee where not(deptid=10 or deptid=20)

select * from employee where deptid between 10 and 20

select * from employee where empid between 1 and 11

select * from employee where deptid >=10 and deptid <=20

select * from employee where deptid not between 10 and 20

select * from employee where empname like '_a%' or empname like '_r%'

select * from employee where empname like 'pr_%'

select * from employee where empname in ('pradeep','Ritesh','Amod','Panlkaj Chejara')

select * from employee where empname not in ('pradeep','Ritesh','Amod','Panlkaj Chejara')

https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos

0 comments

Post a Comment