following query works but result set shows [no column name ] for cast(request as varchar(200)) field. How can I alias this field?
using cast(request as varchar(200))as request does not work.
select title,firstname,surname,required_date,address1,birth_date, cast(request as varchar(200)) ,home_phone,req_id,
user_name,event_number,acc_number,nhi, count(*) as total from vrequest
where req_id = '324'
group by title,firstname,surname,required_date,address1,birth_date,cast(request as varchar(200)),
home_phone,req_id,user_name,event_number,acc_number,nhi