|
I have a table (tblApplications) that joins to a table (tblColleges)...one Application can have many Colleges. I would like to get all idsAppID that has more that one entry in the tblColleges table. Once this is accomplished, I would also like to narrow the result set further by only returning Applications by "Term" (39 or 40) and "Status" (8) Example --tblApplicaiton --tblCollege Any advice would be appreciated.
(comments are locked)
|
|
This should do it: Oleg
(comments are locked)
|
|
Or you can use a common table expression, if you do that it would be easy if you like to delete all the duplicates. (sometimes I hate iPhone) if you want to delete the duplicates you should replace the select with : DELETE FROM college WHERE rownum>1
(comments are locked)
|


Rob, my apologies if this isnt, but I am wondering if this is a college/homework question? If so then it's no problem, we are very happy to help but it will assist us in how we help you if we know that it is. Please edit the question and add the homework tag if it is. Thanks
no homework - just attempting to get a resultset for an export to pass to a department.