MSSQL Stored Procedures

5 pts.
Tags:
SQL
SQL Server
Stored Procedures
So im in my first year as a programming student and im stumped on a database i need to go alongside its stored procedures. Sorry beforehand if my english isnt that great,its not my native language.Anyways the database(tables) goes like this: Customers(CID,Name,LastName,Telephone) CID being the key. Plans(PID,CID,Descryption)CID being the key. DebitMovements(DMID,PID,Date,Amount)DMID and PID being keys. CreditMovements(CRID,CID,Date,Amount) CRID and CID being keys. So i need to do reports for amounts due at 30,60 and 90 days in 3 phases. phase 1: Generate a report for the total amounts at 30 days,60 days and 90 days.So report would go something like this: 0-30 31-60 61-90 90+ 23,000 12,873 42,000 100 phase 2: Generate a report with the clients grouped up in the ranks defined.Example: 0-30 31-60 61-90 90 client1 client4 client5 c6 client2 client3 phase3: Report a client list with their respective amounts.Example: 0-30 31-60 61-90 90+ c1 0.00 34.00 12,000 0.00 c2 0.00 12,000 0.00 0.00 So i need to do all this on stored procedures.Truth be told im stumped and i have to hand this in on Wednesday :( Im desperate please help.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: