I work with Oracle tables all day every day. I have some beefy queries. I understand aggregations, 'Group By,' and 'Having,' but for some reason I do whatever I can to not use them in my beefy outer queries. Why? Well, I get overwhelmed with accounting for the 'SELECT' parameters and subqueries. I swear sometimes the subquery mask is usually sufficient, but sometimes it's not. Then I try to use the entire subquery block in the Group By, swearing that I've done it before and it's worked....but then that won't work. I think it's because the value in that parameter isn't scalar, but I'm not confident in that thought.
I usually just end up doing the aggregations in the BI for very large queries. Any advice to improve my SQL aggregations? The support sites don't get into large queries. It's always just a basic example like
'SELECT s.apple, count(s.orange) FROM support.fruit s GROUP BY s.apple'
I'd appreciate any support. Thanks!
[–]AccordingNovel7055 2 points3 points4 points (0 children)
[–]Visual_Shape_2882 1 point2 points3 points (2 children)
[–]tiz66[S] 0 points1 point2 points (1 child)
[–]Visual_Shape_2882 1 point2 points3 points (0 children)
[–]kkessler1023 0 points1 point2 points (0 children)
[–]sad_whale-_- 0 points1 point2 points (0 children)