KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Example: SELECT (SELECT SUM(...) FROM ...) as turnover, (SELECT SUM(...) FROM ...) as cost, turnover - cost as profit Sure this is invalid (at least in Postgres) but how to achieve the same in a query without rewriting the sub-query twice?
Tags (comma-separated)
Save Edits
Cancel