Viewing 15 posts - 11,536 through 11,550 (of 15,381 total)
Can you explain the rules behind why ID 1 returns 1 value and ID 5 would return 2?
June 21, 2012 at 2:43 pm
ScottPletcher (6/21/2012)
Is there a sql statement that could turn it into this?
Yes, look at PIVOT as well.
Check out the articles, they discuss pivot as well. ๐
June 21, 2012 at 2:41 pm
First things first...I formatted this so myself and others can read it. You can help the legibility of your long code posts better by using IFCode shortcuts.
<-- They are...
June 21, 2012 at 12:38 pm
Yes there is. Take a look at the cross tabs articles referenced in my signature.
June 21, 2012 at 12:35 pm
Lowell (6/21/2012)
Sean Lange (6/21/2012)
Looks like Lowell and I were typing at the same time. ๐
yeah but your answer is actually better; least amount of access is the best;
my example was...
June 21, 2012 at 11:56 am
This it totally untested because you didn't post any ddl or sample data but...
SELECT t.OriginCity
,t.Destination
,sum(case when t.FlightNumber IS not null and f.OriginAirportCode IS not null and c.BoardIndicator = 'Y' then...
June 21, 2012 at 11:53 am
L' Eomot Inversรฉ (6/20/2012)
But I may not find...
June 21, 2012 at 11:43 am
Looks like Lowell and I were typing at the same time. ๐
June 21, 2012 at 11:30 am
Why do you want to do this via triggers? Why not handle it with standard permissions? Only allow select to other users and allow insert/update/delete to the role these other...
June 21, 2012 at 11:29 am
Well I am not totally sure what this table holds. Is this answers to questionnaire or something along those lines?
I would create tables for Company, Organisation, Region, Contact (or person)...
June 21, 2012 at 10:11 am
You have a couple of serious issues going on here. First this table structure is a type of EAV which is absolutely horrible to work with. This is even worse...
June 21, 2012 at 9:51 am
OK so you open RDP and type in the server name...what error message do you get? This of course has absolutely nothing with sql server but we can try to...
June 21, 2012 at 8:47 am
Prasad.N (6/21/2012)
Regarding above issue I got a answer
declare @var1 varchar(5000)
declare @table table (ColNames varchar(5000))
insert into @table
----here i doesn't want COLUMN45,COLUMN46,COLUMN35(you need to write which columns doesn't want)
select...
June 21, 2012 at 8:45 am
ashuthinks (6/21/2012)
DECLARE @CSV NVARCHAR(4000) = ''
DECLARE @CurveFamily_Swap INT = dbo.GetConfigurationValue_Int('Fireball', 'CurveFamily -...
June 21, 2012 at 8:22 am
marginalster (6/20/2012)
OK here it comes all the work put together.;-)Sorry for sometimes unclear explanations and guys thank you so much!!!!
:-D:-D
You are welcome. Glad the between us we were able to...
June 20, 2012 at 1:07 pm
Viewing 15 posts - 11,536 through 11,550 (of 15,381 total)