The document creates two tables: TRAINER with fields for trainer ID, name, city, hire date and salary and COURSE with fields for course ID, name, fees, start date and trainer ID. It then inserts records into both tables with details for multiple trainers and courses.
The document creates two tables: TRAINER with fields for trainer ID, name, city, hire date and salary and COURSE with fields for course ID, name, fees, start date and trainer ID. It then inserts records into both tables with details for multiple trainers and courses.
The document creates two tables: TRAINER with fields for trainer ID, name, city, hire date and salary and COURSE with fields for course ID, name, fees, start date and trainer ID. It then inserts records into both tables with details for multiple trainers and courses.
CNAME varchar(10)not null, FEES decimal(8,2), STARTDATE DATE, TID numeric(3));
create table TRAINER(
TID numeric(3)primary key, TNAME varchar(12)not null, CITY char(12)not null, HIREDATE date, SALARY decimal(7,2));
insert into TRAINER values(101,'SUNAINA','MUMBAI','1998-10-15',90000);
insert into TRAINER values(102,'ANAMIKA','DELHI','1994-12-24',80000); insert into TRAINER values(103,'DEEPTI','CHANDIGARH','2001-12-21',82000); insert into TRAINER values(104,'MEENAKSHI','DELHI','2002-12-25',78000); insert into TRAINER values(105,'RICHA','MUMBAI','1996-01-12',95000); insert into TRAINER values(106,'MANIPRABHA','CHENNAI','2001-12-12',69000);
insert into COURSE values('C201','AGDCA',12000,'2018-07-02',101);
insert into COURSE values('C202','ADCA',15000,'2018-07-15',103); insert into COURSE values('C203','DCA',10000,'2018-10-01',102); insert into COURSE values('C204','DDTP',9000,'2018-09-15',104); insert into COURSE values('C205','DHN',20000,'2018-08-01',101); insert into COURSE values('C206','O LEVEL',18000,'2018-07-25',105);