P. 1
Dbms Lab Exercises Final

Dbms Lab Exercises Final

|Views: 316|Likes:
Published by Aditya Veda

More info:

Published by: Aditya Veda on Sep 11, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

04/14/2012

pdf

text

original

WEEK - 1 // 1.

CREATION OF TABLE NAMED EMP Query : SQL> CREATE TABLE EMP (Emp_No NUMBER(2) PRIMARY KEy, 2 Ename VARCHAR(20), 3 Jcode NUMBER(3) REFERENCES Job(Jcode), 4 Mgr_no NUMBER(2), 5 Hiredate DATE, 6 Salary NUMBER(7), 7 Commission NUMBER(5), 8 Dept_no NUMBER(2) REFERENCES Dept(dept_no); OUTPUT : Table created. //DESCRIBE EMP TABLE Query : DESC EMP; OUTPUT : Name Null? Type ----------------------------------------- -------- ---------------------------EMP_NO NOT NULL NUMBER(2) ENAME VARCHAR2(20) JCODE NUMBER(3) MGR_NO NUMBER(2) HIREDATE DATE SALARY NUMBER(7) COMMISSION NUMBER(5) DEPT_NO NUMBER(2)

// INSERTING DATA INTO THE TABLE EMP Query : SQL> INSERT INTO Emp VALUES (&Emp_No,'&Ename',&Jcode,&Mgr_no,'&Hiredate',&Salary,&Commission,&Dept_no); OUTPUT : Enter value for emp_no: 1 Enter value for ename: Venkat Enter value for jcode: 672 Enter value for mgr_no: null Enter value for hiredate: 01-feb-2006 Enter value for salary: 1200000 Enter value for commission: 10000

Enter value for dept_no: 40 old 1: INSERT INTO Emp VALUES (&Emp_No,'&Ename',&Jcode,&Mgr_no,'&Hiredate',&Salary,&Commission,&Dep) new 1: INSERT INTO Emp VALUES(1,'Venkat',672,null,'01-feb-2006',1200000,10000,40) 1 row created. SQL> / Enter value for emp_no: 2 Enter value for ename: Nirmala Enter value for jcode: 671 Enter value for mgr_no: 1 Enter value for hiredate: 02-Apr-2007 Enter value for salary: 800000 Enter value for commission: 50000 Enter value for dept_no: 20 OUTPUT : old 1: INSERT INTO Emp VALUES (&Emp_No,'&Ename',&Jcode,&Mgr_no,'&Hiredate',&Salary,&Commission,&Dep) new 1: INSERT INTO Emp VALUES(2,'Nirmala',671,1,'02-Apr-2007',800000,50000,20) 1 row created. SQL> INSERT INTO Emp (&Emp_No,'&Ename',&Jcode,&Mgr_no,'&Hiredate',&Salary,&Commission,&Dep) VALUES (3,'Pradeep',669,1,'10-OCT-2005',1000000,NULL,40); OUTPUT : 1 row created. SQL> INSERT INTO Emp VALUES(4,'Srinivas',669,1,'08-MAY-2005',1000000,NULL,30); OUTPUT : 1 row created. // 2.CREATION OF TABLE NAMED DEPT Query : SQL> CREATE TABLE Dept(Deptno NUMBER(2) PRIMARY KEY, 2 Dname VARCHAR(15), 3 Lcode NUMBER(3) REFERENCES LOC(LCODE)); OUTPUT : Table created.

//DESCRIBE DEPT TABLE Query : DESC DEPT; OUTPUT : Name Null? Type ----------------------------------------- -------- ---------------------------DEPTNO NotNull NUMBER(2) DNAME VARCHAR2(15) LCODE NUMBER(3) // INSERTING DATA INTO THE TABLE DEPT Query : SQL> INSERT INTO Dept VALUES(&Deptno,'& Dname',&Lcode); Enter value for deptno: 10 Enter value for dname: Accounting Enter value for lcode: 122 OUTPUT : old 1: INSERT INTO Dept VALUES(&Deptno,'& Dname',&Lcode) new 1: INSERT INTO Dept VALUES(10,'Accounting',122) 1 row created. SQL> INSERT INTO Dept (&Deptno,'& Dname',&Lcode) VALUES(20,'Research',124); OUTPUT : 1 row created. SQL> INSERT INTO Dept VALUES(30,'Sales',123);

OUTPUT : 1 row created.

// 3.CREATION OF TABLE NAMED JOB Query : SQL> CREATE TABLE Job(Jcode NUMBER(3) PRIMARY KEY, Jname VARCHAR(15)); OUTPUT : Table created.

//DESCRIBE JOB TABLE Query : DESC JOB; OUTPUT : Name Null? Type ----------------------------------------- -------- ---------------------------JCODE NOT NULL NUMBER(3) JNAME VARCHAR2(15) // INSERTING DATA INTO THE TABLE JOB Query : SQL> INSERT INTO Job VALUES(&Jcode,'&Jname'); Enter value for jcode: 667 Enter value for jname: Clerk OUTPUT : old 1: INSERT INTO Job VALUES(&Jcode,'&Jname') new 1: INSERT INTO Job VALUES(667,'Clerk') 1 row created. SQL> INSERT INTO Job (&Jcode,'&Jname') VALUES(668,'Staff');

OUTPUT : 1 row created. SQL> INSERT INTO Job VALUES(669,'Analyst') OUTPUT : 1 row created.

// 4.CREATION OF TABLE NAMED LOC Query : SQL> CREATE TABLE Loc(Lcode NUMBER(3) PRIMARY KEY, Lname VARCHAR(15)); OUTPUT : Table created.

'Bangalore'). .'Hyderabad'). SQL> INSERT INTO Loc (&Lcode.'Kakinada') 1 row created. SQL> INSERT INTO Loc VALUES(123.---------------------------LCODE NOT NULL NUMBER(3) LNAME VARCHAR2(15) // INSERTING DATA INTO THE TABLE LOC Query : SQL> INSERT INTO Loc VALUES(&Lcode. OUTPUT : Name Null? Type ----------------------------------------.'&Lname') VALUES(124. Enter value for lcode: 122 Enter value for lname: Kakinada OUTPUT : old 1: INSERT INTO Loc VALUES(&Lcode.'&Lname').-------. OUTPUT : 1 row created.//DESCRIBE LOC TABLE Query : DESC LOC. OUTPUT : 1 row created.'&Lname') new 1: INSERT INTO Loc VALUES(122.

OUTPUT: DEPTNO ---------10 20 30 40 12 13 14 DNAME --------------Accounting Research Sales Operations Research Sales Operations LCODE ---------122 124 123 167 122 122 122 . OUTPUT : EMP_NO ENAME ---------.//DISPLAY EMP TABLE Query : SQL> SELECT * FROM EMP.----------1 Venkat 2 Nirmala 3 Pradeep 4 Srinivas 5 Krishna 6 Deepa 7 Keerthi 7 rows selected.----------01-FEB-06 1200000 02-APR-07 800000 10-OCT-05 1000000 08-MAY-05 100000 09-OCT-05 500000 09-SEP-07 600000 05-JUN-06 600000 COMMISSION -------------------10000 50000 DEPT_NO ------------40 20 40 30 12 23 24 20000 //DISPLAY DEPT TABLE Query : SQL> SELECT * FROM DEPT. JCODE --------672 671 669 669 668 668 668 MGR_NO -----------1 1 1 2 3 4 HIREDATE SALARY ------------.

//DISPLAY JOB TABLE Query : SQL> SELECT * FROM JOB. OUTPUT: LCODE ---------122 124 123 167 LNAME --------------Kakinada Hyderabad Bangalore Vijayawada . OUTPUT: JCODE ---------667 668 669 670 671 672 JNAME --------------Clerk Staff Analyst Salesperson Manager President //DISPLAY LOC TABLE Query : SQL> SELECT * FROM LOC.

OUTPUT : DEPT_NO ---------30 20 24 23 40 12 6 rows selected. OUTPUT : DEPT_NO ---------40 20 40 30 12 23 24 7 rows selected. Name all Dept Numbers without duplicates Query : SQL> SELECT DISTINCT DEPT_NO FROM EMP. . 2. 3. Name all Employees Where Department No 20 Query : SQL> SELECT Ename FROM Emp WHERE Dept_No=20. Name all the Department Numbers Query : SQL> SELECT DEPT_NO FROM EMP.WEEK-2 1.

OUTPUT : ENAME -------------------Nirmala 4) Names of all employees who get more than 200000 Salary Query : SQL> SELECT Ename FROM Emp WHERE salary>200000. 5) Name all employees who don’t get commission Query : SQL> SELECT Ename FROM Emp WHERE commission IS NULL. OUTPUT : ENAME -------------------Venkat Nirmala Pradeep Srinivas Krishna Deepa Keerthi 7 rows selected. OUTPUT : ENAME -------------------Pradeep Srinivas Deepa Keerthi .

