Viewing 5 posts - 1 through 6 (of 6 total)
this works, have to cast request as it is text datatype.
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
January 2, 2007 at 8:50 pm
None have, apart from the dates which are of datatype date all other fields are varchar.
this query runs on sql server 2005 to a linked table on an oracle instance.
January 2, 2007 at 4:00 pm
Thanks, tried that...
select title,firstname,surname,required_date,address1,birth_date,request,home_phone,req_id,
user_name,event_number,acc_number,nhi, count(*) as total from vrequest
group by title,firstname,surname,required_date,address1,birth_date,request,home_phone,req_id,user_name,event_number,acc_number,nhi
and got the following error msg..
Msg 306, Level 16, State 2, Line 1
The text, ntext, and image...
January 2, 2007 at 3:41 pm
Still get the same error
January 2, 2007 at 3:19 pm
sorry that was paste error. firstname is in group by still get error msg
select
title,firstname,surname,required_date,address1
January 2, 2007 at 3:06 pm
Viewing 5 posts - 1 through 6 (of 6 total)