Viewing 15 posts - 811 through 825 (of 893 total)
You are very welcome 🙂
September 2, 2011 at 6:10 am
sql4us (9/1/2011)
I want to include all column names to display
For ex:
Zipcode West East North South maxvalue Colname
00001 ...
September 1, 2011 at 2:33 pm
Almost there 🙂
Two things to consider:
1. Your order by clause should only include the maxvalue column and not the zip code.
2. Encapsulate your whole query in a cte, and then...
September 1, 2011 at 1:53 pm
sql4us (9/1/2011)
September 1, 2011 at 1:33 pm
If you have a limited number of columns, you could use a case statement. Alternatively, try using a cte to "normalize" the data before aggregating.
September 1, 2011 at 1:16 pm
It is possible to do something like this with recursive cte's.
This is what I managed to come up with, and I think it will do what you need it...
August 31, 2011 at 3:08 pm
luismarinaray (8/31/2011)
GO
Select BB.ORDENV,BB.acountcode,BB.Description,
(select cc.balance from dbo.MOV AS cc
where
cc.accountcode=BB.acountcode and
cc.month='03' and
cc.form='F' and
cc.codeagency='05961'
) as
'05961'
from dbo.T_PLANT1 AS BB
I'm now interested that codeagency be dynamic, but this code is...
August 31, 2011 at 11:46 am
invaliddba (8/30/2011)
How do I convert this data to unicode?
Data Conversion Task in your SSIS dataflow.
August 30, 2011 at 1:09 pm
Excel destinations can only accept unicode data. You will have to convert your text file data to unicode first.
August 30, 2011 at 10:51 am
ssismaddy (8/26/2011)
Thank you so much. It works.
No problem 🙂
Remember that the "inserted" table contains ALL values that were updated/inserted.
August 26, 2011 at 2:17 pm
Rather try this:
CREATE TRIGGER [trg_test]
ON test
FOR INSERT,UPDATE
AS
begin
insert into Test_Audit(test_id)
(
select test_id
from inserted
)
end
August 26, 2011 at 1:59 pm
komal145 (8/26/2011)
I used other split function.But still not working.Is there any way to pass multiple values in dropdown..and get data for the selected values in paramter??
I'm not sure that I...
August 26, 2011 at 12:21 pm
Sure...no problem 🙂
Auditors usually have finding/recommendation checklists with standard responses. While the auditor's comment does have some value and significance, it fails to take all factors into consideration (especially the...
August 25, 2011 at 2:36 pm
Try this:
create function [dbo].[Split_Values]
(
@String varchar(4000)
,@Delimiter varchar(5)
)
returns @Split_Values table(String_Value varchar(200))
as
begin
declare @Split_Length int
while len(@String) > 0
begin
select @Split_Length =case charindex(@Delimiter,@String)
when 0 then len(@String)
else charindex(@Delimiter,@String) - 1
end
insert into @Split_Values
(
String_Value
)
(
selectsubstring(@String,1,@Split_Length)
)
select @String =case (len(@String) -...
August 25, 2011 at 2:16 pm
Viewing 15 posts - 811 through 825 (of 893 total)