Viewing 15 posts - 1,501 through 1,515 (of 59,061 total)
@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
Fragmentation is my main area of interest and its my overriding concern. Of course, when I speak about fragmentation I'm really emphasizing it as my overarching concern.
Based on the...
April 17, 2023 at 7:11 pm
Exactly Jeff. But you didn't read down far enough 🙂
The current environment I'm in is pushing to move to datalake/databricks, but I actually don't know what problem we are...
April 17, 2023 at 7:04 pm
Viewing 15 posts - 1,501 through 1,515 (of 59,061 total)