Viewing 15 posts - 1 through 15 (of 10,144 total)
This looks extremely similar to a garment stock control system I spent a couple of years working on, some time ago. It makes more sense if the “Inventory” table is...
July 6, 2021 at 8:18 am
"I can also confirm that both of these properties have been available since at least 2016. I did have to check to make sure. I don't have any instances earlier...
July 6, 2021 at 7:12 am
;WITH ReportMatrix AS (
SELECT d.[Year], x.[Month], d.[Site], d.[Account]
FROM (
SELECT [Year], [Site], [Account]
FROM #TestData
GROUP BY [Year], [Site], [Account]
) d
CROSS APPLY(VALUES ('01'),('02'),('03'),('04'),('05'),('06'),('07'),('08'),('09'),('10'),('11'),('12')) x ([Month])
)
SELECT m.[Year], m.[Month], m.[Site],...
June 29, 2021 at 7:07 am
Hi folks
I can't find anywhere else to ask this, so here it is. SQL Server 2017 Standard Edition is restricted to 24 cores. Does this mean...
April 16, 2021 at 7:26 pm
Hi folks
I can't find anywhere else to ask this, so here it is.
SQL Server 2017 Standard Edition is restricted to 24 cores. Does this mean that the licencing cost is...
April 1, 2021 at 12:16 pm
Happy New Year, Threadizens.
It's been ages since I had enough time to visit here and actually post something, and I wasn't sure if I'd have time today but there were...
January 12, 2021 at 12:16 pm
I am looking for an example on how to query several tables, around 50 tables, to find all unique records between them. I cant find anything other than a...
September 4, 2020 at 6:39 am
Here's exactly what I meant by using Paul White's method to grab the first column values only, then using that result set as the source for further processing. The first...
September 3, 2020 at 7:17 am
I can understand SQL having to scan the table / index, but I don't see why SQL would need to do a sort. Btw, an asc index will...
September 3, 2020 at 6:49 am
Here's one way of obtaining the distinct first-column values without performing an index scan.
https://www.sqlservercentral.com/forums/topic/calculating-interest-query/page/4/#post-1244493
I'm looking at that, but it's not going well. I have three columns,...
September 2, 2020 at 1:47 pm
Here's one way of obtaining the distinct first-column values without performing an index scan.
https://www.sqlservercentral.com/forums/topic/calculating-interest-query/page/4/#post-1244493
September 2, 2020 at 1:08 pm
Oh yeah, I forgot about the filter. It's actually the same filter as is used in my original query, but I forgot to put it back in when testing...
September 2, 2020 at 1:00 pm
All the indexes show non-clustered. I'm sure I had a clustered index on this originally, but I've done a good bit of expermenting with this table, and probably forgot...
September 2, 2020 at 12:58 pm
That index is seriously wide, and filtered. It will only be used by queries which have the same filter.
What proportion of the table columns does it include?
What's the clustered index...
September 2, 2020 at 11:19 am
I think the optimiser doesn't use the index because there's no benefit in doing so. If you scale up the row count to something sensible and add a column to...
September 2, 2020 at 10:12 am
Viewing 15 posts - 1 through 15 (of 10,144 total)