Create a function called fn_VendorAddress that gets a VendorName passed in, and returns a Varchar out. [Vendors
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a function called fn_VendorAddress that gets a VendorName passed in, and returns a Varchar out. [Vendors table]
The function should return the full address of the vendor as a return parameter. The full address should be VendorAddress1, VendorAddress2 (if it has a value), VendorCity, VendorState, VendorZipCode:
So PO Box 96621, Washington DC, 20090 for VendorName: National Information Data CTR.
Create a script that tests your function with Vendors that have a value for VendorAddress2 and Vendor's that don't have a value for VendorAddress2
Related Book For
Accounting Information Systems
ISBN: 978-1133935940
10th edition
Authors: Ulric J. Gelinas, Richard B. Dull
Posted Date: