I yet again have another problem, The first time I started a thread here I was a real newB. I really hope I've
improved that because I did alot of research!
I now got access to a database, the sample database of Northwind that you can download from the microsoft site, just
to train.
The problem is similar to my other problem I had before with the between but I think I need somenthing else to
measure the outstanding invoices.
Problem: Well I want to check the outstanding invoices between 30 and 35 days.
Now I want to measure this with the current date at the time I request it so it's up-to-date everytime.
Well I got the following
SELECT i.CompanyName, i.InvoiceID, i.InvoiceDate FROM Invoice As i
Now I would like to see the outstanding days since the Invoice was made (Only in days not in time)
So I want somenthing Like This (It's wrong I know But just to give an idea hope you understand it)
WHEN Paydate >= Invoice Date
But Only When when the Difference of the PayDate and InvoiceDate are BETWEEN 30 AND 35 Days of the current date.
I really hope you guys can understand it! Hope to hear from you!
Thanks In Advance!
//SterAllures


Sign In
Create Account


Back to top










