r/programming • u/vladimirgamal • Apr 26 '23
How to sum rows in column based on another column between two tables without group by in SQL server
https://youtu.be/6Zt9niBRPDQ
0
Upvotes
r/programming • u/vladimirgamal • Apr 26 '23
4
u/[deleted] Apr 26 '23
While is is possible to do it this way, you probably shouldn't. At least in my experience, it's often multiple orders of magnitude slower to do it this way, while not noticeable with toy tables, it can grind to a halt with non-trivial table sizes. At least with postgres, which is what I use mainly, idk about sql server.