Write a query to find the name of employees those who have
joined on Monday.(based on column hire_date)

Answer Posted / venkat

Select first_name,Last_name
from employees
where To_date('HIREDATE','D')=2;

1-SUNDAY
2-MONDAY
----
7-SATURDAY

The advantage of the above query even don't know about the
format of day of the week We get the output.
Monday,
MON
MONDAY
ETC

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to install mysql? : Sql dba

580


How exception is different from error?

539


Why we use stored procedure instead of query?

533


What is raid? How does it help storage of databases?

599


What are the different types of constraints?

561






What is pl sql and why it is used for?

570


Does view store data in sql?

532


How many types of primary keys are there?

525


How do I view a procedure in sql?

547


What is sequence in sql?

506


What is compound trigger?

553


What is procedure function?

537


How does pl sql work?

521


what is commit? : Sql dba

615


Mention what does the hierarchical profiler does?

557