Salary FROM Emp WHERE Salary>=400000 AND Salary<800000.---------Venkat 1200000 Nirmala 800000 Krishna 500000 7) Names of employees who do not have manager Query : SQL> SELECT Ename FROM Emp WHERE Mgr_No IS NULL. OUTPUT : ENAME SALARY -------------------. Salary FROM Emp WHERE Salary> (4*Commission). OUTPUT : NAME -------------------Venkat 8) Names of employees and Salary who have more than or equal to 400000 but less than 800000 Query : SQL> SELECT Ename.---------Krishna 500000 Deepa 600000 Keerthi 600000 . OUTPUT : ENAME SALARY -------------------.6) List the Names and salaries of the employees who Salary is greater than four times of their commission Query : SQL> SELECT Ename.

. OUTPUT : ENAME -------------------Venkat Pradeep Srinivas SALARY ---------1200000 1000000 1000000 10) Name all the employees who are earning more than 400000 but not in Deptid 30 Query : SQL> SELECT Ename FROM Emp WHERE Salary>400000 AND Dept_No<>30. Salary FROM Emp WHERE Salary<400000 OR Salary>800000.9) Name all employees who have a Salary of either less than 400000 or more than 800000 Query : SQL> SELECT Ename. OUTPUT : ENAME -------------------Venkat Nirmala Pradeep Krishna Deepa Keerthi 6 rows selected.

WEEK – 3 11) Names all the Employees who are working under Pradeep Query : SQL> SELECT Ename FROM Emp WHERE Mgr_No IN (SELECT Emp_No FROM Emp WHERE Ename ='Pradeep'). OUTPUT : ENAME -------------------Deepa 12) Names of all Employees who are working under Pradeep or Srinivas Query : SQL> SELECT Ename FROM Emp WHERE Mgr_No IN (SELECT Emp_No FROM Emp WHERE Ename='Pradeep' OR Ename='Srinivas') OUTPUT : ENAME -------------------Deepa Keerthi 13) Names of all Employees who are working under Pradeep and joined before him Query : SQL> SELECT Ename FROM Emp WHERE Mgr_No IN (SELECT Emp_No FROM Emp WHERE Ename='Pradeep' .

OUTPUT : no rows selected . OUTPUT : ENAME -------------------Srinivas Pradeep Nirmala Krishna 15) Names of all Employees who are working under Pradeep or Srinivas And joined before them Query : SQL> SELECT Ename FROM Emp where Mgr_No IN (SELECT Emp_No FROM Emp WHERE Ename='Pradeep' OR Ename='Srinivas') AND Hiredate<ALL (SELECT Hiredate FROM Emp).AND Hiredate <ALL (SELECT Hiredate FROM Emp)). OUTPUT : no rows selected 14) Names of all Employees who are not working under Pradeep or Srinivas Query : SQL> SELECT Ename FROM Emp WHERE Mgr_No IN (SELECT Emp_No FROM Emp WHERE Ename<>'Pradeep' AND Ename<>'Srinivas').

OUTPUT : ENAME -------------------Srinivas Pradeep 18) Find Dept Names with some Employees earning less than 4lakhs Query : SQL> SELECT DName FROM Dept WHERE Deptno IN (SELECT Dept_no FROM Emp WHERE Salary<400000).16) Names of employees in the Accounting department Query : SQL> SELECT Ename FROM Emp WHERE Dept_No IN (SELECT DeptNo FROM Dept WHERE dName='Accounting'). OUTPUT : no rows selected 17) Names of all analysts Query : SQL> SELECT Ename FROM Emp WHERE Jcode IN (SELECT jCode FROM Job WHERE jName = 'Analyst'). OUTPUT : no rows selected .

OUTPUT : ENAME ------------------Venkat Nirmala Pradeep Srinivas . OUTPUT : no rows selected 20) Name all the Locations having sales Dept Query : SQL> SELECT JName FROM Job WHERE JCode IN (SELECT JCODE FROM Emp WHERE Ename='Aravind'). OUTPUT : LNAME --------------Bangalore Kakinada 21) Names of Employees who are managers of other Employees Query : SQL> SELECT Ename FROM Emp WHERE Emp_No IN (SELECT Mgr_No FROM Emp).19) Find the Job function of Aravind Query : SQL> SELECT JName FROM Job WHERE JCode IN (SELECT JCODE FROM Emp WHERE Ename='Aravind').

22) All the Employees whose Salary is maximum Query : SQL> SELECT Ename FROM Emp WHERE Salary>=ALL (SELECT Salary FROM Emp). OUTPUT : ENAME -------------------Venkat Pradeep Srinivas . OUTPUT : ENAME -------------------Venkat 23) All the Employees who joined at the earliest Query : SQL> SELECT Ename FROM Emp WHERE Hiredate<=ALL (SELECT Hiredate FROM Emp). OUTPUT : ENAME -------------------Srinivas 24) Names of Employees earning more than Pradeep or Srinivas Query : SQL> SELECT Ename FROM Emp WHERE Salary>=All (SELECT Salary FROM Emp WHERE Ename='Pradeep' OR Ename ='Srinivas').

Query : SQL> SELECT JName. OUTPUT : ENAME -------------------Nirmala Pradeep Srinivas 26) Job functions of all the employees who are Managers of other Employees.WEEK-4 25) Names of Employees working under an employee reporting to President Query : SQL> SELECT Ename FROM Emp WHERE Mgr_No IN (SELECT Emp_No FROM Emp WHERE JCODE IN (SELECT JCode FROM Job WHERE Name='President')). JCode FROM Job WHERE JCode IN (SELECT JCODE FROM Emp WHERE Emp_No IN (SELECT Mgr_No FROM Emp)). OUTPUT : JNAME --------------Analyst Manager President JCODE ---------669 671 672 .

