שאלה
רשמתי את השאילתא הזאת
ומופיע לי הודעת שגיאה Incorrect syntax near 'MINUS' .
לא הצלחתי להבין למה מופיע השגיאה
אשמח לעזרה
רשמתי את השאילתא הזאת
select sum(amount)/12
from Table_1
where type = 1
group by DATEPART ( month , date )
MINUS
select max(amount)
from Table_1
where type = 1
group by DATEPART ( month , date )
minus
select min(amount)
from Table_1
where type = 1
group by DATEPART ( month , date )
from Table_1
where type = 1
group by DATEPART ( month , date )
MINUS
select max(amount)
from Table_1
where type = 1
group by DATEPART ( month , date )
minus
select min(amount)
from Table_1
where type = 1
group by DATEPART ( month , date )
ומופיע לי הודעת שגיאה Incorrect syntax near 'MINUS' .
לא הצלחתי להבין למה מופיע השגיאה
אשמח לעזרה