0% found this document useful (0 votes)
6 views5 pages

Slip of DMS24-25

DBMS practical slips

Uploaded by

tlanarase9
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)
6 views5 pages

Slip of DMS24-25

DBMS practical slips

Uploaded by

tlanarase9
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/ 5

Slip 1 Marks

Task 1 Write a PL/SQL program to display even numbers between 1 to 20 10M


Task 2 Describe four aggregate functions with example 5M
Task 3 Oral 10M

Slip 2 Marks
Task 1 Consider the following database schema: 10M
Emp(Empno,Ename,job,mgr,joindate,salary,comm.,deptno).
Write the SQL queries for the following:
i)Write a query to find list of employees whose salary is not less 5000.
ii)Write a query to find list of employees whose job title is either “Manager”
or “Analyst”.
iii)Change the location of deptno 40 to Pune from Chandrapur.
iv)Display the Ename and salary of employees who earn
more than Rs. 50,000 and are in deptno 10 or 30.

Task 2 Explain any four string functions with example 5M


Task 3 Oral 10M

Slip 3 Marks
Task 1 Consider the following database Employee (emp-id, emp-name, emp-city, 10M
emp-addr, emp-dept, join-date)
i)Display the emp-id of employee who live in city Pune or Nagpur.
ii)Display the details of employee whose joining date is after 02-July-2007.
iii)Change employee name ‘Ajit’ toAarav’.
iv)Display the total number of employees whose dept is ‘50’.
Task 2 Explain joins in SQL with examples 5M
Task 3 Oral 10M
Slip 4 Marks
Task 1 EMP (empno, ename, mgr, hiredate, sal, Deptno) 10M
(i) Select ename, sal, deptno from EMP.
(ii) List all empno, ename, hiredate from EMP where sal < 5000 AND
deptno = 20
(iii) Write a query to add (city char (20)) to EMP
(iv) Insert values in EMP (7788, ‘Asha’, Manager 7566, ‘10 July 1999’,
30000,
Task 2 Explain any four Arithmetic functions with example 5M
Task 3 Oral 10M

Slip 5 Marks
Task 1 Employee(emp_id,emp_name,emp_city,emp_addr,emp_dept, join_date) 10M
Solve the following query:
i)Display the names of employees in capital letters.
ii)Display the emp_id of employee who live in city Pune and Mumbai.
iii)Display the details of employees whose joining date is after ‘01-Apr-
1997’.
iv)Display the total number of employees whose dept.no.is ‘10’.
Task 2 Describe Commit, Rollback and Save point with example 5M
Task 3 Oral 10M

Slip 6 Marks
Task 1 Write PL/SQL program to display factorial of given number 10M
Task 2 What is sequence? How it is created 5M
Task 3 Oral 10M

Slip 7 Marks
Task 1 Write PL/SQL program to accept three numbers and display the largest 10M
number
Task 2 Describe types of index. 5M
Task 3 Oral 10M

Slip 8 Marks
Task 1 Write a PL/SQL program for displaying details of employee working in 10M
computer department using cursor
Task 2 What is exception what are its types 5M
Task 3 Oral 10M

Slip 9 Marks
Task 1 Write a PL/SQL program using predefined exception 10M
Task 2 What is cursor ?describe use of fetch to statement in cursor 5M
Task 3 Oral 10M

Slip 10 Marks
Task 1 Write a PL/SQL program by using user defined exception 10M
Task 2 What is view write syntax to create view 5M
Task 3 Oral 10M

Slip 11 Marks
Task 1 Write a procedure to update salary of employee by 25% 10M
Task 2 Describe Set Operator with Example 5M
Task 3 Oral 10M

Slip1 2 Marks
Task 1 Write PL/SQL program to display 1 to 10 number using for loop 10M
Task 2 Describe joins with example 5M
Task 3 Oral 10M

Slip 13 Marks
Task 1 Write a PL/SQL program to display 1 to 10 numbers in reverse order using 10M
For loop
Task 2 Describe group by clause with example 5M
Task 3 Oral 10M

Slip 14 Marks
Task 1 1.Create view emp_view contains emp_no,e_name and salary from 10M
employee
2.update view set e_name to Ramesh whose emp_no=1001
Task 2 What is normalization what are its types 5M
Task 3 Oral 10M
Slip 15 Marks
Task 1 1.Create dept_view on dept table 10M
2.Insert new record in dept_view
3.Modify location of deptno 10 of dept_view
4.Delete the view dept_view
Task 2 Describe any four DML commands 5M
Task 3 Oral 10M

Slip1 6 Marks
Task 1 Write a PL/SQL program to display Even numbers from 1 to 20 10M
Task 2 Describe any four DDL Commands 5M
Task 3 Oral 10M

Slip 17 Marks
Task 1 Write a PL/SQL program to display Odd numbers from 1 to 20 10M
Task 2 Draw E-R diagram for library management system 5M
Task 3 Oral 10M

Slip 18 Marks
Task 1 10M
Consider following Schema :
emp1(empno,ename,deptno)
emp2(empno,ename,deptno)
Write SQL commands for the following statements.
1. Display the names of employees including duplicate
employee names.
2. Display the names of employees excluding duplicate
employee names.
3. Display the common employee names from both the tables.
4. List employees who are not assigned to any department?

Task 2 Describe various set operators in SQL 5M


Task 3 Oral 10M

Slip 19 Marks
Task 1 Emp (Emp_no as primary key, E_name, Dept_no, Dept_name, name, 10M
Job_id, Salary) and Dept (Dept_no as primary key, emp_no foreign
key, deptname, location)

Write output of the following queries.


a. Display minimum salary of employee from every department;
b. Display total salary of every department.
c. Display the department having total employees more than 5.
d. Display details of employees with employee name in ascending
order.
a. Display emp_no, dept_no from dept Group By deptname.

Task 2 Explain types of clauses 5M


Task 3 Oral 10M

Slip 20 Marks
Task 1 Write a PL/SQL program to display multiplication table of 5 using 10M
FOR loop.

Task 2 Describe data abstraction with neat diagram 5M


Task 3 Oral 10M

Slip 21 Marks
Task 1 Write a PL/SQL code to display trigger when salary get updated. 10M
Task 2 What is trigger?write syntax to create triger 5M
Task 3 Oral 10M
Slip 22 Marks
Task 1 Write a function to calculate total no of employees belong to dept no 10M
10
Task 2 Describe transaction state diagram 5M
Task 3 Oral 10M

Slip 22 Marks
Task 1 10M
1.Write a procedure emp_count () to count number of employees in
department, use dept_no as input parameter
2. Create a stored procedure to accept name and greet user with name.

Task 2 Define the PL/SQL block structure for procedure 5M


Task 3 Oral 10M

Slip 23 Marks
Task 1 Write PL/SQL function which will compute and return the maximum 10M
of two values
Task 2 What is the difference between Function and Procedure. 5M
Task 3 Oral 10M

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy