Viewing 15 posts - 10,651 through 10,665 (of 59,099 total)
Thanks, Frederico. Time for some play.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 11:30 am
Can we see the code you used to generate the test data? My concern is that it may have a cardinality of "1" and that can lead to some pretty...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 10:48 am
Back to the subject of "switching", I've found that there are several hidden costs to making such switches. The single greatest loss (IMHO) is "Lost Learning" and the "art" of...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 10:04 am
declare @tbl table
( juldate decimal(18, 0)
...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 9:53 am
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 9:40 am
p.s. If you don't understand the code and how it does what it does, post back. You're the one that will have to support the code.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 9:27 am
This should do it for you
--===== Create a sample using variables.
DECLARE @OrderDate NUMERIC(18,0) = 118063
,@OrderTime FLOAT = 11456
;
--===== This solves for...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 9:23 am
K. I'm on it. Back in a few.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 9:13 am
OrderDate: Sample Data: 118063 and data type is Numeric (18,0)
OrderTime: Sample Data: 11456 and...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 8:49 am
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 8:32 am
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 8:15 am
I believe you meant "not" rather than "now".
However, your first example is also non-deterministic. Here's the proof.
Create --Jeff Moden Change is inevitable... Change for the better is not.
RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
Helpful Links:
How to post code problems
How to Post Performance Problems
Create a Tally Function (fnTally)
November 10, 2018 at 8:00 am
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 7:52 am
p.s. You should write an article on it.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 7:48 am
Very cool stuff, Eddie. Added that to my briefcase. Thanks for taking the time to do the experiment and post the results and the explanation!
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2018 at 7:48 am
Viewing 15 posts - 10,651 through 10,665 (of 59,099 total)