OUTPUT : ENAME -------------------Pradeep Srinivas 29) All the Analysts in the operation department Query : SQL> SELECT Ename FROM Emp WHERE Dept_No IN (SELECT DeptNo FROM Dept WHERE DName='Operations') . Query : SQL> SELECT Ename FROM Emp.27) Names of Employees under Kakinada Location. OUTPUT : ENAME -------------------Krishna 28) Names of Employees who are analyst and also managers of other Employees Query : SQL> SELECT ename FROM emp WHERE JCODE IN (SELECT Jcode FROM job WHERE JName='Analyst') AND Emp_no IN (SELECT mgr_no FROM emp). DEPT WHERE Dept_no=Deptno AND LCODE IN (SELECT LCode FROM Loc WHERE LName='Kakinada').

OUTPUT : no rows selected 31) All Employees reporting to President Query : SQL> SELECT Ename FROM Emp WHERE Mgr_No IN (SELECT Emp_No FROM Emp WHERE JCODE IN (SELECT JCode FROM Job WHERE JName='President')). OUTPUT : no rows select ed 30) Names of all the analysts in Kakinada area Query : SQL> SELECT ename FROM emp WHERE JCODE= (SELECT Jcode FROM job WHERE JName='analyst'). OUTPUT : ENAME -------------------Nirmala Pradeep Srinivas .AND JCODE IN (SELECT JCode FROM Job WHERE JName='Clerk').

. OUTPUT : ENAME -------------------Srinivas 34) Write a query to display the top 3 Query : SQL> SELECT Ename. OUTPUT : no rows selected 33) SELECT all Employees who joined earliest in their own department Query : SQL> SELECT Ename FROM Emp WHERE Hiredate<=ALL (SELECT Hiredate FROM Emp WHERE Dept_no=Dept_no).32) All the analysts reporting to President Query : SQL> SELECT ename FROM emp WHERE JCODE= (SELECT Jcode FROM job WHERE JName='Analyst') AND Mgr_no= (SELECT emp_no FROM emp WHERE JCODE= (SELECT Jcode FROM job WHERE JName='president')).Salary<Salary). Salary FROM Emp e WHERE 2>= (SELECT COUNT (*) FROM Emp WHERE e.

OUTPUT : ENAME SALARY -------------------. .Jcode). 36) Find the Employees who are getting maximum Salary in same Job Query : SQL> SELECT Ename FROM Emp e WHERE Salary>=ALL (SELECT Salary FROM Emp WHERE Jcode=e. OUTPUT : ENAME -------------------Venkat Nirmala Pradeep Srinivas Deepa Keerthi 6 rows selected.dept_no).---------Venkat 1200000 Pradeep 1000000 Srinivas 1000000 35) Find the Employees who are drawing maximum Salary in respective departments Query : SQL> SELECT Ename FROM Emp e WHERE salary>= all (SELECT salary FROM Emp WHERE dept_no=e. OUTPUT : ENAME -------------------Venkat Nirmala Srinivas Krishna Deepa Keerthi 6 rows selected.

d. Dept d WHERE e.Ename.JCODE=j.DName FROM Emp e.Dept_No=d.--------------Nirmala Research Srinivas Sales Pradeep Operations Venkat Operations Krishna Research 39) All the Employees & their Dept names only for those Employees who are working in Kakinada Query : SQL> SELECT e. Dept d WHERE e. OUTPUT : ENAME DNAME -------------------. j.DeptNo AND LCODE IN (SELECT LCode FROM Loc WHERE LName='Kakinada').--------------Venkat President Nirmala Manager Pradeep Analyst Srinivas Analyst Krishna Staff Deepa Staff Keerthi Staff 7 rows selected. OUTPUT : ENAME JNAME -------------------.JCodE.JName FROM Emp e.DName FROM Emp e.Ename.Dept_No=d.WEEK-5 37) Every Employee along with his Job function Query : SQL> SELECT e. 38) Names of all Employee & their Dept names Query : SQL> SELECT e.DeptNo. . d. Job j WHERE e.Ename.

Deptname for those Employees who are working as Clerks Query : SQL> SELECT Ename.Ename. . Dept d WHERE e. OUTPUT : no rows selected 41) Names of all Employees and his Managers numbers Query : SQL> SELECT e1.Ename FROM Emp e1.DeptNo AND JCODE IN (SELECT JCode FROM Job WHERE JName='Clerk'). OUTPUT : ENAME ENAME -------------------. Emp e2 WHERE e2.Emp_No=e1.--------------Krishna Research 40) Get all the Employees.Mgr_No.OUTPUT : ENAME DNAME -------------------. e2.-------------------Srinivas Venkat Pradeep Venkat Nirmala Venkat Krishna Nirmala Deepa Pradeep Keerthi Srinivas 6 rows selected.Dept_No=d. DName FROM Emp e.

DName. OUTPUT : no rows selected .Dept_No=d. l. Dept d.LCODE=l. Loc l WHERE e.42) Find Employees and their department name and department Location whose salary<400000 Query : SQL> SELECT Ename.LCode AND Salary IN (SELECT Salary FROM Emp WHERE Salary<400000).LName FROM Emp e. d.DeptNo AND d.

OUTPUT : MAX(SALARY) ----------1200000 43) Find the number of Employees in the Employee table Query : SQL> SELECT COUNT (ENAME) FROM Emp.WEEK-6 41) Total salary of all Employees Query : SQL> SELECT SUM (Salary) FROM Emp. OUTPUT : COUNT(ENAME) -----------7 44) Total salary of all the Employees who are in DeptNo=20 Query : SQL> SELECT SUM (Salary) FROM Emp WHERE Dept_No=20. . OUTPUT : SUM(SALARY) ----------5700000 42) The max salary of all the Employees Query : SQL>SELECT MAX (Salary) FROM Emp.

OUTPUT : MAX(SALARY) ----------46) Senior most Employees in the Research department Query : SQL> SELECT MIN (HIREDATE) FROM EMP WHERE DEPT_NO IN (SELECT DEPTNO FROM DEPT WHERE DNAME='Research'). OUTPUT : MAX(SALARY) ----------1000000 48) Find the average salary in accounting department .OUTPUT : SUM(SALARY) ----------800000 45) All the Employees whose salary is maximum in Sales department Query : SQL> SELECT MAX (SALARY) FROM EMP WHERE DEPT_NO IN (SELECT DEPTNO FROM DEPT WHERE DNAME='SALES'). OUTPUT : MIN(HIRED --------09-OCT-05 47) Find the maximum salary for all the Analyst Query : SQL> SELECT MAX (SALARY) FROM EMP WHERE JCODE IN (SELECT JCODE FROM JOB WHERE JNAME='Analyst').

