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
 SQL Server Development (2000)
 FUNCTION

Author  Topic 

noblemfd
Starting Member

38 Posts

Posted - 2012-02-07 : 17:07:32
I WANT TO USE MSSQL 2000 USER-DEFINED FUNCTION TO ACHIEVE THE GOAL BELOW. PLEASE HELP ME OUR, OR IS THERE ANY OTHER METHOD USING MSSQL 2000.
I HAVE A TABLE CALLED INVOICE WITH FOUR FIELDS NAMELY INVNUM, RECEIPTNUM, DATE, AMOUNT.


PRESENT STATE
INVNUM--> RECEIPTNUM--> DATE--> AMOUNT

1 -->000001/000002 -->11/02/2010 -->12,222.00/32,234.00
2
3 -->000003--> 21/09/2011--> 32,345.00


EXPECTED RESULT
INVNUM--> RECEIPTNUM--> DATE--> AMOUNT

1--> 000001--> 11/02/2010 -->12,222.00
1 -->000002--> 11/02/2010-- 32,234.00
2
3 -->000003 -->21/09/2011 -->32,345.00

Please kindly assist. Or do you know how I can use MSSQL FUNCTION to resolve it? I need it urgently.
Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-02-07 : 17:37:07
Duplicate, locking topic.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -