View Single Post
  #1 (permalink)  
Old 05-03-2004, 01:38 PM
Gresser Gresser is offline
WebProWorld New Member
 
Join Date: Apr 2004
Location: Mpls
Posts: 4
Gresser RepRank 0
Default DB Query Help. trying to find missing entries

Hi all,

Basically there are 2 tables, one that holds:
Time: JobID, PhaseID, Hours, Date.
The other has:
Cost: JobID, PhaseID, Cost

What I want to do is check to see if there are any JobID / PhaseID pairs in Time that are not in Cost. If such an entry exist, I would like to insert an entry with (JobID, PhaseID, 0) so my update statement will match and insert the new data.

Thanks for any help!
Reply With Quote