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 |
I want to know last five transactions or records from emp table, from now?
What is extent clause in table space?
Are null values same as that of zero or a blank space?
When sql appeared?
How do you create a unique index?
What is Pragma EXECPTION_INIT ? Explain the usage ?
What is meant by truncate in sql?
7. Where would you look for errors from the database design?
What is pl sql code?
1. Which is an aggregate function? a. Union b. like c. max d. Rank
TABLE A TABLE B EMPNO ENAME EMPNO ENAME 1 A 1 A 2 B 2 B 3 C 3 C 4 D 4 D 5 E 5 E 6 F 7 G HOW TO GET THE UNMATCHED RECORDS IN SQL QUERY?
Why self join is used in sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)