Hi, I have the following select statement which works fine.SELECT DISTINCT TOP (100) PERCENT t2.goldpracid, t2.goldpatid, t2.vision_patid,t2.yob, t2.mob, t2.gender, t1.prac_no, t1.goldpracid as goldpracid2, t1.prac_eid, t3.goldPatID AS ImportgoldpatidFROM GPRDData.dbo.tblpatdetails AS t2 INNER JOIN Verisis.dbo.tblImport AS t3 ON t2.goldpatid = t3.goldpatid INNER JOINGPRDTech.gprdsql.TblPracDetails AS t1 ON t2.goldpracid = t1.goldpracidOrder BY Importgoldpatid
t2.gender is stored as 1 or 2 in the GPRDData.dbo.tblpatdetails table. 1 = male 2 = Female I want to change the select query above and instead of having at the output 1 or 2, I have instead male or female. Any help plsMany thanks