Viewing 15 posts - 50,326 through 50,340 (of 59,091 total)
Alright, Venki... you've given us just about nothing to go on... no table Create statement, no data, no column names... and your sample query of...
1st query:
select month, count(*) from ...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 24, 2008 at 9:04 am
Sorry about that... BitBucket's method for deleting dupes when an IDENTITY column is present is just as fast as what I posted. Here's his code "Modenized" for the test...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 7:37 pm
Jeff Moden (5/23/2008)
I'll crank out an example tonight...
Wow! I think I just figured out what to write about in an article!
Terry,
IF there's and IDENTITY column on the table...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 7:25 pm
tosscrosby (5/23/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 5:36 pm
True enough...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 5:34 pm
Matt Miller (5/23/2008)
Jeff Moden (5/23/2008)
Heh... just imagine me writing a book... 11 pages every 2 days... it would take an eon for me to write one. I don't know...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 5:28 pm
Peso (5/23/2008)
Even simpler
ALTER FUNCTION TruncDate
(
@InDate DATETIME
)
RETURNS DATETIME
AS
BEGIN
RETURN DATEDIFF(DAY, '19000101', @InDate)
END
Simple... yes. Clever... very....
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 5:24 pm
Rob Reid (5/23/2008)
I haven't done much work with views and I definitley don't need the data to...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 4:49 pm
Why not, indeed... that would be the way to go...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 3:29 pm
That's some of the best compliments I could hope for, Tom... someone adding this type of code to their library. Thanks!
If you haven't done so already, here's a recent...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 3:22 pm
ALZDBA (5/23/2008)
Jeff Moden (5/23/2008)
... or when parallism takes over. Even then, an Order By and a OPTION (MAXDOP1) will take care of that....
:ermm:
Just a little reminder of a nice...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 9:25 am
tosscrosby (5/23/2008)
Jeff Moden (4/29/2008)
SQL ORACLE (4/29/2008)
You cannot delete duplicates directly from a table unless you would like to delete rows, which are duplicated.Any bets? 😉
Jeff, I am not doubting your...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 9:00 am
And, I take it, line 153 is somewhere in the code you posted?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 8:55 am
Heh... nope... none of that... I don't even join it with a Tally Table to preserve the dates or anything... it just bubbled to the top on a simple text...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 8:54 am
Anirban Paul (5/23/2008)
Awesome one Jeff. Another bomb. I just wonder how much pain you take to write these articles? Excellent one. Keep it up......:)
Thanks for the great feedback and the...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 23, 2008 at 8:48 am
Viewing 15 posts - 50,326 through 50,340 (of 59,091 total)