Viewing 15 posts - 676 through 690 (of 1,114 total)
Jeff,
I have tested the below script.
create table #test
(
Sample Bit
)
insert into #test
select 1
union all
select 0
union all
select 1
union all
select 0
...
May 19, 2008 at 6:50 am
Second one is definitely a triangular join... you are trying to return more than one row for each row in #Result,
aren't you?
yes.
If so, how else would you do...
May 19, 2008 at 6:30 am
You've seen me do test tables like this before... next time, you can "explain it with example".
Sure.
May 19, 2008 at 5:44 am
So as your people said , table should be created with clustered index.
But unfortunately table doesn't have clustered index.
what is the solution to solve this problem ?
i.e do i...
May 19, 2008 at 5:22 am
Can you explain me about Hidden RBAR or Triangular Join ? I have studied your article 'Triangular Join'. After that lot of doubts arises. Its like putting stone in a...
May 19, 2008 at 5:17 am
The way you use it - Yes, it can't use the index
This is OK
where col = @f+'g'
But this is not
where col+'g' = 'abcdefg'
If you use a function on a...
May 19, 2008 at 5:00 am
Thanks a lot Lynn Patel !
but realize that @FinalData will not reset to 1 when EmpNo changes
No, It has to reset for each employee. Also it has to rest for...
May 19, 2008 at 4:58 am
As you said if i subtract it from 13 it will give correct result. But assume if any month is missed in the sequence,out query will give wrong sequence. How...
May 19, 2008 at 4:50 am
Thanks Jeff for leading me in the right direction to lesson me about SET BASED concept and giving new ideas to me.Also my Thanks to rbarryyoung and Christopher for giving...
May 19, 2008 at 4:47 am
Hi Christopher,
Here time is 9:00 PM ,So i have planned to leave. Please do post your reply.
May 16, 2008 at 9:34 am
Have you tried using a table variable or derived table?
will it work out ?
May 16, 2008 at 9:05 am
Christoper,
sorry for not including, i am using Sql2000.
May 16, 2008 at 9:03 am
Christoper,
sorry for not including, i am using Sql2000.
May 16, 2008 at 9:00 am
Sorry! A little modification in the procedure.
Create procedure p1
(
@dt datetime,
@eno int
)
as
begin
Declare @eno int,@date datetime,@pdata decimal(5,8),@gdata decimal(5,8)
Declare @FinalData decimal(5,8), @FinalData1 decimal(5,8)
set @FinalData = 1,@FinalData1 = 1
Declare cursor c1
for select EmpNo,PerDate,PerformanceData,GrossData
from emp
for...
May 16, 2008 at 8:55 am
I want to update the below blank column by using the mentioned formula posted earlier.
EmpNo PerDate PerformanceData GrossData FinalData
1 ...
May 16, 2008 at 8:42 am
Viewing 15 posts - 676 through 690 (of 1,114 total)