DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Oracle (http://www.daniweb.com/forums/forum129.html)
-   -   selecting the records (http://www.daniweb.com/forums/thread29128.html)

amir_ct2001 Jul 27th, 2005 2:10 am
selecting the records
 
i have created table named emp contains following fields :name,empno,dob(date of birth),doj(date of join)

i wish to select the record like
select the employee details those who are joined same date.
please replyto me

weilander Aug 3rd, 2005 4:17 am
Re: selecting the records
 
SELECT *
FROM emp emp1
WHERE TRUNC(emp1.doj) IN (SELECT TRUNC(emp2.doj)
FROM emp emp2
WHERE emp2.rowid <> emp1.rowid)


All times are GMT -4. The time now is 2:28 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC