USE THE AdventureWorks2012 sample database to answer the questions

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

USE THE AdventureWorks2012 sample database to answer the questions

Post by answerhappygod »

USE THE AdventureWorks2012 sample database to answer the questions
Use The Adventureworks2012 Sample Database To Answer The Questions 1
Use The Adventureworks2012 Sample Database To Answer The Questions 1 (75.74 KiB) Viewed 25 times
1. Create a user-defined function called dbo.fn_AddTwoNumbers that accepts two integer parameters. Return the value that is the sum of the two numbers. Test the function. (15 points) Results Messages (No column name) 13 2. Create a user-defined function called dbo. Trim that takes a VARCHAR(250) parameter. This function should trim off the spaces from both the beginning and the end of the string. Test the function. (15 points) Results Messages (No column name) 1 Test 3. Write a function called dbo.fn_FormatPhone that takes a string of ten numbers. The function will format the string into this phone number format: "(###) ###-####." Test the function. (15 points) Results Messages (No column name) (555) 555-1234 1
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply