You are on page 1of 1

create table customer(Id number(9),dept varchar(25),marks number(8),age number(9));

desc customer;

insert into customer(Id,dept,marks,age)values(1,'cse',20,5);

insert into customer(Id,dept,marks,age)values(2,'eee',23,6);

insert into customer(Id,dept,marks,age)values(3,'ece',22,7);

select *from customer;

select upper('cse') from customer;

select lower('cse') from customer;

select substr(dept,1,2) from customer;

select age as a from customer;

insert into customer values(:Id,:dept,:marks,:age);

select *from customer;

alter table customer ADD(name char(45));

select *from customer;

select distinct(age) from customer;

select round(age) from customer;

Alter table customer ADD age number check(age<5);

select ( 5+2) from dual;

update customer set age=12 where dept;

select count(dept),id from customer GROUP BY Id;

select *from emp;

select count(dept),age from customer HAVING count(age<5);

select *from LIKE emp where ENAME 'J';

You might also like