Viewing 15 posts - 3,676 through 3,690 (of 6,036 total)
I don't see anything from "hist" table in SELECT list, so it must be either removed from query or INNER JOINed if it's used as a filter for transaction records.
bledu's...
August 7, 2007 at 4:30 pm
Boy, you better don't start.
You're not the first one who was trying... ![]()
No survivors so far. ![]()
You...
August 7, 2007 at 6:40 am
Would it be better to have 1 file per table?
set @cmd = 'sqlcmd -E -dWatauga_Test -SNV-DEVSQL1\DAPHNE -Q"exec SP_GENERATE_INSERTS '+@TAB_NAME+'" > "c:\' + @TAB_NAME + '.sql" '
Separate files will allow you...
August 6, 2007 at 9:46 pm
My 2 pence for Adam.
Datetime field does not have any format.
So, there is nothing to change.
In fact datetime is FLOAT value reflecting number of days (including fraction) passed since the...
August 6, 2007 at 6:48 pm
Yeah, Grant, it's really amazing.
Such a simple quiz brought so many unexpected points.
Case 1 do one thing, Case 2 do another, Case 1 and 2 combined, do a third.
Problem...
August 6, 2007 at 2:53 pm
There is also nothing wrong with inserting into #Table with IDENTITY column (with desired order of records) and returning result from that table.
In fact any of posted solutions creates temp...
August 6, 2007 at 2:32 pm
Jim,
check you flow.
Error in INSERT does not prevent execution of UPDATE.
Moreover, because your transaction is already rolled back either ROLLBACK or COMMIT will cause an error.
And I don't see where...
August 6, 2007 at 2:24 pm
> must've been that old donut I ate this morning
Mmmmm... Dooonut...
![]()
August 5, 2007 at 6:18 am
Jeff,
It seems you overcomplicated the last query.
This returns the same result:
SELECT t1.*
FROM #GdsSellPriceDet t1
LEFT JOIN #GdsSellPriceDet t2
...
August 4, 2007 at 4:05 pm
Where your post with CASE from previous page?
That one you were referencing when saying
"3. You were not exactly right about CASE." ?
Cheater always remain cheater.
August 4, 2007 at 3:44 pm
Can you define which row to be considered "first"?
There is no natural physical order of rows in tables.
August 4, 2007 at 5:17 am
Grant, I quoted you quiz and it made me reread you article.
You ruled out solution from Chris and did not realize that he just accurately implemented the logic you requested...
August 4, 2007 at 2:53 am
Your code does not implement the logic of query correctly.
If you cannot get it even after you've been pointed...
Sorry.
Write code that counts from 1 to 100 For each number evenly...
August 4, 2007 at 2:24 am
Viewing 15 posts - 3,676 through 3,690 (of 6,036 total)