OUTPUT : ENAME -------------------Srinivas 50) The max salary in each department Query : SQL> SELECT MAX(SALARY) FROM EMP GROUP BY DEPT_NO. . OUTPUT : AVG(SALARY) ----------49) Find all the Employees whose joined date is earliest Query : SQL> SELECT ENAME FROM EMP WHERE HIREDATE IN (SELECT MIN(HIREDATE) FROM EMP.Query : SQL> SELECT AVG (SALARY) FROM EMP WHERE DEPT_NO IN (SELECT DEPTNO FROM DEPT WHERE DNAME='Accounting'). OUTPUT : MAX(SALARY) ----------1000000 800000 600000 600000 1200000 500000 6 rows selected.

of Analysts Query : SQL> SELECT COUNT (EMP_NO) FROM EMP WHERE JCODE = (SELECT JCODE FROM JOB WHERE JNAME='Analyst'). OUTPUT : COUNT(EMP_NO) ------------2 .51) Max salary of all the Employees who are in accounting department Query : SQL> SELECT MAX (SALARY) FROM EMP WHERE DEPT_NO = (SELECT DEPTNO FROM DEPT WHERE DNAME='Accounting'). OUTPUT : AVG(SALARY) ----------1100000 53) Find the no. OUTPUT : MAX(SALARY) ----------- 52) Average salary of each department which has atleast 2 Employees Query : SQL> SELECT AVG (salary) FROM EmP GROUP BY Dept_No HAVING COUNT (*)>1.

OUTPUT : SUM(EMP_NO) ----------55) Give the total salary of each department Query : SQL> SELECT SUM(SALARY). 56) For each Job give total salary Query : SQL> SELECT SUM(SALARY).DEPT_NO FROM EMP GROUP BY DEPT_NO.---------1000000 30 800000 20 600000 24 600000 23 2200000 40 500000 12 6 rows selected. OUTPUT : SUM(SALARY) ----------1200000 800000 2000000 1700000 JCODE ---------672 671 669 668 .54) Find the total salary of all the Clerks Query : SQL> SELECT SUM (EMP_NO) FROM EMP WHERE JCODE = (SELECT JCODE FROM JOB WHERE JNAME='Clerk').JCODE FROM EMP GROUP BY JCODE. OUTPUT : SUM(SALARY) DEPT_NO ----------.

JCODE FROM EMP GROUP BY JCODE.of Employees for each Job name Query : SQL> SELECT COUNT(JCODE). of Employees in each department Query : SQL> SELECT COUNT(EMP_NO) .DEPT D WHERE dept_no =deptno GROUP By Dname Having avg(salary)>=400000 OUTPUT : COUNT(EMP_NO) ------------2 1 2 DNAME --------------Research Sales Operations 58) No. OUTPUT : COUNT(JCODE) -----------1 1 2 3 JCODE ---------672 671 669 668 59) Sum of salary for Clerks for each department Query : SQL> SELECT SUM (Salary).DNAME FROM EMP E. Dept_No FROM Emp WHERE JCODE= (SELECT JCode FROM Job WHERE JName='Clerk') GROUP BY Dept_No OUTPUT : no rows selected .57) Deptname & no.

EMP E WHERE DEPT_NO =DEPTNO GROUP By D. OUTPUT : DNAME COUNT(E. count of Employees of those Dept that have an average salary>400000 Query : SQL> SELECT DNAME.EMP_NO) FROM DEPT D.DNAME Having avg(salary)>=400000. OUTPUT : COUNT(ENAME) -----------1 61) Dept name.of Employees in each department that has Location in Kakinada Query : SQL> SELECT COUNT(ENAME) FROM EMP WHERE DEPT_NO IN (SELECT DEPTNO FROM DEPT WHERE LCODE IN (SELECT LCODE FROM LOC WHERE LNAME='Kakinada')).EMP_NO) --------------.--------------Research 2 Sales 1 Operations 2 . COUNT(E.60) No.

hiredate. OUTPUT : MMYY ----04/07 63) For each employee display the employee’s name and calculate the number of months between today and the date the employee was hired label the column months worked order the results by the number of months employed Round the number of months up to the closest whole number Query : SQL> SELECT Ename.------------. 'mm/yy') MMYY FROM Emp WHERE ename='Nirmala'. ROUND (MONTHS_BETWEEN (SYSDATE. LAST_DAY(HIREDATE) FROM Emp ORDER BY months_worked. hiredate)) months_worked. TRUNC (Hiredate) FROM Emp . 64) Display the employee number. OUTPUT : ENAME MONTHS_WORKED LAST_DAY( -------------------. Query : SQL> SELECT Emp_No.--------Deepa 42 30-SEP-07 Nirmala 47 30-APR-07 Keerthi 57 30-JUN-06 Venkat 61 28-FEB-06 Pradeep 65 31-OCT-05 Krishna 65 31-OCT-05 Srinivas 70 31-MAY-05 7 rows selected. ROUND (hiredate). hire Date using RUND AND TRUNK functions.WEEK – 7 62) Display the joining month/year of Nirmala Query : SQL> SELECT TO_CHAR (hiredate.

OUTPUT : INITCAP(DNAME) --------------Accounting Research Sales Operations Research Sales Operations 7 rows selected. INSTR (Ename. OUTPUT : ENAME -------------------Venkat Nirmala Pradeep Srinivas Krishna Deepa 6 rows select POSITION ---------5 5 3 7 7 5 66) Convert the first letter of each department in capital and remaining letters to lowercase Query : SQL> select INITCAP (dname) FROM Dept. 'a') position FROM Emp WHERE INSTR (Ename. 'a') < >0.OUTPUT : EMP_NO ---------1 2 3 4 5 6 7 HIREDATE --------01-FEB-06 02-APR-07 10-OCT-05 08-MAY-05 09-OCT-05 09-SEP-07 05-JUN-06 ROUND(HIR --------01-JAN-06 01-JAN-07 01-JAN-06 01-JAN-05 01-JAN-06 01-JAN-08 01-JAN-06 TRUNC(HIR --------01-JAN-06 01-JAN-07 01-JAN-05 01-JAN-05 01-JAN-05 01-JAN-07 01-JAN-06 65) Display the names of employees whose name contains the letter ‘a’ with its position? Query : SQL> SELECT Ename. .

. 69) Display the Job and Salary such that every employee salary is 10 Digits left less pad a $ symbol. LENGTH (Ename) FROM Emp. OUTPUT : UPPER(ENAME) -------------------VENKAT NIRMALA PRADEEP SRINIVAS KRISHNA DEEPA KEERTHI 7 rows select 68) Display the names of employees along with length Query : SQL> SELECT Ename. 10.67) Capitalize the names of employees in employee table Query : SQL> SELECT UPPER (Ename) FROM Emp. Query : SQL> SELECT Ename. LPAD (salary. '$') FROM Emp. OUTPUT : ENAME LENGTH(ENAME) -------------------.------------Venkat 6 Nirmala 7 Pradeep 7 Srinivas 8 Krishna 7 Deepa 5 Keerthi 7 7 rows selected.

OUTPUT : ENAME RPAD(SALARY. .OUTPUT : ENAME LPAD(SALARY. Query : SQL> SELECT Ename.'$') -------------------. 71) Display Hiredate by adding 4 months.---------------------------------------Venkat $$$1200000 Nirmala $$$$800000 Pradeep $$$1000000 Srinivas $$$1000000 Krishna $$$$500000 Deepa $$$$600000 Keerthi $$$$600000 7 rows selected. Query : SQL> SELECT ADD_MONTHS(HIREDATE.'*') -------------------. 10. RPAD (salary.10. 70) Display the Job and Salary such that every employee salary is 10 Digits right less pad a $ symbol.---------------------------------------Venkat 1200000*** Nirmala 800000**** Pradeep 1000000*** Srinivas 1000000*** Krishna 500000**** Deepa 600000**** Keerthi 600000**** 7 rows selected.4) FROM emp.10. '*') FROM Emp.

