SQL 2005. What is the best method of selecting only the master records that HAVE detail records? Think of this as invoice master and detail tables. Also the inverse, master records that HAVE NO detail records. I thought about using Exists In Select...., but that seems uncecesary. Could I use a left join on the detail table (Is Null, Is Not Null) and then group by the master PK to get the proper records? I only want one master record no matter how many detail records there are. This seems simple, just looking for some advice.
Auguy
Northwest Ohio
Auguy
Northwest Ohio