Viewing 15 posts - 5,206 through 5,220 (of 59,089 total)
Never mind. I'll just assume that ties for first need to be displayed.
WITH cteCount AS
(--==== Do the math, which seriously reduces the rowcount...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2021 at 2:12 am
Hi ! i got a task where i am to post only the Reshnum of the Department with the highest count of admissions. there are two tables relevant to...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2021 at 1:02 am
You have been working with SQL Server for at least 12 years and 8 months according to your profile. With that, you should know what I'm going to say... it's...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2021 at 12:11 am
I like the Dog Mode having a big sign on the display and the temp setting. We'd certainly use that with our pups.
I'm torn with a lot of the...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 1, 2021 at 6:12 pm
That "dog mode" feature is interesting, but even then I don't think it will necessarily prevent your vehicle from attracting unnecessary attention. I have tethered my dog to a...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 1, 2021 at 2:44 pm
I just don't know enough about the data nor what the rules being following for which prices to use are. I also suggested that you'll need to add the extra...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 1, 2021 at 2:21 pm
Yes sorry typo when I pasted.
and d.Prod_Line in ('xx87;)
Any help on how I and where I add the extra criteria?
Thanks.
My question is ... is that the only error that...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 31, 2021 at 6:58 pm
Hi guys, I have found this resource for interview preparation https://artoftesting.com/sql-queries-for-interview
Lordy... not another one... 🙁 Jumping straight to the final two questions in the "experienced" section...
Without loading it into...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 31, 2021 at 5:15 pm
It'll be interesting when someone realizes the mistake they made my omitting the parentheses from the "decimal" notations and either includes them in the future or decides to remove them...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 31, 2021 at 12:49 am
To be honest, I'd love to go back to the good ol' days where the closest thing to a computer in a car was intermittent wipers and cruise control. It...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 31, 2021 at 12:26 am
Like Granny used to say, "Mind the pennies and the dollars will take care of themselves". 😀
In this case, I'd concentrate on the tables that need to be PITted. The...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 31, 2021 at 12:13 am
If the last_access column is null then no reads or writes have occurred:
WITH cte AS (
SELECT database_id, dt, op
FROM sys.dm_db_index_usage_stats
UNPIVOT (dt for op in (last_user_lookup,...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 30, 2021 at 11:54 pm
The table does not have an index that I can use to speed up the join
This is why I previously posted what I did. There are sometimes "tricks" that...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 30, 2021 at 11:42 pm
I suppose you could use a Factless Fact Table as a "bridge" or "join" table for this type of thing but what I recommend is paying real close attention to...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 30, 2021 at 11:25 pm
You do realize that you're missing a single-quote in that, right?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 30, 2021 at 4:44 pm
Viewing 15 posts - 5,206 through 5,220 (of 59,089 total)