OUTPUT : ADD_MONTH --------01-JUN-06 02-AUG-07 10-FEB-06 08-SEP-05 09-FEB-06 09-JAN-08 05-OCT-06 7 rows selected.'saturyday') FROM DUAL. 72) Display next day of 06-March-2011 which is Saturday Query : SQL> SELECT NEXT_DAY('06-MAR-2011'. OUTPUT : NEXT_DAY( --------12-MAR-11 .

75) Display all of the above views? Query : SQL> SELECT * FROM EMP_DET. whose job code is 669? Query : SQL> CREATE VIEW EMP_DET_Analyst AS SELECT EMP_NO. EName. salary. empo_name.---------. salary.WEEK .emp_name. OUTPUT : EMP_NO ENAME SALARY DEPT_NO ---------.no:. Query : SQL> CREATE VIEW EMP_DET AS SELECT EMP_NO.dept. OUTPUT : View created.8 73) Create a Emp_Det view with 4 columns emp_no:.-------------------3 Pradeep 4 Srinivas . EName from Emp where jcode=669.dept_no from Emp. OUTPUT : View created.---------1 Venkat 1200000 40 2 Nirmala 800000 20 3 Pradeep 1000000 40 4 Srinivas 1000000 30 5 Krishna 500000 12 6 Deepa 600000 23 7 Keerthi 600000 24 SQL> SELECT * FROM EMP_DET_Analyst. 74) create a emp_det _analyst view with 2 columns emp_no. OUTPUT : EMP_NO ENAME ---------.-------------------.

OUTPUT : View created. OUTPUT : View dropped. EName from Emp where DEPT_No=12. 77) Drop Emp_det_12 view? Query : SQL> DROP view Emp_Det_12. .76) Create a view with emp_det_12 view with 2 columns with EMP_NO and ENAME whose DEPT_NO IS 12 Query : SQL> > CREATE VIEW EMP_DET_12 AS SELECT EMP_NO.

put_Line('EMP NO is NOT AVAILABLE'). . 3 v_sal NUMBER (7). new 7: v_empno := 2. 8 SELECT ename. 4 v_empno NUMBER (3). 15 EXCEPTION WHEN NO_DATA_FOUND 16 THEN 17 dbms_output. 2 Nirmala 800000 PL/SQL procedure successfully completed.WEEK – 9 a) Write a PL/SQL program to read Employee Details from User and display Employee Details from EMP Table using Exception. 19 / OUTPUT : Enter value for v_empno: 2 old 7: v_empno := &v_empno. v_sal. 13 dbms_output. 18 END. v_empno 10 from emp 11 where emp_no=v_empno. 5 BEGIN 6 /* Read Emp_no from user and assign to : */ 7 v_empno := &v_empno. emp_no INTO 9 v_empname.put_Line(v_sal).put_Line(v_empname). PL/SQL Program : SQL> DECLARE 2 v_empname VARCHAR(20). salary. 14 dbms_output.put_Line(v_empno). 12 dbms_output.

OUTPUT 2 : SQL> / Enter value for n: 3 old 4: N := &N. 7 ELSE 8 dbms_output. 9 END IF. . 3 is ODD PL/SQL procedure successfully completed. new 4: N := 3.b) Wrie a PL/SQL program to read a value from the user and check whether that number is even or odd PL/SQL Program : SQL> DECLARE 2 N NUMBER.put_Line(N|| ' is EVEN'). 3 BEGIN 4 N := &N. new 4: N := 2. 11 / OUTPUT 1 : Enter value for n: 2 old 4: N := &N. 10 END. 2)=0 THEN 6 dbms_output. 5 IF MOD (N.put_Line(N|| ' is ODD'). 2 is EVEN PL/SQL procedure successfully completed.

PUT_LINE(K|| ' IS ODD'). Now display the value of resultant number and also tell whether it is even or odd using Nested IF. 14 DBMS_OUTPUT. 9 ELSE IF N=10 THEN 10 K:=N+10. .PUT_LINE('The Given Number became ' || K). 4 BEGIN 5 IF N<10 THEN 6 K:=N+1. 13 END IF. 15 IF MOD(K. IF it equals 10. new 2: N NUMBER := 5. PL/SQL Program : SQL> DECLARE 2 N NUMBER := &NUM. 17 ELSE 18 DBMS_OUTPUT. 7 ELSE IF N>10 THEN 8 K:=N-1. 12 END IF.c) Write a pl/sql program that accepts a number and add 1 to number If given number less than 10. and add 10 to it.PUT_LINE(K|| ' IS EVEN'). 3 K NUMBER. 11 END IF. The Given Number became 6 6 IS EVEN PL/SQL procedure successfully completed. 19 END IF.2)=0 THEN 16 DBMS_OUTPUT. 21 / OUTPUT : Enter value for num: 5 old 2: N NUMBER := &NUM. subtract 1 from the number IF it is greater than10. 20 END.

19 dbms_output. 20 i := i+1. v_empno 15 from emp 16 where emp_no=i. 5 i NUMBER:=1.put_Line(v_empno). 22 EXCEPTION WHEN NO_DATA_FOUND 23 THEN 24 dbms_output. 10 N := v_empno.put_Line(v_empname). 7 BEGIN 8 /* Read Emp_no from user and assign to : */ 9 v_empno := &v_empno. PL/SQL Program : SQL> DECLARE 2 v_empname VARCHAR(20). 3 v_sal NUMBER (7).put_Line('EMP NO is NOT AVAILABLE'). salary.WEEK – 10 a) Wrie a PL/SQL program to read Employee No from user and display all the Employee details upto that number using while loop. 26 / OUTPUT : Enter value for v_empno: 3 old 9: v_empno := &v_empno. new 9: v_empno := 3. 11 while i<=N 12 LOOP 13 SELECT ename. 21 END LOOP. 1 Venkat 1200000 2 Nirmala 800000 3 Pradeep 1000000 PL/SQL procedure successfully completed. 17 dbms_output. 6 N NUMBER. 18 dbms_output. 25 END.put_Line(v_sal). v_sal. 4 v_empno NUMBER (3). emp_no INTO 14 v_empname. .

21 END. 7 N NUMBER(3). 17 A:=B.PUT_LINE(C).PUT_LINE(B). 20 END LOOP. new 10: N:=5. 19 I:=I+1. 8 BEGIN 9 I:=1. 12 DBMS_OUTPUT. . 13 WHILE (I<=N) 14 LOOP 15 DBMS_OUTPUT. 10 N:=&N. 4 B INTEGER:=1. 3 A INTEGER:=0. 18 B:=C. 5 C INTEGER.b) Wrie a PL/SQL program to read number from the user and display the fibonacci series upto that number using WHILE Loop PL/SQL Program : SQL> DECLARE 2 I NUMBER(3). 11 DBMS_OUTPUT.PUT_LINE(A). 16 C:=A+B. 0 1 1 2 3 5 PL/SQL procedure successfully completed. 6 SUM NUMBER(3). 22 / OUTPUT : Enter value for n: 5 old 10: N:=&N.

