0% found this document useful (0 votes)
4 views9 pages

Ism Assg4

Uploaded by

VT
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)
4 views9 pages

Ism Assg4

Uploaded by

VT
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/ 9

ASSIGNMENT - 4

DML – SELECT QUERY


Q1: Display record of employee where Empno is 7934.
ANS: COMMAND:

OUTPUT:

Q2: Display records of employee where job is Manager.

ANS: COMMAND:

OUTPUT:
Q3: Display employee name and hiredate of employee whose salary is
600

ANS: COMMAND:

OUTPUT:

Q4: Display all fields from emp no 7876 to 7934.


ANS: COMMAND:
OUTPUT:
Q5: Display all records where ename starts with letter J.
ANS: COMMAND:

OUTPUT:

Q6: Display all records where salary is either 1300 or 1600.


ANS: COMMAND:
OUTPUT:

Q7: Display all records of employees who are salesman.


ANS: COMMAND:
OUTPUT:

Q8: Display employee name and salary where hiredate is 03-Dec-81.


ANS: COMMAND:
OUTPUT:

Q9: Display employee name and job where ename ends with S.
ANS: COMMAND:
OUTPUT:

Q10: Select all records where employee name starts with S and salary
is 800.
ANS: COMMAND:

OUTPUT:

Q11: Select all employee whose salary is between 1300 and 1600.
ANS: COMMAND:
OUTPUT:
Q12: Select all employee who are NOT analyst.
ANS: COMMAND:
OUTPUT:
Q13: Display names of employee whose first character is A.
ANS: COMMAND:
OUTPUT:

Q14: Display names of employee whose second character is A.


ANS: COMMAND:

OUTPUT:

Q15: Display names of employee whose first character is A and last


character is S.
ANS: COMMAND:
OUTPUT:

Q16: Display employee name and empno who is clerk and salary 1300

ANS: COMMAND:
OUTPUT:

Q17: Select all employee that have ‘LL’ or ‘TT’ in any position.

ANS: COMMAND:
OUTPUT:

Q18: Display employee name that have atleast 5 characters in length.


ANS: COMMAND:
OUTPUT:

You might also like