hexOffender
Programmer
I am trying to combine th results of these two selects using '+'. It was working before, then it stopped. The individual statements run fine, but when I try to combine them I get an empty result, not a NULL, just an empty result
SELECT distinct Response
FROM NurQueryResults AS NQR
WHERE NQR.VisitID=@VisitID
AND NQR.QueryID = 'NUR.BDAY'+
SELECT STUFF((SELECT distinct Response
FROM NurQueryResults AS NQR
WHERE NQR.VisitID=@VisitID
AND NQR.QueryID = 'NUR.TIME'),3,0,':')+':00.000')
SELECT distinct Response
FROM NurQueryResults AS NQR
WHERE NQR.VisitID=@VisitID
AND NQR.QueryID = 'NUR.BDAY'+
SELECT STUFF((SELECT distinct Response
FROM NurQueryResults AS NQR
WHERE NQR.VisitID=@VisitID
AND NQR.QueryID = 'NUR.TIME'),3,0,':')+':00.000')