Jump to content
Sign in to follow this  
bremer@uzmanibu.lv

Order by Month mit 0 wert

Recommended Posts

Mache folgende Abfrage

 

 

SELECT SUM ([Verkauf (MW)]) AS '2020' FROM [XXX$Debitor] inner JOIN [Fibu XXX$Debitorenposten] on Debitorennr_ = cast(Nr_ AS varchar)

WHERE Buchungsdatum BETWEEN '20200101' AND '20201231' AND Reisendencode = 'PKW XX' GROUP BY YEAR ([Fibu XXX$Debitorenposten].Buchungsdatum ) , MONTH ([Fibu XXX$Debitorenposten].Buchungsdatum )

ORDER BY MONTH ([Fibu XXX$Debitorenposten].Buchungsdatum ) ASC;

 

 

Dann bekomme ich folgendes zurück


2020
2052,17
2996,69
1895,97
768,68


Richtig wäre aber:


2020
2052,17
2996,69
0,00
1895,97
768,68

Wie bekomme ich das hin das wann keine Werten da sind 0,00 zurückgegeben wird?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

Werbepartner:



×
×
  • Create New...