Professional Documents
Culture Documents
Modern College of Engineering, Pune: MCA Department A.Y.2023-24
Modern College of Engineering, Pune: MCA Department A.Y.2023-24
>> OUTPUT :
Q 3. Accept department number from user and display details of all employees in
that department.
>> INPUT :
SELECT * FROM
emp
where deptno=:deptno
>> OUPTPUT :
Q 4. Create an index that would permit each salesperson to retrieve his or her
orders grouped by date quickly.
>> INPUT :
CREATE INDEX sales_details ON sales_order_32(dely_date) >>
OUTPUT :
Q 5.Create a view on emp table which will display empno, ename, sal, deptno,
dname
>> INPUT :
CREATE VIEW emp_details AS
SELECT empno, ename, sal, emp.deptno, dname
FROM emp, dept
WHERE emp.deptno=dept.deptno
OUTPUT :
***************************************************************************************
***************************************************************************************