Viewing 15 posts - 301 through 315 (of 1,114 total)
Lynn Pettis (3/4/2009)
karthikeyan (3/4/2009)
Chris Morris (3/3/2009)
karthikeyan (3/3/2009)
His method is working fine. I have tested it.Actually my requiremrnt is little bit different what he has given.
Can you demonstrate please, Karthik?...
March 4, 2009 at 1:48 am
Lynn Pettis (3/3/2009)
declare @pDate datetime;
set @pDate = getdate();
select
dateadd(wk, datediff(wk, 0,...
March 4, 2009 at 12:50 am
Michael Valentine Jones (3/3/2009)
karthikeyan (3/3/2009)
Declare @InputDate Datetime
select @InputDate = '28/feb/2009'
select case when upper(datename(dw,@InputDate)) = 'MONDAY' then @InputDate
...
March 4, 2009 at 12:46 am
Chris Morris (3/3/2009)
karthikeyan (3/3/2009)
Thanks for all your inputs!:)
I found the TSQL 101 solution.
Declare @InputDate Datetime
select @InputDate = '02/mar/2009'
select case when upper(datename(dw,@InputDate)) = 'MONDAY' then dateadd(dd,-7,@InputDate)
...
March 4, 2009 at 12:44 am
Lynn Pettis (3/3/2009)
declare @pDate datetime;
set @pDate = getdate();
select
dateadd(wk, datediff(wk, 0, @pDate - 1), 0)...
March 4, 2009 at 12:41 am
Chris Morris (3/3/2009)
karthikeyan (3/3/2009)
His method is working fine. I have tested it.Actually my requiremrnt is little bit different what he has given.
Can you demonstrate please, Karthik? I'd be very...
March 4, 2009 at 12:35 am
His method is working fine. I have tested it.
Actually my requiremrnt is little bit different what he has given.
March 3, 2009 at 8:12 am
I am sure there should be some other way to do the same. Please post here if anybody has alternate query.
March 3, 2009 at 4:33 am
The below query will give the current week's first date and lastdate.
Declare @InputDate Datetime
select @InputDate = '28/feb/2009'
select case when upper(datename(dw,@InputDate)) = 'MONDAY' then @InputDate
...
March 3, 2009 at 4:28 am
Hi All,
Thanks for all your inputs!:)
I found the solution.
Declare @InputDate Datetime
select @InputDate = '02/mar/2009'
select case when upper(datename(dw,@InputDate)) = 'MONDAY' then dateadd(dd,-7,@InputDate)
...
March 3, 2009 at 3:37 am
Lynn,
if i give the start date of a week, then it should take the last week's start date and end date.
saturday & sunday should be eliminated.
i.e 23/feb/2009 to 27/feb/2009
why?
simply i...
March 2, 2009 at 12:44 pm
I have tested the remaining queries with both index. Both of them took the same time to complete the execution. only difference is 'FORWARD SCAN' and 'BACKWARD SCAN' method in...
March 2, 2009 at 1:54 am
Thanks Steve!
I will be very happy if my name remain as it is. Politely saying, Since i visited our site more no of times(1370 visits from the joining date) and...
February 26, 2009 at 2:25 am
Ok. I will try and get back to you shrotly.
Generally speaking, which scan type(FORWARD or BACKWARD) will work fast? How any why? How it is working internally?
February 26, 2009 at 12:21 am
I have created a non clustered index to exception table.
But i used two different column order.
1)create nonclustered index sk_exception on exception(feed_num,err_cd,symbol)
I created the above index first.
then i executed the procedure.
exec...
February 25, 2009 at 1:16 am
Viewing 15 posts - 301 through 315 (of 1,114 total)