0% found this document useful (0 votes)
14 views2 pages

Assignment On Oracle Pgdca

The document outlines an assignment on Oracle SQL, requiring the creation of tables for students, employees, and customers with specific fields. It includes SQL statements for inserting records, querying data based on conditions, and modifying table structures. Additionally, it provides a sample employee and department data set for further SQL queries related to employee details and department statistics.

Uploaded by

Mahabeer Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Assignment On Oracle Pgdca

The document outlines an assignment on Oracle SQL, requiring the creation of tables for students, employees, and customers with specific fields. It includes SQL statements for inserting records, querying data based on conditions, and modifying table structures. Additionally, it provides a sample employee and department data set for further SQL queries related to employee details and department statistics.

Uploaded by

Mahabeer Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment on ORACLE

Q1> Create a student details table with following field:(Roll No,Students Name ,
address , age ,Course ,Marks, Division)

SQL STATEMENTS FOR :


a. Inserting 20 records in table.
b. Finding all students name teaching in PGDCA.
c. Delete all the student details who scored less than 300 marks.

Q2> Create an employee table with following field (Employee ID,NAME ,


DEPT_ID,SALARY,ADDRESS, AGE)
SQL STATEMENTS FOR :
i. Inserting 20 records in table .
ii. Finding all the employee details working on FINANCE department.
iii. Increase the salary of employee who is getting less than 20000.
iv. Change the table name Emp to Employee
v. Change column name DEPT_ID to D_ID.
vi. Delete those records who work on SECURITY department.

Q3> Create a customer table with following attribute(customer_id, customer


name , account_no,balance, contact)
SQL STATEMENTS FOR :
I. Inserting 20 records in the table.
II. Finding customer id and customer name whose balance is more than 8000.
III. Delete those records whose balance is less than 10000.
Q4>

DEPT_
E_ID ENAME ADDRESS SALARY AGE
NO
101 RAHUL SHARMA SARIYA 20000 25 D125
102 HEMANT SEIKH BARAMKELA 21500 23 D130
103 SHISHIR SINGDEO BARPALI 22300 27 D130
104 DEV KUMAR BHATLI 25000 26 D125
105 VIRAT SINGH SARIYA 30650 26 D127
106 RAHUL SHARMA BARAMKELA 23510 26 D128
107 ABHISEKH RANA SARANGARH 35000 27 D125
108 AMULY PRADHAN CHANDRPUR 25310 28 D130
109 ANKITA GHOSLE SARIYA 33000 29 D130
110 ANANYA SAHOO SARANGARH 25000 27 D126
ORACLE
DEPT_
DEPT_NAME LOCATION
(EMPLOYEE TABLE) NO
D125 HR RAIPUR

Q> By using SQL command create the above DEPT_


DEPT_NAME LOCATION
NO
table(Employee & Department) & insert data as mention
above by using INSERT command and Answer the D125 HR RAIPUR
following query - D126 MARKETING CUTTACK
D127 FINANCE DELHI
D128 PRODUCTION PUNE
i. Display employee name who working in Marketing D129 SECURITY GOA
D130 CIVIL ASSAM
Department. D126 MARKETING CUTTACK
ii. List the Employee details who working in HR (DEPARTMENT TABLE)

department.
iii. Display the Employee name who is getting Maximum Salary.
iv. Display Employee details who is working in department.
v. Write a query to display all the department along with the number of employee
working on that . and then find department name where number of employee is greater
than 3.

You might also like