120 PL/SQL procedure successfully completed. . new 4: N NUMBER := 5. 10 END LOOP. 13 / OUTPUT : Enter value for n: 5 old 4: N NUMBER := &N.N 8 LOOP 9 NUM := NUM*i. 4 N NUMBER := &N.. 5 BEGIN 6 i := N.put_Line(NUM). 11 dbms_output.WEEK – 11 a) Wrie a PL/SQL program to read a number from the user and print the Factorial of that number using FOR LOOP PL/SQL Program : SQL> DECLARE 2 i NUMBER:=1. 7 FOR i IN 1. 3 NUM NUMBER := 1. 12 END.

4 v_empno NUMBER (3). salary. Enter value for maxvalue: 4 old 10: v_empno := &MAXVALUE. v_empno 16 from emp 17 where emp_no=MINVALUE. 22 END LOOP. v_sal. 18 dbms_output. 10 v_empno := &MAXVALUE. 7 BEGIN 8 /* Read Emp_no from user and assign to : */ 9 MINVALUE :=&MINVALUE. 12 while MINVALUE <= MAXVALUE 13 LOOP 14 SELECT ename. 26* END. PL/SQL Program : SQL> DECLARE 2 v_empname VARCHAR(20). 3 v_sal NUMBER (7). OUTPUT : Enter value for minvalue: 2 old 9: MINVALUE :=&MINVALUE. new 9: MINVALUE :=2.put_Line('EMP NO is NOT AVAILABLE').b) Write a pl/sql program that accepts 2 Nos from the user and display the emp details between them. 20 dbms_output. 6 MAXVALUE NUMBER. 5 MINVALUE NUMBER. new 10: v_empno := 4. .put_Line(v_sal). 21 MINVALUE := MINVALUE+1.put_Line(v_empno). emp_no INTO 15 v_empname. 11 MAXVALUE := v_empno. 19 dbms_output.put_Line(v_empname). 2 Nirmala 800000 3 Pradeep 1000000 4 Srinivas 1000000 PL/SQL procedure successfully completed. 23 EXCEPTION WHEN NO_DATA_FOUND 24 THEN 25 dbms_output.

WEEK – 12 a) Create a procedure which accept employee number from the user and return employee name.ENAME%TYPE.commission by using in and out arguments.SALARY%TYPE. SQL> PRINT GN GS GG.:GN. OUTPUT : SQL> VARIABLE GS NUMBER.SALARY. PL/SQL Procedure : SQL> CREATE OR REPLACE PROCEDURE EMP_3 (EMPNO IN NUMBER. SQL> VARIABLE GG NUMBER. END EMP_3 .salary. GN -------------------------------Nirmala GS ---------800000 GG ---------50000 .:GS. ECOMMISSION OUT emp.:GG). SQL> VARIABLE GN VARCHAR2(20). PL/SQL procedure successfully completed. SQL> EXEC EMP_3(2. ESALARY OUT emp. ESALARY. EMPNAME OUT emp.COMMISSION%TYPE) IS BEGIN SELECT ENAME.COMMISSION INTO EMPNAME. Procedure created. ECOMMISSION FROM emp WHERE EMP_NO=EMPNO.

PL/SQL Procedure : SQL> CREATE OR REPLACE PROCEDURE EMP_2(EMPNO IN NUMBER) IS ESALARY NUMBER(10). BEGIN SELECT SALARY INTO ESALARY FROM emp WHERE EMP_NO=EMPNO.salary and commission. Salary before updated:1000000 Salary after updated:1100000 PL/SQL procedure successfully completed.b) Create a procedure which accept employee number from the user and display employee name. UPDATE EMP SET SALARY=SALARY+(SALARY*0.PUT_LINE('Salary after updated:'||ESALARY). Procedure created. DBMS_OUTPUT. OUTPUT : SQL> EXEC EMP_2(4). SELECT SALARY INTO ESALARY FROM emp WHERE EMP_NO=EMPNO.1) WHERE EMP_NO=EMPNO. END. DBMS_OUTPUT.PUT_LINE('Salary before updated:'||ESALARY). .

3. !7.20 # 4- #4/0  $%  # 25 #3.208412540084.20 # 4- #4/0   $%   # 25  #3.3./.20 # 25 #25*4  $%7*4  # 25   &%!&%    '03..38..9 72...078414907254008 ":07 $"$%3..3.470 ..3/   &%!&%  34748800.3/   &%!&%    ./005 $73.943417.   .904.90/    .20 7.08059 ":07 $"$%.8     .20 7.3/ ":07 $"$%.702.   3/904-1:3.20..9438.

20 # 25 #$..8   &%!&%    '03.90  $%70/.8      ./00547$73..8    ..20 # 25 #$..73324709.9900.3!7...7   # 25   &%!&%    '03.   90254008480$.208412540080.20 $73..20 # 25 #70/..9   902540084430/.90   # 25   &%!&%     $73.8 ":07 $"$%3.20 !7../005 $73./005   #   3.7089 ":07 $"$%3.7# 25  #3.7  $%$.2:2 ":07 $"$%3.7  $%$.782.9 !7.

20 !708/039    &%!&%     72..        .3.20841254008473:3/07.8      4-1:3.07 !708/039      ..078414907254008  ":07 $"$%.89 .943841. !7.20 4/0 # 4- #4/0  $%  # 25 #25*4  $%7*4   # 25     &%!&%       3.20 # 25 #7*4  $%25*4 # 25 #   $%4/0 # 4- #.3.3025400705479394!708/039 ":07 $"$%3.70.9002540084./005 $73.

20 3.842. #.20 # 25 !% #059*3405934     $%4/0 # 4.     .20841254008:3/07.208412540084.20 # 025 #   $%.078414907254008 ":07 $"$%03.943/05.89.20 507.3/./..3.792039 ":07 $"$%3./.    &%!&%     783./005 $73.70.3.89   25*34  $%27*34# 025    &%!&%    !7.9438  .    .3.8983904507.8    903..20 .4/0# 4- #.4.20 # 25 #059*4       $%0594 # 059 #.3.943  ":07 $"$%3.

3.90/    254008705479394!708/039 ":07 $"$%3..20 07    &%!&%  34748800.      $%4/0  # 4-  #.4/0 # 4- #.70..90./..20 # 25 #7*4         &%!&%    72.3.8        $%25*4 # 25 #     $%4/0   # 4-   #./005 $73.20841.8983.89    &%!&%  34748800.20 !708/039    .3. ":07 $"$%03.20 # 025 #   $%.90/    .20 . !7.

.4/0 # 4- #..90  $%70/.6:0794/85.90  # 25  #059*34059*34    &%!&%     $73.20 5708/039    &%!&%   34748800.7     .792039 ":07 $"$%3..4/0 # 4- #.90/    $%.2540084430/0.898705479394!708/039 ":07 $"$%03.20 # 025 #   $%.90945 ":07 $"$%3.7$.20 $.   90.89   7*34  $%025*34 # 025 #   $%.8    790.7 # 250 #  $% &%  # 25 #0 $.20 # 25 #70/.3.20 3.7089390743/05..

