Viewing 15 posts - 3,211 through 3,225 (of 59,086 total)
Great question, Steve.
Another hint here is that there's nothing to guarantee the order within any given rank.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 11, 2022 at 10:54 pm
Can anyone think of any real life examples where you'd want to rank over something non-unique?
Heh... along with what the others posted, another possible answer is "Interview Question" 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
July 11, 2022 at 10:53 pm
Ok... that's roughly the same query you've posted two other times. It's not nice to cross post. Stick with one thread on something like this.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 10, 2022 at 6:26 pm
And why on Earth are you convert IDs to VARCHAR(MAX)?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 10, 2022 at 6:24 pm
So is it a text or image file or a combination or??? What kind of file is it?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 10, 2022 at 6:21 pm
Sorry for the confusion. Yes, as the data stands right now the entire column should be populated with an *. If the department column included 0001 and 0002, then...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 10, 2022 at 6:19 pm
Hi
I have data like below. Brands can be dynamic
Loc1 Brand Qty Value
Loc1 ...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 10, 2022 at 6:17 pm
Thanks for the feedback, Kenneth.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2022 at 3:50 am
Guess how my f$%^ing Saturday has started too.
You mean you set your alarm on to go off on a Saturday morning 😀 😀 😀
I won't bore you with how...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2022 at 3:47 am
I know little about SSIS but I'm sure there's a setting for the line terminators.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2022 at 3:42 am
As a bit of fun, I ran across this picture on LinkedIn about a week ago. I laughed so hard it hurt. 😀

--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2022 at 3:37 am
Great, thanks! That does the trick perfectly.
Be careful... it only works for a single instance on any one row. If there are two instances, it only takes care of...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2022 at 8:09 pm
I don't know... I don't work with anything having to do with Azure.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2022 at 7:55 pm
For 1, I tried a CTE to create a Month lookup table. No hardcoded string values
;WITH CTE_Months
AS
(
SELECT GETDATE() AS TheDate, LEFT(DATENAME(mm,GETDATE()),3) AS [MonthAbr],MONTH(GETDATE()) AS MonthOrder
UNION ALL
SELECT...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2022 at 7:45 pm
Passed the initial screening and now have a SQL interview. Dabbled with SQL for a few months now but there are a lot of resources that I can use...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 7, 2022 at 8:46 pm
Viewing 15 posts - 3,211 through 3,225 (of 59,086 total)