First of all I want to say that I'm totally new to SQL Programming so I hope you won't laugh too hard when you see the code I wrote :p.
Well I'm curently trying to program for a Microsoft SQL 2005 Server.
And I hope I did it good but I have a little problem with the WHERE function because I assume that the rest of the code is correct(please correct me if I'm wrong:p).
I'm trying to make a view of a current existing database by the way.
Well what my WHERE Function has to do is the following. when I send someone a bill on 9-03-09 than the customer has 30 days to pay. so at 8-04-09 they have to pay. now I want to get a mail every 5 days with the bills that the people didn't pay yet.
Well here it is I hope you understand it.
CREATE VIEW Open_Fact AS SELECT DebNr, ZName, FROM FRKRG SELECT Price FROM FRXRG SELECT OldDays FROM "?" WHERE OldDays = (OldDays >= 30 AND OldDays <= 35);
So at the WHERE it must give a notification of the bills who are between the 30 and 35 days old.
Thanks In Advance!
//SterAllures
P.S. Do I also have the inner join of the multiple tables correct(tables: FRKRG, FRXRG)


Sign In
Create Account


Back to top










