Viewing 3 posts - 1 through 3 (of 3 total)
I wanted to take all of the Addresses that are same and count them regardless of the Name. So I tried:
SELECT COUNT(PracticeAddressFirstLine) as nCount,
Name as nName,
PracticeAddressFirstLine as PAF
FROM GlobalOrganization
WHERE...
December 29, 2009 at 8:18 pm
I figured it out! It was missing the "," here:
SELECT COUNT(Name) as nCount,
Name as nName,[/size]
PracticeAddressFirstLine as PAF
FROM GlobalOrganization
WHERE PracticeAddressState = 'TX'
GROUP BY Name,PracticeAddressFirstLine
ORDER BY nCount
Thanks so much...
December 29, 2009 at 7:19 pm
Thanks for the answer, now it's coming back with:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'PracticeAddressFirstLine'.
December 29, 2009 at 7:13 pm
Viewing 3 posts - 1 through 3 (of 3 total)