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)

Answer Posted / masuduz zaman

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

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to present a past time in hours, minutes and seconds? : Sql dba

555


What are the rules to be applied to nulls whilst doing comparisons?

750


What are the two virtual tables available at the time of database trigger execution?

631


What is an invalid partition table?

562


Which software is used for pl sql programming?

519






How does sql developer connect to oracle database?

516


Which join condition can be specified using on clause?

514


What is trigger with example?

562


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

552


How do you declare a user-defined exception?

528


How do I add a primary key to a table?

537


Explain spool.

685


Can %notfound return null after a fetch?

586


Why schema is used in sql?

515


How to pronounce postgresql?

578