F
fjdixon
I have what should be a trivial question:
Table has data below
Name1,Name2
Name1 or Name2 could be null but not both
I would like to get result recordset of
Name, count1, count2
Where
Name is union of all name1 and name2 (distinct)
Count1 is count(Not Null) Group by Name1
Count2 is count(Not Null) Group by Name2
Query needs to be 255 chars max (Access db in VB6).
Any help would be appreciated.
Thanks
Table has data below
Name1,Name2
Name1 or Name2 could be null but not both
I would like to get result recordset of
Name, count1, count2
Where
Name is union of all name1 and name2 (distinct)
Count1 is count(Not Null) Group by Name1
Count2 is count(Not Null) Group by Name2
Query needs to be 255 chars max (Access db in VB6).
Any help would be appreciated.
Thanks