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

SELECT *
FROM emp emp1
WHERE TRUNC(emp1.doj) IN (SELECT TRUNC(emp2.doj)
FROM emp emp2
WHERE emp2.rowid <> emp1.rowid)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.