stuff
select newid() as 'ID' , s.id 'SignalID' , s.name 'SignalName' , ctdp.OrganSystemID , cse.OutcomeEffect , stuff((select ',', CAST(Cells.id AS VARCHAR(MAX)) from Cells where Cells.id = csets.cellid for...
View Articlestuff
, csets.cellidchanges the group by results ,it changes the number of results i receive
View Articlestuff
Sorry, it is hard to test the query without data.with cte as ( select newid() as 'ID' , csets.cellid , s.id 'SignalID' , s.name 'SignalName' , ctdp.OrganSystemID , os.Name 'Devpath' , cse.OutcomeEffect...
View Articlestuff
still erorr Msg 156, Level 15, State 1, Line 34 Incorrect syntax near the keyword 'select'. Msg 102, Level 15, State 1, Line 34 Incorrect syntax near '1'.
View Articlestuff
with cte as ( select newid() as 'ID' , csets.cellid , s.id 'SignalID' , s.name 'SignalName' , ctdp.OrganSystemID , os.Name 'Devpath' , cse.OutcomeEffect from Signals as s join cell as csets on s.id =...
View Articlestuff
if i addstuff(select ',', CAST(Cells.id AS VARCHAR(MAX)) from Cells where Cells.id = ctdp.cellid for XML PATH (''),1,3,'')i receive errorwith out it the query work i tried also max( stuff(select ',',...
View Articlestuff
What happens with:select newid() as 'ID' , s.id 'SignalID' , s.name 'SignalName' , ctdp.OrganSystemID , os.Name 'Devpath' , cse.OutcomeEffect , stuff(select ',', CAST(Cells.id AS VARCHAR(MAX)) from...
View Articlestuff
here the full query select newid() as 'ID' , s.id 'SignalID', s.name 'SignalName', ctdp.OrganSystemID, os.Name 'Devpath', cse.OutcomeEffect, stuff(select ',', CAST(Cells.id AS VARCHAR(MAX)) from Cells...
View Articlestuff
It is hard to give good help without understanding the underlying table structures.My next attempt is to add z.xxxid to your group by clause.Russel Loski, MCT, MCSE Data Platform/Business Intelligence....
View Articlestuff
receive this errorCannot perform an aggregate function on an expression containing an aggregate or a subquery
View Articlestuff
,max(stuff((select ',', CAST(xxxid AS VARCHAR(36)) from cells where cell.xxxid = ctdp.cellid for XML PATH ('')),1,3,'')) I think this might do what you want.,Russel Loski, MCT, MCSE Data...
View Articlestuff
hii have query with joins and group by i want to add column containing concatenation of a field in one of the joins but not in the displayed fieldsselect x.name y.fullname z.name from x join y on x.id...
View Article
More Pages to Explore .....