Dbms Lab 1-10
Dbms Lab 1-10
Dbms Lab 1-10
INTO
INTO
INTO
INTO
INTO
INTO
INTO
CUSTOMERS
CUSTOMERS
CUSTOMERS
CUSTOMERS
CUSTOMERS
CUSTOMERS
CUSTOMERS
VALUES('ANIL','CALCUTTA');
VALUES('SUNIL','DELHI');
VALUES('MEHUL','BARODA');
VALUES('MANDAR','PATNA');
VALUES('MADHURI','NAGPUR');
VALUES('PRAMOD','NAGPUR');
VALUES('SANDIP','SURAT');
INTO
INTO
INTO
INTO
INTO
INTO
BORROW
BORROW
BORROW
BORROW
BORROW
BORROW
VALUES('201','ANIL','VRCE',1000);
VALUES('206','MEHUL','AJNI',5000);
VALUES('311','SUNIL','DHARAMPETH',3000);
VALUES('321','MADHURI','ANDHERI',2000);
VALUES('375','PRMOD','VIRAR',8000);
VALUES('481','KRANTI','NEHRUPLACE',3000);
desc DEPOSIT;
desc BRANCH;
desc BORROW;
desc CUSTOMERS;
SELECT * FROM DEPOSIT;
SELECT * FROM BORROW;
SELECT * FROM CUSTOMERS;
SELECT * FROM BRANCH;
SELECT ACTNO FROM DEPOSIT;
SELECT AMOUNT FROM DEPOSIT;
*******PRACTICAL ACCCOUNT******
UPDATE ACCOUNT SET NAME='Patel Hiren' where name='Patel Jigar';
UPDATE ACCOUNT SET NAME ='Kothari Nehal',city='Patan' where acc_no='A005';
SELECT * FROM ACCOUNT WHERE LOAN_TAKEN='YES';
ALTER TABLE ACCOUNT ADD(address varchar2(20));
CREATE TABLE ACCOUNT_TEMP(acc_no,name,balance) as select acc_no,name,balance fro
m ACCOUNT;
RENAME ACCOUNT TO ACCOUNT_MASTER;
UPDATE ACCOUNT_MASTER SET BALANCE=BALANCE*2;
DESC ACCOUNT_MASTER;
DELETE FROM ACCOUNT_MASTER WHERE ACC_NO='A004';
********PRACTICAL LOAN********
UPDATE LOAN SET LOAN_AMT=LOAN_AMT+100000;
UPDATE LOAN SET INTEREST_RATE=INTEREST_RATE+2;
CREATE TABLE LOAN_TEMP(LOAN_NO,ACC_NO,LOAN_AMT,LOAN_DATE) AS LOAN_NO,ACC_NO,LOAN
_AMT,LOAN_DATE FROM LOAN;
SELECT * FROM LOAN WHERE TO_CHAR(LOAN_DATE,'MON')='JAN';
ALTER TABLE LOAN ADD(CREDIT_NO VARCHAR2(4));
SELECT LOAN_AMT*2 FROM LOAN;
SELECT * FROM LOAN ORDER BY LOAN_DATE;
SELECT * FROM LOAN ORDER BY ACC_NO DESC;
ALTER TABLE LOAN MODIFY(ACCOUNT_NO VARCHAR2(7));
******PRACTICAL- INSTALLMENT******
UPDATE INSTALLMENT SET INST_DATE='3-MAR-04' WHERE INST_DATE= '2-FEB-04';
UPDATE INSTALLMENT SET AMOUNT=AMOUNT-5000;
*>UPDATE INSTALLMENT SET AMOUNT=AMOUNT+5000 WHERE LOAN_NO='L003'OR LOAN_NO='L004
';
ALTER TABLE INSTALLMENT MODIFY(LOAN_NO VARCHAR2(7));
ALTER TABLE INSTALLMENT MODIFY(INST_NO VARCHAR2(4));
DESC INSTALLMENT;
UPDATE INSTALLMENT SET AMOUNT=5000 WHERE UPDATE LOAN_NO='L001';
DELETE FROM INSTALLMENT WHERE LOAN_NO='L001';
CREATE TABLE INSTALLMENT1 AS SELECT * FROM INSTALLMENT WHERE 1=2;
*********PRACTICAL TRANSACTION********
INSERT INTO TRANSACTION VALUES('A001','03-MAY-04',100000,'D','CASH');
SELECT DISTINCT * FROM TRANS;
SELECT * FROM TRANSACTION ORDER BY ACC_NAME DESC;
SELECT AMT,TR_DATE,TYPE_OF_TR FROM TRANSACTION ORDER BY TR_DATE;
CREATE TABLE TRANSACTION_TEMP AS SELECT * FROM TRANSACTION;
CREATE TABLE TRANS_TEMP(ACCOUNT_NAME,TR_DATE,AMT,TYPE_OF_TR,MODE_OF_PAY)AS SELEC
T ACC_NAME,TR_DATE,AMT,TYPE_OF_TR,MODE_OF_PAY FROM TRANSACTION;
DROP TRANSACTION_TEMP;
**********PRACTICAL-3**********
CREATE TABLE ACCOUNT(Acc_no varchar2(5),Name varchar2(30),City varchar2(20),Bala
nce number(10,2),Loan_taken varchar2(3));
CREATE TABLE LOAN(Loan_no varchar2(5),Acc_no varchar2(5),Loan_amt number(10,2),I
nterest_rate number(5,2),Loan_date date,Remaining_loan number(10,2));
CREATE TABLE INSTALLMENT(Loan_no varchar2(5),Inst_no varchar2(5),IDate date,Amou
nt number(10,2));
CREATE TABLE TRANSACTION(Acc_no varchar2(5),Trans_date date,Amt number(10,2),Typ
e_of_tr char(1),Mode_of_pay varchar2(10));
INSERT INTO ACCOUNT VALUES('A001','Patel Jigar','Mehsana',50000,'YES');
INSERT INTO ACCOUNT VALUES('A002','Patel Ramesh','Mehsana',50000,'YES');
INSERT INTO ACCOUNT VALUES('A003','Dave Hardik','Ahmedabad',75000,'NO');
INSERT INTO ACCOUNT VALUES('A004','Soni Hetal','Ahmedabad',100000,'NO');
INSERT INTO ACCOUNT VALUES('A005','Sony Atul','Vadodara',100000,'YES');
INSERT INTO LOAN VALUES('L001','A001',100000,7,'1-JAN-04',75000);
INSERT INTO LOAN VALUES('L002','A002',300000,9,'18-MAY-04',150000);
INSERT INTO LOAN VALUES('L003','A003',500000,11,'15-JUNE-04',300000);
INSERT INTO INSTALLMENT VALUES('L001','I001','2-FEB-04',15000);
INSERT INTO INSTALLMENT VALUES('L002','I002','18-JUNE-04',20000);
INSERT INTO INSTALLMENT VALUES('L003','I003','15-JULY-04',20000);
INSERT INTO TRANSACTION VALUES('A001','3-MAY-04',10000,'D','CASH');
INSERT INTO TRANSACTION VALUES('A002','5-JULY-04',5000,'W','CHEQUE');
INSERT INTO TRANSACTION VALUES('A003','12-AUG-04',25000,'D','CHEQUE');
INSERT INTO TRANSACTION VALUES('A004','15-MAY-04',30000,'D','CHEQUE');
INSERT INTO TRANSACTION VALUES('A005','22-MAY-04',15000,'W','CASH');
***************GTU TABLES*************
CREATE TABLE JOB(JOB_ID VARCHAR2(15),JOB_TITLE VARCHAR2(30),MIN_SAL NUMBER(7,2),
MAX_SAL NUMBER(7,2));
CREATE TABLE EMPLOYEE(EMP_NO NUMBER(3),EMP_NAME VARCHAR2(30),EMP_SAL NUMBER(8,2)
,EMP_COMM NUMBER(6,1),DEPT_NO NUMBER(3));
CREATE TABLE DEPOSITGTU(A_NO VARCHAR2(5),CNAME VARCHAR2(15),BNAME VARCHAR2(10),A
MOUNT NUMBER(7,2),A_DATE DATE);
CREATE TABLE BORROWGTU(LOANNO VARCHAR2(5),CNAME VARCHAR2(15),BNAME VARCHAR2(10),
AMOUNT NUMBER(7,2));
************TO INSERT VALUES OF EMPLOYEE***********
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
NO');
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
EMPLOYEE
EMPLOYEE
EMPLOYEE
EMPLOYEE
EMPLOYEE
EMPLOYEE
EMPLOYEE
EMPLOYEE
VALUES(101,'SMITH',800,0,20);
VALUES(102,'SNEHAL',1600,300,25);
VALUES(103,'ADAMA',1100,0,20);
VALUES(104,'AMAN',3000,0,15);
VALUES(105,'ANITA',5000,50000,10);
VALUES(106,'SNEHA',2450,24500,10);
VALUES(107,'ANAMIKA',2975,'NULL',30);
VALUES('&EMP_NO','&EMP_NAME','&EMP_SAL','&EMP_COMM','&DEPT_
INTO
INTO
INTO
INTO
INTO
INTO
JOB
JOB
JOB
JOB
JOB
JOB
VALUES('IT_PROG','PROGRAMMER',4000,10000);
VALUES('MK_MGR','MARKETING MANAGER',9000,15000);
VALUES('FI_MGR','FINANCE MANAGER',8200,12000);
VALUES('FI_ACC','ACCOUNT',4200,9000);
VALUES('LEC','LECTURER',6000,17000);
VALUES('COMP_OP','COMPUTER OPERATOR',1500,3000);
INTO
INTO
INTO
INTO
INTO
INTO
DEPOSITGTU
DEPOSITGTU
DEPOSITGTU
DEPOSITGTU
DEPOSITGTU
DEPOSITGTU
VALUES(101,'ANIL','ANDHERI',7500,'01-JAN-06');
VALUES(102,'SUNIL','VIRAR',5000,'15-JUL-06');
VALUES(103,'JAY','VILLEPARLE',6500,'12-MAR-06');
VALUES(104,'VIJAY','ANDHERI',8000,'17-SEP-06');
VALUES(105,'KEYUR','DADAR',7500,'19-NOV-06');
VALUES(106,'MAYUR','BORIVALI',5500,'21-DEC-06');
***************2********************
SELECT SUM(AMT) AS total_TRANSACTIO_AMOUNT FROM TRANSACTION;
SELECT MAX(AMT) FROM TRANSACTION;
SELECT MIN(AMT) FROM TRANSACTION;
SELECT COUNT(ACC_NO) FROM TRANSACTION;
SELECT COUNT(ACC_NO) FROM TRANSACTION WHERE MODE_OF_PAY='CASH';
SELECT COUNT(ACC_NO) FROM TRANSACTION WHERE TO_CHAR(TRANS_DATE,'MON')='MAY';
SELECT AVG(AMT) FROM TRANSACTION;
SELECT POWER(4,4) FROM DUAL;
SELECT SQRT(25) FROM DUAL;
SELECT LOWER('AJAY') LOWER FROM DUAL;
SELECT UPPER('ajay') MY_NAME FROM DUAL;
SELECT SUBSTR('AJAY',2,3) SUB_STR FROM DUAL;
SELECT LENGTH('AJAY') FROM DUAL;
SELECT LTRIM('AJAY_VASANT','A') FROM DUAL;
SELECT RTRIM('AJAY_VASANT','NT') FROM DUAL;
SELECT LPAD('AJAY',10,'*') LPAD FROM DUAL;
SELECT RPAD('AJAY',10,'*') RPAD FROM DUAL;
SELECT INITCAP('ajay_vasant') FROM DUAL;
***************************************************************************
INSERT INTO SPL2 SELECT * FROM EMPLOYEE WHERE EMP_NAME LIKE '_N___';
ALTER TABLE SUPPLIER RENAME COLUMN "EMP_NO" TO "SUP_NO";(EXTRA)
DELETE FROM SUPPLIER WHERE SUP_NO='103';
TRUNCATE TABLE SUPPLIER;
DELETE FROM SUPPLIER WHERE SUP_NO BETWEEN 101 AND 107;
RENAME SPL2 TO SUPPLIER2;
DROP TABLE SPL1;
UPDATE EMPLOYEE SET DEPT_NO=10 WHERE EMP_NAME LIKE '_M%';
UPDATE EMPLOYEE SET EMP_NAME='LAB_B' WHERE EMP_NO=103;
*****************************GTU PRACTICAL-4******************
SELECT SYSDATE "DATE" FROM DUAL;
SELECT EMP_NO,JOB_ID,ROUND(EMP_SAL,0) NEW_SAL FROM EMPLOYEE,JOB;
FROM EMPLOYEE;
******************************GTU PRACTICAL-6************************
SELECT SUM(AMOUNT) FROM DEPOSIT WHERE ADATE>'01-JAN-96';
2-SKIP
3-SKIP
SELECT MAX(EMP_SAL)-MIN(EMP_SAL) "DIFFERENCE" FROM EMPLOYEE;
SELECT ROUND(MAX(EMP_SAL)) MAXIMUM,ROUND(MIN(EMP_SAL)) MINIMUM,ROUND(SUM(EMP_SAL
)) SUM_SAL,ROUND(AVG(EMP_SAL)) AVERAGE FROM EMPLOYEE;
6-SKIP
7-SKIP
8-SKIP
9-SKIP
10-SKIP
****************************GTU PRACTICAL-5**************
SELECT SUM(BALANCE) FROM ACCOUNT_MASTER GROUP BY CITY HAVING CITY='Mehsana';
SELECT * FROM ACCOUNT WHERE BALANCE<(SELECT SUM(BALANCE) FROM ACCOUNT);
SELECT * FROM ACCOUNT,LOAN WHERE ACCOUNT.ACC_NO=LOAN.ACC_NO AND ACCOUNT.BALANCE=
LOAN.LOAN_AMT;
SELECT ACCOUNT.CITY,LOAN.REMAINING_LOAN,ACCOUNT.ACC_NO,LOAN.LOAN_DATE,LOAN.LOAN
_NO FROM ACCOUNT,LOAN WHERE ACCOUNT.ACC_NO=LOAN.ACC_NO;
SELECT ACCOUNT.ACC_NO,ACCOUNT.NAME,ACCOUNT.CITY,ACCOUNT.BALANCE,ACCOUNT.LOAN_TAK
EN FROM ACCOUNT
,LOAN WHERE ACCOUNT.BALANCE=LOAN.LOAN_AMT;
SELECT TRANSACTION.AMT,ACCOUNT.NAME,TRANSACTION.ACC_NO,TRANSACTION.MODE_OF_PAY
FROM ACCOUNT,TRANSACTION WHERE ACCOUNT.ACC_NO=TRANSACTION.ACC_NO AND MODE_OF_PA
Y='CHEQUE';
SELECT TRANSACTION.ACC_NO,LOAN.LOAN_AMT,TRANSACTION.AMT FROM TRANSACTION,LOAN WH
ERE TRANSACTION.ACC_NO=LOAN.ACC_NO;
SELECT DEPOSITGTU.A_NO,DEPOSITGTU.CNAME,DEPOSITGTU.BNAME,DEPOSITGTU.AMOUNT,DEPO
SITGTU.A_DATE,CUSTOMERS.CITY,BORROW.LOANNO FROM DEPOSITGTU,CUSTOMERS,BORROW WHER
E DEPOSITGTU.CNAME=CUSTOMERS.CNAME AND CUSTOMERS.CNAME=BORROW.CNAME AND DEPOSIT
GTU.CNAME='ANIL';
SELECT CUSTOMERS.CNAME FROM DEPOSITGTU,BORROW,CUSTOMERS WHERE DEPOSITGTU.CNAME=C
USTOMERS.CNAME AND CUSTOMERS.CNAME=BORROW.CNAME AND CUSTOMERS.CITY='NAGPUR';
3RD. GIVE THE NAME OF CUSTOMERS AND THEIR BRANCH NAME WHO LIVES IN NAGPUR CITY.
-> SELECT CUSTOMERS.CNAME,BRANCH.BNAME FROM BRANCH,CUSTOMERS,DEPOSIT WHERE CUST
OMERS.CITY=BRANCH.CITY AND DEPOSIT.CNAME=CUSTOMERS.CNAME AND CUSTOMERS.CITY='NAG
PUR';
4TH. WRITE A QUERY TO DISPLAY NAME,DEPT_NO FOR ALL EMPLOYEES.
-> SELECT EMP_NAME,DEPT_NO FROM EMPLOYEE;
5TH CREATE TABLE DEPARTMENT(DEPT_NO NUMBER(2,2),DEPT_LOC VARCHAR2(10));
ADD COLUMN DEPT_NO TO JOB.
DISPLAY JOBID,DEPTNO,DEPTLOC;
ADD VALUES TO DEPARTMENT.
AS SELECT DEPT_NO FROM EMPLOYEE;
JOB_ID
DEPT_NO
IT_PGR
MK_MGR
FI_MGR
FI_ACC
LES
COM_OP
10
30
20
25
35
40
RAJKOT
AHMED
SOMNATH
JAMNAGAR
SURAT
VADODARA
INSERT
VALUES
INSERT
VALUES
INSERT
VALUES
7TH Display the employee name and employee number along with their Label the
columns Employee ,Emp#, respectively.
->
8TH Create a query to display the name and hire date of any employee hired afte
r employee AMAN.
UPDATE EMPLOYEE SET HIRE_DATE='03-JAN-08' WHERE EMP_NO=101;
UPDATE EMPLOYEE SET HIRE_DATE='21-JUL-09' WHERE EMP_NO=102;
UPDATE EMPLOYEE SET HIRE_DATE='30-AUG-10' WHERE EMP_NO=103;
UPDATE EMPLOYEE SET HIRE_DATE='08-APR-11' WHERE EMP_NO=104;
UPDATE EMPLOYEE SET HIRE_DATE='01-DEC-12' WHERE EMP_NO=105;
UPDATE EMPLOYEE SET HIRE_DATE='04-MAY-13' WHERE EMP_NO=106;
UPDATE EMPLOYEE SET HIRE_DATE='08-JUN-14' WHERE EMP_NO=107;
**************************GTU-6*********************************
SELECT SUM(AMOUNT) FROM DEPOSIT WHERE ADATE>'1-JAN-96';
SELECT SUM(DEPOSIT.AMOUNT) FROM DEPOSIT,CUSTOMERS WHERE DEPOSIT.CNAME=CUSTOMERS.
CNAME AND CUSTOMERS.CITY='NAGPUR';
SELECT MAX(AMOUNT) FROM DEPOSIT,CUSTOMERS WHERE DEPOSIT.CNAME=CUSTOMERS.CNAME AN
D CUSTOMERS.CITY='BOMBAY';
SELECT ROUND(MAX(EMP_SAL)) MAXIMUM,ROUND(MIN(EMP_SAL)) MINIMUM,ROUND(SUM(EMP_SAL
)) SUM_SAL,ROUND(AVG(EMP_SAL)) AVERAGE FROM EMPLOYEE;
SELECT MAX(EMP_SAL)-MIN(EMP_SAL) "DIFFERENCE" FROM EMPLOYEE;
SELECT (SELECT COUNT(*) FROM EMPLOYEE) TOTAL,(SELECT COUNT(*) FROM EMPLOYEE WHER
E TO_CHAR(HIRE_DATE,'YYYY')='2009') "2009",(SELECT COUNT(*) FROM EMPLOYEE WHERE
TO_CHAR(HIRE_DATE,'YYYY')='2010') "2010",(SELECT COUNT(*) FROM EMPLOYEE WHERE TO
_CHAR(HIRE_DATE,'YYYY')='2012') "2012",(SELECT COUNT(*) FROM EMPLOYEE WHERE TO_C
HAR(HIRE_DATE,'YYYY')='2014') "2014" FROM DUAL;
LONDON .
************************EMPLOYEES******************
INSERT INTO EMPLOYEES VALUES('100','STEVEN','KING','SKING','515.123.4567','17-JU
N-87','AD_PRES','24000','0','0','90');
INSERT INTO EMPLOYEES VALUES('101','NEENA','KOCHHAR','NKOCHHAR','515.123.4568','
18-JUN-87','AD_VP','17000','0','100','90');
INSERT INTO EMPLOYEES VALUES('102','LEX','DE HAAN','LDEHAAN','515.123.4569','19JUN-87','AD_VP','17000','0','100','90');
INSERT INTO EMPLOYEES VALUES('103','ALEXANDER','HUNOLD','AHUNOLD','590.423.4567'
,'20-JUN-87','IT_PROG','9000','0','102','60');
INSERT INTO EMPLOYEES VALUES('104','BRUCE','ERNST','BERNST','590.423.4568','21-J
UN-87','IT_PROG','6000','0','103','60');
INSERT INTO EMPLOYEES VALUES('105','DAVID','AUSTIN','DAUSTIN','590.423.4569','22
-JUN-87','IT_PROG','4800','0','103','60');
INSERT INTO EMPLOYEES VALUES('106','VALLI','PATABALLA','VPATABAL','590.423.4560'
,'23-JUN-87','IT_PROG','4800','0','103','60');
INSERT INTO EMPLOYEES VALUES('107','DIANA','LORENTZ','DLORENTZ','590.423.5567','
24-JUN-87','IT_PROG','4200','0','103','60');
INSERT INTO EMPLOYEES VALUES('108','NANCY','GREENBERG','NGREENBE','515.124.4569'
,'25-JUN-87','FI_MGR','12000','0','101','100');
INSERT INTO EMPLOYEES VALUES('109','DANIEL','FAVIET','DFAVIET','515.124.4169','2
6-JUN-87','FI_ACCOUNT','9000','0','108','100');
INSERT INTO EMPLOYEES VALUES('110','JOHN','CHEN','JCHEN','515.124.4269','27-JUN87','FI_ACCOUNT','8200','0','108','100');
INSERT INTO EMPLOYEES VALUES('111','ISMAEL','SCIARRA','ISCIARRA','515.124.4369',
'28-JUN-87','FI_ACCOUNT','7700','0','108','100');
INSERT INTO EMPLOYEES VALUES('112','JOSE MANUEL','URMAN','JMURMA','515.124.4469'
,'29-JUN-87','FI_ACCOUNT','7800','0','108','100');
INSERT INTO EMPLOYEES VALUES('113','LUIS','POPP','LPOPP','515.124.4567','30-JUN87','FI_ACCOUNT','6900','0','108','100');
*************************************LOCATIONS**********************************
***********************
*********************************************JOBS*************************
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
JOBS
VALUES('AD_PRES','President',20000,40000);
VALUES('AD_VP','Administration Vice President',15000,30000);
VALUES('AD_ASST','Administration Assistant',3000,6000);
VALUES('FI_MGR','Finance Manager',8200,16000);
VALUES('FI_ACCOUNT','Accountant',4200,9000);
VALUES('SA_MAN','Sales Manager',10000,20000);
VALUES('SA_REP','Sales Representative',6000,12000);
VALUES('PU_MAN','Purchasing Manager',8000,15000);
VALUES('PU_CLERK','Purchasing Clerk',2500,5500);
VALUES('ST_MAN','Stock Manager',5500,8500);
VALUES('ST_CLERK','Stock Clerk',2000,5000);
VALUES('SH_CLERK','Shipping Clerk',2500,5500);
VALUES('IT_PROG','Programmer',4000,10000);
VALUES('MK_MAN','Marketing Manager',9000,15000);
VALUES('MK_REP','Marketing Representative',4000,9000);
VALUES('HR_REP','Human Resources Representative',4000,9000);
VALUES('PR_REP','Public Relations Representative',4500,10500);
VALUES('AC_ACCOUNT','Public Accountant',4200,9000);
VALUES('AC_MGR','Accounting Manager',8200,16000);
************************************DEPARTMENTS**********************
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
INTO
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
DEPARTMENTS
VALUES(10,'ADMINISTRATION',200,1700);
VALUES(20,'MARKETING',201,1800);
VALUES(30,'PURCHASING',114,1700);
VALUES(40,'HUMAN RESOURCES',203,2400);
VALUES(50,'SHIPPING',121,1500);
VALUES(60,'IT',103,1400);
VALUES(70,'PIBLIC RELATIONS',204,2700);
VALUES(80,'SALES',145,2500);
VALUES(90,'EXECUTIVE',100,1700);
VALUES(100,'FINANCE',108,1700);
VALUES(110,'ACCOUNTING',205,1700);
VALUES(120,'TREASURY',0,1700);
VALUES(130,'CORPORATE TAX',0,1700);
VALUES(140,'CONTROL AND CREDIT',0,1700);
VALUES(150,'SHAREHOLDER SERVICES',0,1700);
VALUES(160,'BENEFITS',0,1700);
VALUES(170,'MANUFACTURING',0,1700);
VALUES(180,'CONSTRUCTION',0,1700);
VALUES(190,'CONTRACTING',0,1700);
VALUES(200,'OPERATIONS',0,1700);
VALUES(210,'IT SUPPORT',0,1700);
VALUES(220,'NOC',0,1700);
VALUES(230,'IT HELPDESK',0,1700);
VALUES(240,'GOVERNMENT SALES',0,1700);
VALUES(250,'RETAIL SALES',0,1700);
VALUES(260,'RECRUITING',0,1700);
VALUES(270,'PAYROLL',0,1700);