Quantcast
Channel: Questions in topic: "distinct"
Viewing all articles
Browse latest Browse all 38

Union not returning desired results

$
0
0
Three tables, TblA has Name data, TblB Amounts and TblC dates. I need names that have: dates for specific criteria and the date (if any) and those with an amount for a specific criteria and the amount (if any) on the same line. Some names will have only a date, some only an amount and others will have both. The union is returning 2 rows for those who have both a date and amount. Row one shows the date with a null amount, row two shows a null date with an amount. I understand the Union (even distinct) considers Null as a distinct value. How can I get around this?,

Viewing all articles
Browse latest Browse all 38

Trending Articles