Viewing 15 posts - 946 through 960 (of 59,072 total)
You need to send an email to webmaster@sqlservercentral.com to get this fixed more expeditiously because they don't typically monitor this particular forum and I'm pretty sure they don't have actual...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2023 at 9:16 pm
Thank you Jeff. 44.9% or 31%? Either way there's no implicit type conversion 🙂
Ken McKelvey's solution in the "Pivot with grouping intervals" topic is interesting. It cross join's a...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2023 at 9:00 pm
You could test if the modulo .1 of HRS equals zero
;WITH cte_data AS (
SELECT CAST(50.10 AS numeric(5, 2)) AS HRS
...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 18, 2023 at 9:32 pm
Nearly duplicate post with an incorrect improvement calculation removed.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 18, 2023 at 9:31 pm
Very interesting to think of how differently this concept can be thought about 6 years later than it was originally published. Since then the fact that people use data...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 16, 2023 at 12:17 am
Try installing the table valued function here: https://www.sqlservercentral.com/scripts/a-daterange-table-valued-function
Then to select 15 minute intervals as in your example:
SELECT Value
FROM dbo.DateRange('1900-01-01 00:00', '1900-01-01...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 16, 2023 at 12:12 am
With all the automatic query tuning stuff they did in 2022, who knows how the optimizer estimates things now?
It'll be interesting if anyone shows up that actually knows.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2023 at 3:41 am
It is joined on the Account numbers, which appears in the table multiple times. Problem is the Unique Primary Key is then mapped to these Account numbers multiple times.
So...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2023 at 2:52 am
We "talked" on LinkedIn. I provided a link to "BULK INSERT" and introduced "BatchSize" and "Tablock" to you. You also found "Example f.", which is about how to do things...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 13, 2023 at 4:13 pm
I have to admit, I'm totally amazed about the number of people that participate on the QoD and on Polls on linked in.
I'm also amazed at the number of wrong...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 13, 2023 at 3:48 pm
This minor change (IIRC)...
BULK INSERT OSPRetail.dbo.DimProduct5
FROM 'C:\Users\User\Downloads\data feed.csv'
WITH ( FORMAT = 'CSV',
FIELDTERMINATOR = ',',
ROWTERMINATOR = 0X0A);
Also, read up a bit on the BULK INSERT and learn the...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 13, 2023 at 2:53 am
Its managed SQL Server Business critical, with the latest version, and MS automated management of Log file.
The issue here is there is purge and archival of data creating lots...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2023 at 1:00 pm
If it was included then yes. Sorry, this is a different data set I put together. But the idea, process, and everything about the data is very similar.
Please...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2023 at 12:36 pm
I have a large SQL database with millions of records, and I've identified duplicate entries. What's the most efficient way to find and remove these duplicates without compromising database...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2023 at 12:28 pm
Thanks, Jeff. I made the assumption that the OP did not have a table 'TBL' containing a single column 'COLUMN1' and therefore that the addition of a suitable PK...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 10, 2023 at 12:16 pm
Viewing 15 posts - 946 through 960 (of 59,072 total)