Good time of day
Is it possible to combine the following queries into one query ?:
select SUM(PROFIT) as PROFIT from ARCHIVE where PROFIT > 0.0 and DATE_END_RATE between '13.01.2017' and '14.01.2017' With request
select SUM(PROFIT) as LOSS from ARCHIVE where PROFIT < 0.0 and DATE_END_RATE between '13.01.2017' and '14.01.2017' And
select * from ARCHIVE where DATE_END_RATE between '13.01.2017' and '14.01.2017' to immediately display all the entries in the ARCHIVE table, and also add two fields "PROFIT" and "LOSS" to it, in which to display the corresponding positive and negative amounts?
Thank you in advance