Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 does postgresql compare to mysql?

0 Answers  


how to check myisam tables for errors? : Sql dba

0 Answers  


counting the no.of characters occurs in a string by using pl/sql function

1 Answers   TCS,


What is view? Can we update view

0 Answers  


what is explain plan?, given an example...

3 Answers   Polaris,


what is hash join

1 Answers   NCR,


How long does it take to learn pl sql?

0 Answers  


what is definer rights invoke rights?

1 Answers  


How do you take the union of two tables in sql?

0 Answers  


Which is faster joins or subqueries?

0 Answers  


what is bcp? When is it used?

0 Answers  


What is attribute indicator in pl sql?

0 Answers  


Categories