Skip to content
Advertisement

How to add results of two select commands in same query

I currently have two select commands as per below. What I would like to do is to add the results together in the SQL query rather than the variables in code.

Is it possible to have both in the same SQL and output a sum of both results?

Advertisement

Answer

Yes. It is possible :D

As a sidenote, the tablename projects-time must be delimited to avoid syntax error. Delimiter symbols vary on RDBMS you are using.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement