RDBMS Notes
RDBMS Notes
RDBMS Notes
name varchar(50),
);
where id >1;
use dates;
id int,
name varchar(20),
join_date varchar(20)
);
values(5,'deep','2004-07-05');
commit;
savepoint s5;
describe std12;
rollback s5;
describe std12;
(2,'bob', 'hr',1000,'gj'),
(3,'chetan', 'hr',1000,'mh'),
(4,'diya', 'hr',1000,'mh'),
(5,'eisha', 'hr',1000,'rj'),
(6,'faishal', 'hr',1000,'rj'),
(7,'gagan', 'hr',1000,'rj'),
(8,'hari', 'hr',1000,'pj');
use learner;
(2,'bob', 'hr',1000,'gj'),
(3,'chetan', 'hr',1000,'mh'),
(4,'diya', 'it',1000,'mh'),
(5,'eisha', 'it',1000,'rj'),
(6,'faishal', 'it',1000,'rj'),
(7,'gagan', 'manag',1000,'rj'),
(8,'hari', 'manag',1000,'pj');
FROM emp
from emp
group by debt;
select debt,count(debt),"t"
from emp
group by state;
from emp
group by state;
from emp
group by debt
commit;
savepoint s5;
describe std12;
rollback s5;
describe std12;
(2,'bob', 'hr',1000,'gj'),
(3,'chetan', 'hr',1000,'mh'),
(4,'diya', 'hr',1000,'mh'),
(5,'eisha', 'hr',1000,'rj'),
(6,'faishal', 'hr',1000,'rj'),
(7,'gagan', 'hr',1000,'rj'),
(8,'hari', 'hr',1000,'pj');
select * from emp;
select name from emp where state ='rj' or state ='pj'or state ='gj'
use learner;
(2,'bob', 'hr',1000,'gj'),
(3,'chetan', 'hr',1000,'mh'),
(4,'diya', 'it',1000,'mh'),
(5,'eisha', 'it',1000,'rj'),
(6,'faishal', 'it',1000,'rj'),
(7,'gagan', 'manag',1000,'rj'),
(8,'hari', 'manag',1000,'pj');
FROM emp
from emp
group by debt;
select debt,count(debt),"t"
from emp
group by state;
from emp
group by state;
from emp
group by debt
from emp
GROUP BY state;
FROM emp
GROUP BY state