|
I have table called INTAKE with following data.
I have License table which will show the license dates purched for the corresponding AnimalID
I need to show the results as follows:
Thanks for your help Desiabhi
(comments are locked)
|
|
Try this
this gives
Basically what this is doing is joining the unique list of AnimalIDs from the intake table, to the license table using a left join to get the null values where no license exists. The Thanks so very much, the solution is very accurate.
Jan 20 '10 at 06:30 PM
desiabhi
Kev, do you prefer ISNULL to COALESCE? If so, for what reasons? I am curious as I have always used ISNULL (and NZ) in programming but had to make do with COALESCE in TSQL...
Jan 21 '10 at 12:12 PM
Fatherjack ♦♦
Fatherjack: I don't think it's a question of preference, just habit! If I only have one expression to test, then
Jan 21 '10 at 01:25 PM
Kev Riley ♦♦
(comments are locked)
|

