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
 SQL Server 2000 Forums
 Transact-SQL (2000)
 stored procedure

Author  Topic 

shohan_db
Starting Member

36 Posts

Posted - 2006-11-16 : 05:44:20
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

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-11-16 : 05:47:00
Triple posting
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=75033
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=75034


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-11-16 : 05:48:03
You need to create a stored procedure after deciding what you are doing to do
Post your query we will teach you how to make use of stored procedure.
Also read about Stored procedures in sql server help file for basic informations

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:51:15
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

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-11-16 : 06:01:20
Instead of posting same problem twice or thrice, it would be more useful if you could describe your problem in more details and in simpler terms.



Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page
   

- Advertisement -