Write a query to find the name of employees those who have
joined on Monday.(based on column hire_date)
Answers were Sorted based on User's Feedback
Answer / arun kumar reddy
select * from
(select emp.*,to_char(to_date(hiredate),'day') as join_day from emp)
where join_day like'mo%';
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / sankarapandian
select *,upper(datename(dw,gedate())) as dayofweek from
employee where upper(Convert(varchar(15),datename dw,gedate
())))='MONDAY'
Is This Answer Correct ? | 1 Yes | 4 No |
Answer / mohammad murtuza ali
select firstname,lastname from hire_date where
sdate='Monday'
(or)
select firstname,lastname from hire_date where
sdate='27022010'
Is This Answer Correct ? | 8 Yes | 15 No |
Answer / priya
select firstname,lastname from hire_date where to_upper
(to_char(hire_date, 'mon')) = 'MON' ;
since hire_date is of date type converting the date to
again of date type is of no use.Need to convert it to
string type and select the month.
Is This Answer Correct ? | 1 Yes | 8 No |
Answer / ravindra
Select first_name,Last_name
from employees
where To_date('Hire_date','Day')='Monday'
Is This Answer Correct ? | 6 Yes | 21 No |
What is the difference between cluster and non-cluster index?
How delete all records from table in sql?
in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.
Why we use cross join?
what are string data types? : Sql dba
What is query execution plan in sql?
what are all the common sql function? : Sql dba
What are stuff and replace function?
What are all the ddl commands?
What is sqlca in db2?
how to create a test table in your mysql server? : Sql dba
how many ways we can we find the current date using mysql? : Sql dba