I posted a quested yesterday which was answered very well by Gordon Linoff.
Basically I was using MySQL and needed to remove a where statement because it was affecting all columns when that's not what was needed, conditional aggregation was my answer which worked with MySQL.
The query was as follows:
select 
    sum(amount) as `total amount for all items sold`,
    count(amount) as `Total items sold`,
    sum(sale_made between '2018-07-02' and '2018-07-05') as `half total days`
from
    sales; 
Again, this worked perfectly in MySQL but with SQL Server 2017, I get an error here '2018-07-05') 
 
     
     
    