Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
I get:Incorrect syntax near the keyword 'as'. on the line that is doing the cast in the group by.Im using a rollup for a report, and part of the group by clause doesnt like the following:
group bycast(rtrim(b.ab_fstnm) + ' ' + rtrim(b.ab_lstnm) as char(30)) as AgentName, s.insert_date, s.id , f.id , ad.name,
madhivanan
Premature Yak Congratulator
22864 Posts
Posted - 2006-10-04 : 12:24:35
You dont need Alias name in Group bygroup bycast(rtrim(b.ab_fstnm) + ' ' + rtrim(b.ab_lstnm) as char(30)), s.insert_date, s.id , f.id , ad.name,MadhivananFailing to plan is Planning to fail