Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Old Forums
 CLOSED - General SQL Server
 stored procedure

Author  Topic 

shohan_db
Starting Member

36 Posts

Posted - 2006-11-16 : 05:40:10
I want to make a simple Account report.

Format will as follows

Customer ID: 101

Date Reference Debit tk Credit tk
1/9/06 Invoice 500
1/9/06 Money receipt 200
3/9/06 Invoice 100
4/9/06 Money receipt 4000


There are two tables in my Database

InvoiceInfo and MRInfo

InvoiceInfo
InvoiceDate
Reference
Amount

MRInfo
MRDate
Reference
NetAmount

the Date Field will fill by either InvoiceDate or MRDate and
Amount field of Invoiceinfo table will execute in Debit tk field.
NetAmount field of MRInfo table will execute in Credit tk field.

I want to use a Stored procedure in SQL SERVER.
What will be the query?


Thanks
Mainur



shohan

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-11-16 : 05:49:18
duplicate of http://sqlteam.com/forums/topic.asp?TOPIC_ID=75035

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-11-16 : 05:50:38
Shohan, when will you ever learn!?
DO NOT POST SAME PROBLEM MORE THAN ONCE! YOU ONLY MAKE PEOPLE ANGRY!

The most possible result is that you get no help at all! Post just once, please...

Almost every problem you post and ask for help is double or triple posting. DO NOT DO THIS!


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-11-16 : 05:57:17
Continue this discussion here http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=75035


Peter Larsson
Helsingborg, Sweden

Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -