Jeremy Carroll·Apr 11, 2024TSQL: find the highest paid employee per location and find min, max, and avg salary per location
Jeremy Carroll·Apr 3, 2024TSQL — Calculate Previous Year Revenue and YoY Revenue Change Using LAG()I got this one dumped on me sight unseen in a white-boarding session. In a hurry, I used YEAR() in the WHERE clause and tried using SUM()…
Jeremy Carroll·Apr 3, 2024TSQL — Calculate Bonus and Update Salary — Row vs. Set-Based OperationI was asked to write a row-based loop to update salaries after calculating a bonus. This isn’t rocket science, but it worth demonstrating…
Jeremy Carroll·Apr 2, 2024Awakening From the Meaning Crisis — Part 2 — Flow, Metaphor, Axial Revolution — John Vervaeke —…Books –
Jeremy Carroll·Apr 2, 2024Awakening from the Meaning Crisis — Part 1 — Introduction — John Vervaeke — My NotesBooks:
Jeremy Carroll·Mar 6, 2024IS (NOT) DISTINCT FROM vs ISNULL and COALESCE T-SQL 2022With ANSI_NULLS = ON by default, Column2 = NULL, for example, will always return an empty set. With ANSI_NULLS = OFF, Column2 = NULL will…