RSS Forums RSS
Please support our Oracle advertiser: Programming Forums
Views: 2188 | 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)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:12 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC