Hallo dear collegues,
I need help for a query.
I've already searched a little bit about the topic but nothing special the concerns what I'm really looking for.
I have this query:
SELECT loanNR, restcapital, eomonth(dateadd(mm,-1,getdate())) AS 'Restkapital in Vormonat'
FROM [dbo].[Loanplan]
FROM [dbo].[Loanplan]
This query delivers 3 columns, but i need only two columns.
I need the amount "restcapital" which is estimated at the end of the last month (eomonth).
Any suggestions?
Thanks in advance for the answer
Best regards
Johannes

Tamal MarickRank #4,584 · 336 reputationPosted Aug 6, 2019, 1:30 AM EDT
Giovanbattista Barra100 reputationPosted Aug 6, 2019, 1:44 AM EDT
Tamal MarickRank #4,584 · 336 reputationPosted Aug 6, 2019, 8:14 PM EDT