Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Null data in Where clause of Outer join

$
0
0
How would I select the max dated row from a table where null values could exist.

Table 1
ID Amount
1 10
2 20
3 15

Table 2
ID Date
1 8/5/12
1 12/1/12
3 8/17/11

My desired result would be
ID Max Date
1 12/1/12
2
3 8/17/11

Viewing all articles
Browse latest Browse all 13329

Trending Articles