0% found this document useful (0 votes)
21 views1 page

Dbms Lab Internal-2 Set - 4

The document provides instructions to create an Employee table and insert records. It then lists 5 queries to run on the table: 1) find employees in dept 10 earning over $1000 commission or earning over $10,000 not in dept 10, 2) find employees with $0 salary, 3) find employees missing salary or commission data, 4) find employees whose name starts with S then T, 5) find employees containing 'SA' in their name.

Uploaded by

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

Dbms Lab Internal-2 Set - 4

The document provides instructions to create an Employee table and insert records. It then lists 5 queries to run on the table: 1) find employees in dept 10 earning over $1000 commission or earning over $10,000 not in dept 10, 2) find employees with $0 salary, 3) find employees missing salary or commission data, 4) find employees whose name starts with S then T, 5) find employees containing 'SA' in their name.

Uploaded by

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

Create a table Employee and insert the given records (All Odd no)

Eno Empname Date of joining Deptno Gender Salary comm


1111 Satish 19-DEC-2008 10 M 10000 1000
2222 Rashmi 01-JAN-1987 20 F 8000 500
3333 Rishi 05-JUN-1976 10 M 7000 400
4444 Anil 16-APR-1967 10 M 12000 2000
10:10:10AM
5555 Anitha 30 F 1000
6666 Neelesh 20-MAY-1987 20 M 13000

7777 Ruchi 11-JUN-2000 F


13:20:10PM
8888 sarika F

1. Display employees who earned commission more than 1000 and belongs to department 10
or have salary more than 10,000/- but does not belong to department 10
2. List the employees with zero salary
3. List the employees with either salary and commission unknown
4. Display the employees whose name starts with ‘S’ followed by any character then followed
by ‘T’, followed by any number of characters
5. Display the employees whose name contains ‘SA’

1. PL/SQL – To generate prime numbers up to 100

2.Write any trigger for Before Insert.

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