Write a query to find the employees from EMP table those who
have joined in Monday. (there is a column as hiredate which is
a date column i.e values are like 03-DEC-81)

Answers were Sorted based on User's Feedback



Write a query to find the employees from EMP table those who have joined in Monday. (there is a co..

Answer / l meher

SQL> select ename,hiredate from emp where trim(to_char(trunc(hiredate),'DAY')) = 'MONDAY';

ENAME HIREDATE
---------- ---------
MARTIN 28-SEP-81

Is This Answer Correct ?    10 Yes 1 No

Write a query to find the employees from EMP table those who have joined in Monday. (there is a co..

Answer / jprakash025

SQL> select ename,hiredate from emp
2 where
3 to_char(hiredate,'day') like '%sunday%';

ENAME HIREDATE
---------- ---------
WARD 22-FEB-81
SCOTT 19-APR-87

i dont hv monday data, thats y i m using sunday

Is This Answer Correct ?    9 Yes 3 No

Write a query to find the employees from EMP table those who have joined in Monday. (there is a co..

Answer / pramod

select *
from tbl_employees
where DATENAME(DW,hiredate)='Monday' order by hiredate

Is This Answer Correct ?    1 Yes 0 No

Write a query to find the employees from EMP table those who have joined in Monday. (there is a co..

Answer / siva

Select* from emp where to_char(hiredate,'dy')='mon';

Is This Answer Correct ?    0 Yes 0 No

Write a query to find the employees from EMP table those who have joined in Monday. (there is a co..

Answer / masuduz zaman

SELECT * FROM EMP
WHERE (DATEPART(dw, HIREDATE) + @@DATEFIRST) % 7 = 2

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

How do I add a database to sql?

0 Answers  


Why do we use partitions in sql?

0 Answers  


What is sql key?

0 Answers  


What are variables in pl sql?

0 Answers  


Explain the PL/SQL compilation process.

3 Answers  






what is difference between "Primary key" and "Unique key"?

4 Answers   PreVator,


Which version of sql do I have?

0 Answers  


What is Overloading of procedures ?

4 Answers   Amdocs,


i have a column which may contain this kind of value: 123*67_80,12*8889_5,34*8_874 ,12*7_7 (can contain space before a comma, and this string length can be anything) now i want to split this value into two column like: column1: 123*67,12*8889,34*8,12*7 column2: 80,5,874,7 use function for this

0 Answers  


How to use sql*plus built-in timers?

0 Answers  


what is rollback? : Sql dba

0 Answers  


How much does sql certification cost?

0 Answers  


Categories