.. 0079  748800./005  $73. 005..32..7920398 ":07 $"$%3. !7.9  !7.2:2$.9 72.9 72..738.0/05.90/      ..7.20 # 250 #$.8 783.204- ":07 $"$%3.7  # 25  #.70/7.90/    3/902540084..  &%!&%   $#   '03. $73.2:2$.4/0  &%!&%    '03.9.7009932.7  $%$.  $%8. 0079  748800.4/00 ..8    3/902540084.7370850.../005 $73.8 005.20 # 250 #8.7  # 25  #/059*340 /059*34   &%!&%    '03..

07 !7.      .$9. ":07 $"$%0 3.3.11  748800.$9.3..20  .#080.943  ":07 $"$%0 3.704733..   90254008 9070593.20 # 250 059/ #0 059*4/ 0594    $%4/0 # 4.././005 507.       .11 005.89 $73.20 / .20 / .#080.9438 783..20 # 250 4- #0   4/   &%!&%     '03.11 0079$9.08 !7.20 .3.43984-1:3.2084314794802540084..25400 9070593.20 # 250 059/ #0 059*4/ 0594  &%!&%      72.89 783.0725400.9438 '03.9!708/039 72.8$.208 ":07 $"$%0 3.20841.9 507./0053.90/     . $73./.#.7.83.7.

254008.2014794802540084..  &%!&%      783.9 783.3.70473.3/8.72.90/             .20 # 250 250 #0 25*40 7*4   &%!&%     $73../005 0079$73.20841.!7.9 72.20 07   &%!&%  34748800.20 0 3.7.    09.8'03. 005.20 # 250 059/ #0 059*4/ 0594      $%4/0  # 4-  #../005'03.20 .0783:2-078 ":07 $"$%0 3.9 !7.#080.8  748800.90/    .8078 ":07 $"$%3.'03..90254008 0593.

 #0 059*4/ 0594   /   4/0   $...7920393.7 # 25 #$..   3/254008.3//05.7920394.9434808..20  .90/                                       .7  ":07 $"$%3.3/907/05.20 # 250 059/ 4.20..20 / .7  $%$.7   &%!&%  34748800.

741.90254008 ":07 $"$% $.902540084.-0 ":07 $"$% &%   # 25  &%!&%    &%       %49...7  # 25 #059*4       ...7030594  ":07 $"$%$& $.741.741..      %49..7  # 25  &%!&%   $#       3/903:2-0741254008390254009.254008 ":07 $"$%$& $.7  # 25  &%!&%  $& $#         %02.8.8.8.

.7.903..08.2:23$.08/05..792039 ":07 $"$% $#  # ! #!%*    $%!%   # !% # $$  &%!&%    $#     $03472489254008390#080.07.7147.73.  &%!&%   $& $#       902540084808.782./05..89  &%!&%   $#       3/90.89 ":07 $"$% $#  # ! #    $%   #    # 3.4:393/05.7..792039   ..792039 ":07 $"$% #%  # ! #!%*   $%!%   # !%  # #080.2:28.  &%!&%   #   %    3/902.

7089 ":07 $"$% # ! ##%  $% #%   # !  &%!&%     $73.  ":07 $"$%' $#  # ! #!%*   $%!%  # !% # ..8    %02..90/       .8.730.9080.4:393   &%!&%   ' $#     3/.90254008480430//.../05.792039 ":07 $"$% $#  # ! # &!!%*   &%!&%   $#                748800.

4:393  &%!&%    $#      .7  # 2! # &!059*4 ' &%   &%!&%   ' $#       3/9034 413.07.8.792039.703.90..8..   .898 ":07 $"$% &% !*  # ! #   $%  #   # 3.7410..08.../05..792039 ":07 $"$% $#  # ! #!%*   $%!%   # !%  # .4:393/05..741..902540084.89  &%!&%    &% !*             .89254008 ":07 $"$%' 8.

.90078 ":07 $"$%$& !*  # ! #   $%   #    # 07  &%!&%   $& !*     .7410.792039 ":07 $"$%$& $# !%*  # ! # &!!%*   &%!&%   $& $# !%*                    748800.4-..90/    470.7 ":07 $"$%$& $#   # ! # &!   &%!&%   $& $#                    .090949.0949.8../05.8..8.741..   3/90949.

20 ":07 $"$% &%    # !# &!   &%!&%    &%                   $:2418./05.7    &%!&%    &% !*       #080...  $.3.9438   4 412540081470.7 059*4 # 25 #    $%4/0  # 4-  #.792039 ":07 $"$% &% !*   # ! !% #/059*34/05934 # &!3./05.71470781470.   0593. 8..20 .792039 ":07 $"$%$& $.20 07   # &!059*4  &%!&%  34748800.90/         .08   507.....4-3.7..20 34 4125400830.

4:39412540084194800599.3. $.   &%!&%    &%       0593.9433.08  507.08.   4 4125400830.9438                     .0.84..07. ":07 $"$% &%   # ! #!%*   $%!%   # !%  #     $%     #      # .7    &%!&%   &%  !*    #080.3.7.7  ":07 $"$%  &%  !* # !% ! #!%* !%  # &!  .../05./.3..7920399...9..20 .3.9../. 8.

      85.904332439.

74172.90  22.0..  ":07 $"$%% *# 70/.

.  # 25 #03.20 72.   &%!&%     .

90025400 83.90  %#& 70/..4:2324398470/47/0790708:98-90 3:2-07412439802540/#4:3/903:2-074124398:59490..8      748800.90  # 25      .9438   ":07 $"$%25*4 70/.870/.20 # &  %$*% $$% 70/.48089403:2-07  ":07 $"$%3.20.90:83#&%#&1:3.  !#  0079  &  '03.90  # & 70/..  %  $73.3/90/.90  24398*470/ @%%@% # 25  ##24398*470/   &%!&%    %$* #$%*     005..900254003:2-0770.9    !7..90903:2-074124398-09003 94/.90/    85.025400/85.    470./005  %  783.:..  $!  72.-090.9090025400.3/.

.  &%!&%   !*  #% # & # %#& #                   !#            %                     %          $!           &           85..80  ":07 $"800./005  $73.08 507..903.20  # 059  &%!&%  %!    .8  783. 998548943  ":07 $"$%3.   &%!&%    ! $%    '03.  005.   748800.20  .3/702.20  . 548943 # 25  #$%# 3.59..08 507.7.439.  !7.9%! /3.. $..90/    ..7920393.2084102540084803.9438  748800.20.3309907894407.7.389009907 .9  72.9438 #080.07990178909907410. $.9   43.4:393 #080.20  $%# 3./05.

59..8 783./005 $73.20  # 25  &%!&%   %     '03. !7.78 980190885..0903.904-.20  ! 8.9  %¾½f °f¯ ¾€ ¯½ ¾f°– °–   ":07 $"$%3.-0  ":07 $"$%&!!# 3./.20  # 25  &%!&%  &!!#    '% # !#! $#'$ #$ ! #%  748800.    .20 % 3.7     # 25    ..90/     85.3/$.82-4   ":07 $"$%3..9.20841025400830254009.070254008.78:.90. 0079  748800.9 72.. 005.

