u/DMReader
-
3points
-
0points
Before writing SQL in an interview, what would you clarify? (self.SQL) [Discussion]
DMReader
DMReader
I thought you were joking. I’m definitely entertainined. It made my day. Take my upvote
DMReader
I’m in the mission and they told me on Friday they would do work on Monday. Then yesterday they let me know it will be today too.
Hopefully ends soon
DMReader
Finally someone is asking the real questions!
DMReader
Jesus is the name of Grok’s latest model.
DMReader
It was around the same time for me. Lots of complaints about the Woke that got repetitive and also always congratulating himself about how he calls out both sides and guests seemed to also get in on the congratulations.
DMReader
Fruit juice
DMReader
Maybe. I see a lot of comments about how X future is already determined because AI and I think it’s giving up our agency. That’s what I’m trying to push back against.
DMReader
But that isn’t the tech doing it to us. We are doing it to ourselves by choosing to develop in a reckless manner.
DMReader
Is it a guaranteed 6%? Is it steady at 6%.
If do it might be worth an allocation but not all in.
DMReader
I don’t think it is the tech itself that make utopia, dystopia, etc-topia. It is what we do with it.
We keep giving our agency to a technology or its creators but ultimately it is as a society how we decide.
DMReader
And there is no off leash dogs allowed ! I once saw an off leash dog there! It pooped on everyone and I was terrified.
Luckily my therapist has an office near the Cantina.
DMReader
I walk there all the time and I think it’s great. I’m more focused on what I see on my walk then on the state of crosswalks.
Haven’t been run over yet.
DMReader
Great name!
DMReader
Unfortunately the answer is going to be an it depends.
It looks like the solution above uses a left join so in the new/ churned accounts example I described above you are leaving out one side of that.
I’ve used Ai both at work to help with development as well as for my website and I find it can be good at giving an answer if it has all the context but context can sometimes be very nuanced.
My recommendation for you would be to get some kind of editor with data behind it take the solutions the AI gives you and try to find scenarios where that doesn’t work. You can also press the AI for any caveats it may have or scenarios where another solution would be better , but I find it’s best to actually see it work or not for yourself and try to figure out why that is happening.
DMReader
Lead and lag can work, but if you want to see differences where an account or something open or closed and therefore might not be in the data from one year to the next then I would recommend a full outer join on the table self join and when you do the difference between date a and date b be sure to use coalesce or ifnull to get a zero for the missing row.
That kind of scenario is something that could be in an interview gotcha and it also frequently comes in real day to day work.
DMReader
That was only the beginning of the day. It got larger.
I was also in the ! Which was off to the side and not in the video
DMReader
Sorry to hear it.
DMReader
I still do some free hand coding and it also helps reading it when debugging but more and more I’m handing it off. I’m still working a lot on verification of results.
DMReader
I agree. I've shot myself in the foot on Null and other edge cases too many times to count.
DMReader
So it seems you are running with how you might make that into a deliverable data project rather than narrowly answering the SQL question.
DMReader
Good approach!
DMReader
Good luck. I know it’s tough out there.
Quit!