0% found this document useful (0 votes)
23 views

Q On Functions

The document contains 17 functions related to querying employee data from a database table including filtering by name length, job length or contents, character counts in strings, converting case for names, and filtering hire dates by day of week or year.

Uploaded by

sekararumugham
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Q On Functions

The document contains 17 functions related to querying employee data from a database table including filtering by name length, job length or contents, character counts in strings, converting case for names, and filtering hire dates by day of week or year.

Uploaded by

sekararumugham
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

USE FUNCTIONS ONLY

1. List employees whose name having 4 characters


2. List employees whose job is having 7 characters
3. Find out how many times letter 'S' occurs in 'qspiders'
4. List the employees whose job is having last 3 characters as 'man'
5. List employees whose job is having first 3 characters as 'man'.
6. Display all the names whose name is having exactly 1 'L'
7. Display dept names which are having letter 'O'
8. Display the output as shown below,
   Scott working as a clerk earns 3000 in dept 20
9. Calculate number of L in string 'HELLLLL'
10. Display all the employees whose job has a string 'MAN'
11. Display all the employees whose job starts with string 'MAN'
12. Display all the employees whose job ends with string 'MAN'
13. Display first 3 characters of ename in lower case and rest everything
in upper case.
If ename is 'QSPIDERS' then display  this as ‘qspIDERS’
14. Display the result from emp table as below.

SMITH is a CLERK and gets salary 2000 

Here SMITH is ename column, CLERK is JOB and 2000 is SAL


column and rest everything is literal strings.
15.list the employees hired on a Wednesday
16.list the employees hired on a leap year
17.list the employees hired on a Sunday in the month of may

You might also like