Viewing 15 posts - 46 through 60 (of 374 total)
ekkaldevi.naveen (7/22/2014)
Already I posed the execution plan. There is only one table with 70 columns and only 1 primary key (with 12 columns). Apart from that there is no other...
July 22, 2014 at 7:14 am
You can pass selected values as comma separated string. With below method, you can insert only selected values to table.
DECLARE @weekdaySelected NVARCHAR(50)
DECLARE @tableT TABLE
( ClassName NVARCHAR(10),
WeekdaySelected NVARCHAR(50))
SET @weekdaySelected =...
July 22, 2014 at 3:17 am
Revenant (7/21/2014)
I learned something. Thanks, Phil!
+1
July 22, 2014 at 2:37 am
MysteryJimbo (7/22/2011)
Why Microsoft havent changed this or implemented adaptive pages sizes...
July 21, 2014 at 12:19 am
Eirikur Eiriksson (7/14/2014)
July 14, 2014 at 10:33 pm
Sorry I got the answer. Issue resolved.
July 14, 2014 at 6:48 am
Ian C0ckcroft (7/14/2014)
There are duplicates coming through and the only differnce is a trailing space on one of the columns.
RTRIM...
July 14, 2014 at 5:06 am
pchirags (6/9/2014)
easy one.thanks for the question.
+1
July 13, 2014 at 11:32 pm
raghuldrag (7/11/2014)
Hi FriendIn MSSql2000 wont allow Pivot
You have not mentioned SQL2000 anywhere in the thread. Also you have posted this question in 2008 forum.
Don't you think you need to...
July 11, 2014 at 5:14 am
Give it a try:
; WITH AccountCTE AS (
SELECT fs_accno, fs_cost_center, fs_amount from accutn_det
)
SELECT fs_accno,[205produ],[206produ],[208produ], COALESCE([205produ], 0)+ COALESCE([206produ], 0)+ COALESCE([208produ],0) AS Total FROM AccountCTE
PIVOT (SUM(fs_amount) FOR fs_cost_center IN ([205produ],[206produ],[208produ])) p
July 11, 2014 at 5:04 am
Please check folder rights. It seems folder doesnt have required rights.
July 11, 2014 at 2:54 am
Deepak Burkul (7/11/2014)
yes this is interview question and i am going to learn more on execution plan of SQL server that time i get this confusion about Physhical Join...
July 11, 2014 at 2:43 am
Add Cost center (fs_cost_center) in Group by clause.
July 11, 2014 at 12:45 am
Viewing 15 posts - 46 through 60 (of 374 total)