Viewing 11 posts - 1,336 through 1,346 (of 1,346 total)
Yes. it worked.
Then along comes your manager and says, "Hey, we need to add a flag to indicate if a position is management or not and we need to add...
January 25, 2005 at 7:59 am
Search on sp_MSforeachdb for examples of iterating DB names.
January 24, 2005 at 9:56 pm
Select
ja.Name,
op1.PositionTitle As FirstChoice,
op2.PositionTitle As SecondChoice
From JobApplicants As ja
Inner Join OpenPositions As op1
On ( ja.fkFirstChoice = op1.pkPositionID )
Inner Join OpenPositions As op2
On ( ja.fkSecondChoice...
January 24, 2005 at 9:53 pm
Select HeaderID
From Header As h
Where HeaderID In (
Select HeaderID
From Detail
Where Item = 'X'
Group By HeaderID
Having Sum(Price) > 0
)
And Not Exists (
Select *
From...
January 24, 2005 at 4:43 pm
Seems over-complicated.
Why not take the raw captured data and use the built-in Sql Server REVERSE() string function instead of an external EXE ?
[Edit] If your design locks you into using...
January 24, 2005 at 3:05 pm
It is not possible to pass a table variable to a SP or UDF. It appears to be a case of the BOL documentation not being kept up to date...
January 24, 2005 at 2:09 pm
>>Could you or someone explain how this part of the update works?
It's a self-join that joins adjacent records in the sequence for each member.
"Where t1.Sequence = t2.Sequence - 1"
t1 is...
January 24, 2005 at 10:30 am
So, in cases where the gap is > 30 days, it is required to have certain records in the final temp table *twice* ?
January 21, 2005 at 6:02 pm
[Edit]
What would really clarify the problem is if you took the ROODVELDT data and explain exactly what you expect to see in the temp table for that member
January 21, 2005 at 5:35 pm
I would do this using a temporary table and a set-based operation rather than via cursors.
Create a table to apply a sequence number to the data:
Declare @Tbl Table (
Sequence int...
January 21, 2005 at 4:58 pm
Select BankNo,
Sum( Fee * Case Quarter When '2004Q1' then 1 Else 0 End ) As Qtr1_Fee,
Sum( Fee * Case Quarter When '2004Q2' then 1 Else 0 End...
January 21, 2005 at 12:28 pm
Viewing 11 posts - 1,336 through 1,346 (of 1,346 total)