Viewing 15 posts - 48,616 through 48,630 (of 59,102 total)
If the clustered key is set by date or, perhaps, identity and the identity column is indicative of entry order, then sectional deletes (or insert to archive, delete from source)...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2008 at 10:19 pm
Agh! My bad... I didn't read the original post as well as I should have. Throwing in a partitioned row number along with the a method similar to...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2008 at 10:15 pm
sandeep kumar (8/25/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2008 at 9:54 pm
Carl Federl (8/25/2008)
This application is running under SQL Server 2000 and the analysis consisted of...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2008 at 9:49 pm
skenzie (8/25/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2008 at 9:47 pm
Amit Khanna (8/25/2008)
WITH C_TEMP AS
(
SELECT T.num,T.OP_Bal,T.quantity,T.OP_Bal + T.quantity AS Closing_Bal
FROM #Temps T
WHERE T.num...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2008 at 9:23 pm
aneeshvarghes (8/24/2008)
I want the count each day seperately
Still doesn't tell me a thing... like I said, tell us exactly what you want by giving us an example of the inputs...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2008 at 9:21 pm
dphillips (8/25/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2008 at 9:19 pm
pakaw_man (8/24/2008)
please help me solve this problem:
I'm off to bed just now... but I have a suggestion for you... start your own thread for this problem. It'll get more...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2008 at 11:41 pm
KB (8/21/2008)
The execution plan for my original query and the derived table query is exactly the same with 50%-50% cost.
Ummmm.... never trust the "cost" of a batch in the...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2008 at 11:39 pm
DECLARE @Table TABLE(TimeNumber INT)
INSERT INTO @Table
SELECT '131000'
UNION
SELECT '220000'
UNION
SELECT '230000'
...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2008 at 11:25 pm
... and, if that's not the right answer, then tell us exactly what you want by giving us an example of the inputs provided and a printout of what you'd...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2008 at 11:09 pm
Mukti (8/22/2008)
CREATE Function DaysBetweenDates
(
@FromDate smalldatetime,
@ToDate smalldatetime
)
RETURNS varchar(4000)
AS
BEGIN
DECLARE
@DaysInBetween varchar(4000)
SET...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2008 at 11:06 pm
You bet, Mishaluba! Thanks for the compliment! 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2008 at 10:52 pm
LMAO! You must love them almost as much as me! 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2008 at 7:17 pm
Viewing 15 posts - 48,616 through 48,630 (of 59,102 total)