ON vs. WHERE
November 14, 2007 Hey, Ted
I need your help with an SQL query. I have two database files: a header file and a detail file. There may be many detail records for each header record, but I only want to see certain detail records. Here’s the rub. I want to retrieve all header records, even the headers for which I don’t select any corresponding detail. It seems to me this should be an easy query to write, but my efforts so far produce only the header records for the selected details. –Wayne There’s more to this query than meets the eye, Wayne. It is simple, |