Viewing 15 posts - 1,501 through 1,515 (of 59,066 total)
You could also try sjones@sqlservercentral.com (Steve Jones...the editor).
April 27, 2023 at 5:24 pm
Contact WebMaster@SQLServerCentral.com and let them know. They sometimes miss things.
April 26, 2023 at 8:35 pm
Sorry for my slow reply.
I created the user from login. At the server and database level they are only in the public role and I can't see anything relevant...
April 26, 2023 at 8:32 pm
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
Viewing 15 posts - 1,501 through 1,515 (of 59,066 total)