Coding By Yakub
703 subscribers
273 photos
97 files
24 links
This channel for online classes videos for java , jdbc, hibernate, spring and spring boot and react js. With handson
Download Telegram
Forwarded from ORACLE BATCH 2024
Create table with name Student:
=================================
SQL> create table student(sid number(20), sname varchar2(20), age number(20),
course varchar2(20), fees number(30), location varchar2(20));

Insert records into Student table:
=================================
insert into student values(101, 'ram', 24, 'java', 12000, 'hyderabad');
insert into student values(102, 'amar', 27, 'c', 5000, 'pune');
insert into student values(103, 'satya', 21, 'python', 9000, 'chennai');
insert into student values(104,'pavan',28,'android',8000, 'hyderabad');
insert into student values(105, 'harin', 22, 'java', 12000, 'bangalore');
insert into student values(106, 'swathi', 19, 'android', 8000, 'chennai');
insert into student values(107, 'raji', 20, 'c', 5000, 'pune');
insert into student values(108, 'jaya', 25, 'java', 12000, 'hyderabad');
insert into student values(109, 'harsha', 29, 'python', 9000, 'chennai');
insert into student values(110, 'vijaya', 20, 'java', 12000, 'hyderabad');
👍3
Forwarded from ORACLE BATCH 2024
Forwarded from ORACLE BATCH 2024
Forwarded from ORACLE BATCH 2024
👍1
create table emp(empno number(4) not null,ename varchar2(10),
job varchar2(9), mgr number(4),
hiredate date, sal number(7, 2),
comm number(7, 2), deptno number(2));
================================================
insert into emp values (7369, 'smith', 'clerk', 7902,
to_date('17-dec-1980', 'dd-mon-yyyy'), 800, null, 20);
insert into emp values (7499, 'allen', 'salesman', 7698,
to_date('20-feb-1981', 'dd-mon-yyyy'), 1600, 300, 30);
insert into emp values (7521, 'ward', 'salesman', 7698,
to_date('22-feb-1981', 'dd-mon-yyyy'), 1250, 500, 30);
insert into emp values (7566, 'jones', 'manager', 7839,
to_date('2-apr-1981', 'dd-mon-yyyy'), 2975, null, 20);
insert into emp values (7654, 'martin', 'salesman', 7698,
to_date('28-sep-1981', 'dd-mon-yyyy'), 1250, 1400, 30);
insert into emp values (7698, 'blake', 'manager', 7839,
to_date('1-may-1981', 'dd-mon-yyyy'), 2850, null, 30);
insert into emp values (7782, 'clark', 'manager', 7839,
to_date('9-jun-1981', 'dd-mon-yyyy'), 2450, null, 10);
insert into emp values (7788, 'scott', 'analyst', 7566,
to_date('09-dec-1982', 'dd-mon-yyyy'), 3000, null, 20);
insert into emp values (7839, 'king', 'president', null,
to_date('17-nov-1981', 'dd-mon-yyyy'), 5000, null, 10);
insert into emp values (7844, 'turner', 'salesman', 7698,
to_date('8-sep-1981', 'dd-mon-yyyy'), 1500, 0, 30);
insert into emp values (7876, 'adams', 'clerk', 7788,
to_date('12-jan-1983', 'dd-mon-yyyy'), 1100, null, 20);
insert into emp values (7900, 'james', 'clerk', 7698,
to_date('3-dec-1981', 'dd-mon-yyyy'), 950, null, 30);
insert into emp values (7902, 'ford', 'analyst', 7566,
to_date('3-dec-1981', 'dd-mon-yyyy'), 3000, null, 20);
insert into emp values (7934, 'miller', 'clerk', 7782,
to_date('23-jan-1982', 'dd-mon-yyyy'), 1300, null, 10);
===========================================================
create table dept
(deptno number(2),
dname varchar2(14),
loc varchar2(13) );
-----------------------------------------------
insert into dept values (10, 'accounting', 'new york'); insert
into dept values (20, 'research', 'dallas'); insert into
dept values (30, 'sales', 'chicago'); insert
into dept values (40, 'operations', 'boston');
====================================================
👍2