Viewing 15 posts - 166 through 180 (of 253 total)
Jason,
Your query still does not group the data into one row per instanceid.
it looks like this:
417 Application1
417 Application2
418 Application1
May 11, 2011 at 9:49 am
Thanks for the link! I always learn a lot. This SQL worked for me. It has a listing of Server, Instance, and associated applications.
declare @data Table
(
applicationid integer not null,
instanceid...
May 10, 2011 at 4:16 pm
Thanks Jason.
I gave the row a name 'test' and then it ran.
It adds a new row for each application.
instanceid application
417row test=",Application1
417row test=",Application2
418row test=",Application3
instead of
417 ...
May 10, 2011 at 1:02 pm
Thanks for responding Lowell.
My goal is to have one row per instance that has a comma separated list of applications. To accomplish that I used to coalesce method in the...
May 10, 2011 at 10:19 am
ah ok. I was thinking if I did that, it would only group by the first digits before the . instead of each full rowid.
Thanks again Jason.
April 28, 2011 at 3:23 pm
One more hang up.
Some of the rowid have multiple decimal places. When it gets to those, it tells me it can't convert varchar to float for floor(rowid).
What does that mean?
April 28, 2011 at 3:08 pm
Perfect. You guys are amazing. I always learn so much in these forums.
Thanks both of you for helping!
Howard
April 28, 2011 at 2:50 pm
Thanks Jason. That worked and I really learned a lot.
If you don't mind, here is the way that I really have to output it.
The rowid for these network devices...
April 28, 2011 at 2:38 pm
I was expecting for 1.1 that it would be a decimal as 4 of 5 were up.
April 28, 2011 at 2:18 pm
Sorry it was not clear. I made this table just now to demonstrate on a very basic level what it looks like.
/****** Object: Table [dbo].[test] Script...
April 28, 2011 at 2:16 pm
I have a long list of devices and need to know the availability for each of them.
April 28, 2011 at 1:58 pm
Thanks for responding Jason.
I get this:
Msg 8120, Level 16, State 1, Line 1
Column 'CustomPollerStatistics_Detail.RowID' is invalid in the select list because it is not contained in either an aggregate function...
April 28, 2011 at 1:54 pm
Thanks Stefan. I see what you are saying and will experiment with it.
Howard
April 27, 2011 at 1:27 pm
It does not work without the X. I don't understand in what part of the query execution it is referencing the subquery by alias.
April 27, 2011 at 1:18 pm
Viewing 15 posts - 166 through 180 (of 253 total)