Viewing 15 posts - 1,516 through 1,530 (of 59,065 total)
Here is a different approach.
Niiiicccceee! I'm going to do some performance tests there because, although it's not a super common request, it's a request that has happened often enough...
April 25, 2023 at 6:02 pm
The prompt was based on minimal code
this sql code omits a 2nd column with which we could order the rows. Could you add a date...
April 25, 2023 at 2:41 am
@richard-2... this is one of the problems with not providing data in a readily consumable test table... everyone make up their own mind as to what the column names and...
April 25, 2023 at 2:39 am
I think the way to do this is to eliminate dupes while maintaining the order. Then the Lead/Lag comparison of the difference between the previous point goes from positive and...
April 25, 2023 at 12:35 am
p.s. I'm thinking that your good shot at it needs (as you imply) a little tweaking. Try using the following data and see what I mean...
from (values (3),(10),(9),(8),(8),(8),(11),(12),(13),(12),(11),(6),(3),(2)) v(n)
Results:
April 25, 2023 at 12:24 am
Thanks ChatGPT for fixing the data.
interesting. What prompt did you use for that, Steve? I'm always curious.
April 25, 2023 at 12:14 am
While answer 3 may meet the overt requirements, it' returns the following "extra" info in the presence of NULL values, as well.
Warning: Null value is eliminated by...
April 24, 2023 at 3:07 pm
Sometimes having dates, or parts of dates, as integers work well. But not often. A dimension can make sense, but in most transactional tables, I think dates ought to...
April 22, 2023 at 12:44 am
Calendar and Clock tables make life a lot easier when used as part of a Dimensional model. Especially if it is implemented in a column store.
If you've seen the...
April 22, 2023 at 12:43 am
p.s. You should also post the CREATE TABLE code for the table, its keys, and the indexes so we can see if you have possibilities going on such as "Trapped...
April 19, 2023 at 5:41 pm
My first bit of advice on this is to move all but the last 13 months of data to an "Archive" database for the current database. Keep it in the...
April 19, 2023 at 5:24 pm
As a bit of a sidebar...
Even when GETDATE() was really the only show in town, I've never understood the propensity of people to make the terrible mistake of using DATE_IDs...
April 19, 2023 at 5:12 pm
Regarding your concern about the potential for outsourcing to cheaper labor markets, I think it's a valid concern.
(ppts)
Please identify where in the article or this conversation where that...
April 19, 2023 at 5:03 pm
Great question and even better explanation, Thomas. Nicely done.
April 19, 2023 at 3:33 pm
I never had any exposure to SQL Server 2000, but my Google-Fu tells me you'll need to use DBCC SHOWCONTIG (see SQL SERVER – Comparison Index Fragmentation,...
April 18, 2023 at 10:03 pm
Viewing 15 posts - 1,516 through 1,530 (of 59,065 total)