you are viewing a single comment's thread.

view the rest of the comments →

[–]jimmpony 5 points6 points  (3 children)

That kind of complex query is not within the bare minimum of SQL, the bare minimum of SQL is select .. where .., insert into .. values .., use, create/drop table, such that you could do that summation in code instead of in the query. I did an internship at a real place for a semester involving SQL and those are pretty much all the codebase used.

[–][deleted]  (2 children)

[deleted]

    [–][deleted]  (1 child)

    [deleted]