I am using SQL Server 8.0
I wrote a stored procedure that performs a distinct on one field.
Current Query:
Select Distinct FieldOne FROM Table1
Query I need to do something like this (not working):
Select 'P,' + Distinct FieldOne As NewResult FROM Table1
FieldOne is an Integer field
Current values Values I need returned
10 P,10
20 P,20
30 P,30
35 P,35
Do I have to do a TypeCast or something like that?
Thanks
I wrote a stored procedure that performs a distinct on one field.
Current Query:
Select Distinct FieldOne FROM Table1
Query I need to do something like this (not working):
Select 'P,' + Distinct FieldOne As NewResult FROM Table1
FieldOne is an Integer field
Current values Values I need returned
10 P,10
20 P,20
30 P,30
35 P,35
Do I have to do a TypeCast or something like that?
Thanks