User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 374,019 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,718 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser:
Views: 1977 | Replies: 1
Reply
Join Date: Jun 2005
Posts: 5
Reputation: amir_ct2001 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
amir_ct2001 amir_ct2001 is offline Offline
Newbie Poster

selecting the records

  #1  
Jul 27th, 2005
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 5
Reputation: weilander is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
weilander weilander is offline Offline
Newbie Poster

Re: selecting the records

  #2  
Aug 3rd, 2005
SELECT *
FROM emp emp1
WHERE TRUNC(emp1.doj) IN (SELECT TRUNC(emp2.doj)
FROM emp emp2
WHERE emp2.rowid <> emp1.rowid)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Oracle Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Oracle Forum

All times are GMT -4. The time now is 11:11 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC