Viewing 15 posts - 3,781 through 3,795 (of 59,087 total)
If you store times as integers, it makes life much easier if you have a time table containing all the formats you need, however, if you need to just...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 17, 2022 at 8:57 pm
Congrats, Jeff. Quite an achievement. I used to try and keep ahead, but haven't bothered.
Now I wonder where I get to 1mm first. Here or in miles flown. At...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 17, 2022 at 12:52 am
Stop and think about what a LEFT OUTER JOIN is.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 8:27 pm
Like I said, a Left Outer join on the pertinent columns.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 6:32 pm
Just like to say congratulations to Jeff for reaching 1 million points:
Thank you, kind Sir and thank you and all the denizens of this fine forum...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 6:16 pm
You've got it pretty well mapped out. Like I said, pick the table that has the the primary unique information in it an left join to that to form your...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 6:07 pm
Thanks for the screen shot and the very kind words. I aim to please... I sometimes miss but I'm always aimin'. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 6:02 pm
Heh... I haven't been watching but, now that you brought it up and in honor of your great code, here's # 1 million. 😀
It'll take the site software about 20...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 5:04 pm
I found my answer on this. Thanks
Would you mind sharing what you found to be the answer, please?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 4:18 pm
Please assist? I would like to model this data(https://docs.google.com/spreadsheets/d/1-9x4ean4QleYODvu8GsAsgm8OKVjABeM/edit?usp=sharing&ouid=104129043494164133703&rtpof=true&sd=true) for Bigquery as much as possible in a denormalized data model. Bigquery favours denormalized data models. I am busing creating...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 4:16 pm
In a CTE you could select the date difference between the CreatedDate and the LEAD(CreatedDated, 1, default) where the default is the current month (+1 to deal with boundary...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 4:08 pm
A large part of the reason why I've worked as an FTE for the same company for more than a decade is because I knew the person in charge of...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 3:01 pm
p.s. Nice content on the ZIP file. The Actual Execution plan shows the result of the NON-SARGable query perfectly... a HASH MATCH to join a 5 million row table with...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 2:41 pm
Heh... lordy. Here's the rowcount you posted for the query in question...
(10343197 row(s) affected)
And here's the WHERE clause from the code you posted...
WHERE C_MT_B_COMM_TO_PTY.PARTY_TYP_CD +...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 16, 2022 at 2:35 pm
BWAAA-HAAAA-HAAA!!! You chose the "handle" of "sqlguru"... shouldn't you be telling us how to do this? 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2022 at 6:11 pm
Viewing 15 posts - 3,781 through 3,795 (of 59,087 total)