/005  $73.82-4   ":07 $"$%3.  005.90.904-.90/      85..  0079   748800.8  783.//324398    ":07 $"$%* %$ #%   # 025       .20  #! 8.78:.  0079   748800..  &%!&%   ! $#      '03.70/.7    # 25    &%!&%  #! $#     '03..9.9  72.  !7./005  $73...  005.8  783../.070254008.90/       85.3/$.  !7.90-.9  72.78 98790885..

309/.9:7/.  .  # &  &%!&%   %*    #                            .7.9:7/.90/      85.41  .   ":07 $"$%%*  #   8.8$.   &%!&%  * %   &   &      $!         %   748800.

08  ":07 $"$% # !*%  &%!&% !* $#!%*      '03./005 $73.70..09.  0079   $"$% # !*%*3.90.89 $ $%!* ..0.7 /059*34174225  &%!&%   '0.20174225070.89.4190.20 8.4:238025*34 025*3.4/0  &%!&%   '0.09.9   72.70.90/    ..25*09..90.025*/09*.7 /059 34  ":07 $"#%'!*% $ $%!* .70./005   $73.20 8.90/     85.8   .89  &%!&%   !*    !7.      70..   !7.4:238025*34 0254*3.3.8   783.4/08  ":07 $"#%'!*%*3.-4.20  4804-..  005.

4:2389!* .70.0  ":07 $"# !..3/480 !%* $  ":07 $"#%'!*%* $ $%!* .20174225070!%*4  &%!&%  '0.09025*/09*.90.025*09*  &%!&%  '0/74550/                  .    70.09.90/    74525*/09*.

790.!.     .

/2540009.81742 !%.81742&807.3//85.-0:83.29470.05943   !.2540009.$"5747.

20'##   .&#   .*02534&#    .2 $"# .*8.$"!747.*0253.

88394 ./25*341742:807.3/. #0.

*02534  1742025 070025*34.20 8.  !%  *%* & % /-28*4:95:9 5:9*30 ! 8 %'   .*02534  /-28*4:95:9 5:9*30 . .*02534 /-28*4:95:9 5:9*30 .*0253.*8.*0253..*02534 .20  /-28*4:95:9 5:9*30 .20 .*02534 $%03.*8. .7 025*34%  .

  &%!&%   3907.:0147..    !..*02534  72.*02534 30.*02534 4/.*02534 .

425090/                    .$"574.0/:708:.0881:..

70.!.  .

./.03474//  !..:0174290:807.3/ .29470.$"5747.93:2-0780.09079.0.

2 $"# &#         % /-28*4:95:9 5:9*30  8'  $ /-28*4:95:9 5:9*30  8      .$"!747.

  &%!&%  3907..:01473 4/  30 8'  !.

0881:.425090/     &%!&%  $"..$"574.0/:708:.

:01473 4/  30 8   !.. 3907.

0/:708:.425090/                     ..$"574.0881:.

  . 790.5.

//943:2-071.3  8:-97.// 949 906:.3 .3/.90 .03474//:830890/  !..3:2-07.865747..393:2-07.:041708:9.84900907980.8 4/85..9079.91742903:2-079870.29..3/.3/.0598.033:2-070889.9.

$"!747.03:2-07-0..2 $"# &# & &#   %   $ %   $ %        $* &%!&% !&%* %0.20        % $* &%!&% !&%*  $'  $ $* &%!&% !&%*  $      .

.   &%!&%   3907.20 $'  !.03:2-07-0.:01473:2 4/&# & 30&# %0..

0/:708:.425090/                  .0881:.$"574..

      .!. 70.

8:594 9.93:2-07:830445   !.29470.$"5747.9025400/09./2540041742:807.3//85..

20'##   .*02534&#   &# &#  .*0253.*8.&#   .$"!747.2 $"# .

#0./25*341742:807.3/.88394 .

 .20  /-28*4:95:9 5:9*30 .*02534  /-28*4:95:9 5:9*30 .*02534 0  ! $%03.*02534  .*8. .      ! !%  *%* & % /-28*4:95:9 5:9*30 ! 8 %'   .20 .*02534 1742025 070025*34 /-28*4:95:9 5:9*30 .*0253..*02534 .*8.20 8.*0253.7 025*34%  .

  &%!&%   3907..:0147./005    !.    !7.*02534  '03.*02534 30..9    72.*02534 .*02534 4/.

425090/       .0/:708:..$"574.0881:.

70.  .!.

.901-43.9 3:2-07:83445  !.3//85./3:2-07174290:807.29470.$"5747.80708:5949..

$"!747.2 $"# &#   %#  %# %# $&&#   &#        $* &%!&% !&%*   $* &%!&% !&%*       ! $* &%!&% !&%*           !  .

.  &%!&%  3907.:01473 4/   30         !.

0881:.425090/                 .0/:708:..$"574.

     .!. 70.

3:2-07174290:807.3/573990.947.419..$"5747./.93:2-07 :83 # !  !.29470.

$"!747.2 $"# &# &&# &#     #   ! &&    ! /-28*4:95:9 5:9*30 &   .

:01473 4/&#  30&#    !..  &%!&%  3907.

$"574.0881:.0/:708:.425090/                             ..

  .5.790.

29.865747...3//85.059848174290:807.90025/09.9.8-09003902  !.

2 $"# .*02534&#   '&&# '&&#  .*0253.$"!747.20'##   .&#   .*8.

#0.88394 .3/./25*341742:807.

20 8..:01472..8    !.*8.20 ..*02534 0'&'&  ! $%03.*0253.*02534 '& 30 .    !7.20   /-28*4:95:9 5:9*30 ..:014723...*8.:0 4/ .:0 4/'& '& 30'& 3907./005    $73.*02534  72. ..*0253.7 025*34%  .*02534 1742025 070025*34'& /-28*4:95:9 5:9*30 ..*02534  /-28*4:95:9 5:9*30 . '& '&  .  '&'&   ! !%  *%* & % /-28*4:95:9 5:9*30 ! 8 %'     &%!&%   3907.*02534 '& '&.

425090/     .0881:.$"574.0/:708:..

4228843-:833..0590254003:2-07174290:807.90.     .3/709:73025400 3.0/:70.  70.7 .3/4:9...20 8.7:20398   !..574.

$"!74.90/   &%!&%   $"'#$&# $"'#&# $"'#'##   $"!*   $   !.70.0/:70.0/:70 $"#% ##!!# &#!*  ! &# ! &%025 %! $# &% 025 $#%!  $$  &%025  $$ %!  $  $% $#  $$  % ! $#  $$  # 025 #!* !  !*  !74.

.0/:708:.   $                     .425090/   $"!#%$    72.0881:.$"574..

3//85.0590254003:2-07174290:807.3/.90.0/:70..4228843  !..7.   ..025400 3.. 70.20 8.574.

.1907:5/.1907:5/..70.90/  $.7-01470:5/.0/:70.$"!74.90/ $#  &!%!$%$#$# $#   #!* !   $%$#% $# # 025 #!* !  $* &%!&% !&%* $.90/   &%!&%  $"!*   $.90/ $#    !74.7.90/   !.7.0/:70 $"#% ##!!# &#!* ! &#  $ $#&#    $%$#% $# # 025 #!* !   $* &%!&% !&%* $...7-01470:5/.

0881:.425090/   .0/:708:..$"574.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->