Create a stored procedure, called sp_customer, that takes in a CustomerID as a parameter, and then returns
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a stored procedure, called sp_customer, that takes in a CustomerID as a parameter, and then returns a select statement that shows the full name of the customer, the full name of the employee that does the transaction, the name/code of the branch where the transaction was done, the transaction type (Deposit, or Withdrawal), and the amount of the transaction. The columns returned should be cust_full_name, emp_full_name, location, transaction_type, amount, customer_id.
Transcribed Image Text:
File + CIS435LProject Object Explorer Connect Edit View Query Project Tools Window Help New Query MX DAX + AP AP AllObjects BCIS435LProject Ch MSSQL19CVD48 (SQL Server 15.0.4280sa) B Databases HH + + + System Databases Database Snapshots AdventureWorks2019 Ready + + Database Diagrams Tables System Tables FileTables External Tables Graph Tables WBank.AccountType + WBank.CheckCashing + WBank.Customers WBank.Deposits WBank.Employees WBank.Locations WBank.Withdrawals + Views External Resources Synonyms Programmability Service Broker Storage Security Examples L_LUNCHES MyGuitarShop ProductOrders Unit1 Security Server Objects ▾ Replication PolyBase Management XEvent Profiler Type here to search ▷ Execute E ✓@@@ 150 % ▾ NDX X SQLQuery1.sql - MSS...5LProject (sa (61))* X --Question 6 CREATE PROCEDURE sp_customer Results Messages Ln 2 B CustomerID DateCreated 1 2 3 4 5 6 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 < 1 2 3 4 5 6 7 ✔Query executed successfully. Col 29 Hi 5: 2023-03-25 869162659 2023-03-25 370559552 2023-03-25 643822818 2023-03-25 659977268 2023-03-25 892939173 2023-03-25 117806973 2023-03-25 415997917 2023-03-25 185336973 2023-03-25 623432261 2023-03-25 794734636 2023-03-25 207568092 2023-03-25 2023-03-25 992477305 268306669 2023-03-25 2023-03-25 2023-03-25 ? 665677184 611997686 407095485 L Ch 29 1 2 3 1 2 3 1 2 3 Account Number Account TypeID FName Kaia Jamar Marc Jaydon Sierra Gary Lilliana Marquis LName: Flores Manning Carson Frye Marquez Madden Boone Hoover Jewel F Jadyn F Carson Dyer Yair Stokes M Keenan Mcpherson M Amav Marshall M Trenton Santiago M Hallie Clayton F Madalynn Guerrero F Y 1 2 3 1 2 3 1 D INS @ = Gender Address F M M M F M F M 2596 Murry Street 1262 Pearl Street 3489 Clover Drive 7190 Summit Street 4551 Bames Street 2209 Conifer Drive 514 Cambridge Drive 3067 Pine Garden Lane 806 Geraldine Lane 1426 Sundown Lane 3808 Murry Street 2946 Pearl Street 275 Clover Drive 808 Fordham Dr. 1471 Bames Street 9 Raccoon Run City Virginia Sacram Colorad District. Orlando Seattle Phoenix Atlanta New Yo Austin Virginia Sacram Colorad District Orlando Seattle MSSQL19CVD48 (15.0 RTM) sa (61) CIS435LProject 00:00:00 25 rows 2:36 PM > 2/20/2022 易 File + CIS435LProject Object Explorer Connect Edit View Query Project Tools Window Help New Query MX DAX + AP AP AllObjects BCIS435LProject Ch MSSQL19CVD48 (SQL Server 15.0.4280sa) B Databases HH + + + System Databases Database Snapshots AdventureWorks2019 Ready + + Database Diagrams Tables System Tables FileTables External Tables Graph Tables WBank.AccountType + WBank.CheckCashing + WBank.Customers WBank.Deposits WBank.Employees WBank.Locations WBank.Withdrawals + Views External Resources Synonyms Programmability Service Broker Storage Security Examples L_LUNCHES MyGuitarShop ProductOrders Unit1 Security Server Objects ▾ Replication PolyBase Management XEvent Profiler Type here to search ▷ Execute E ✓@@@ 150 % ▾ NDX X SQLQuery1.sql - MSS...5LProject (sa (61))* X --Question 6 CREATE PROCEDURE sp_customer Results Messages Ln 2 B CustomerID DateCreated 1 2 3 4 5 6 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 < 1 2 3 4 5 6 7 ✔Query executed successfully. Col 29 Hi 5: 2023-03-25 869162659 2023-03-25 370559552 2023-03-25 643822818 2023-03-25 659977268 2023-03-25 892939173 2023-03-25 117806973 2023-03-25 415997917 2023-03-25 185336973 2023-03-25 623432261 2023-03-25 794734636 2023-03-25 207568092 2023-03-25 2023-03-25 992477305 268306669 2023-03-25 2023-03-25 2023-03-25 ? 665677184 611997686 407095485 L Ch 29 1 2 3 1 2 3 1 2 3 Account Number Account TypeID FName Kaia Jamar Marc Jaydon Sierra Gary Lilliana Marquis LName: Flores Manning Carson Frye Marquez Madden Boone Hoover Jewel F Jadyn F Carson Dyer Yair Stokes M Keenan Mcpherson M Amav Marshall M Trenton Santiago M Hallie Clayton F Madalynn Guerrero F Y 1 2 3 1 2 3 1 D INS @ = Gender Address F M M M F M F M 2596 Murry Street 1262 Pearl Street 3489 Clover Drive 7190 Summit Street 4551 Bames Street 2209 Conifer Drive 514 Cambridge Drive 3067 Pine Garden Lane 806 Geraldine Lane 1426 Sundown Lane 3808 Murry Street 2946 Pearl Street 275 Clover Drive 808 Fordham Dr. 1471 Bames Street 9 Raccoon Run City Virginia Sacram Colorad District. Orlando Seattle Phoenix Atlanta New Yo Austin Virginia Sacram Colorad District Orlando Seattle MSSQL19CVD48 (15.0 RTM) sa (61) CIS435LProject 00:00:00 25 rows 2:36 PM > 2/20/2022 易
Expert Answer:
Answer rating: 100% (QA)
sql CREATE PROCEDURE spcustomer CustomerID INT AS BEGIN SELECT cfirstname clastname AS custfullname ... View the full answer
Related Book For
Fundamentals of Financial Accounting
ISBN: 978-1259269868
5th Canadian edition
Authors: Fred Phillips, Robert Libby, Patricia Libby, Brandy Mackintosh
Posted Date:
Students also viewed these databases questions
-
Students will progressively develop communication micro-skills and gain valuable feedback from their peers over the 12 week course. This feedback will be used to help students reflect on their...
-
How do cognitive-behavioral techniques, mindfulness practices, and resilience training contribute to the mitigation of stressors and the promotion of psychological well-being in high-pressure...
-
1)Create a view, called vw_Customers, that shows all the customers (Full name in one column, Account Number, and Type of Account they have, and their current balance). Have the columns returned be...
-
Tom Lamont, age 30, and Lin Lamont, age 31, have been married for six years. They got married right after Tom graduated from college. They have come to you for help in planning their financial...
-
An experiment was conducted to compare the filling capability of packaging equipment at two different wineries. Ten bottles of pinot noir from Ridgecrest Vineyards were randomly selected and...
-
Gold Nest Company of Guandong, China, makes birdcages for the South China market. The company sells its birdcages through an extensive network of street vendors who receive commissions on their...
-
In each of the following situations, indicate the statistical analysis you would conduct and the appropriate test or test statistic that should be used. a. Respondents in a survey of 1,000 households...
-
At the end of Kane Department Stores fiscal year on November 30, 2010, these accounts appeared in its adjusted trial balance. Freight-in .................. $ 5,060 Merchandise Inventory (beginning)...
-
The FAR and the UCC are very similar in their general precepts but can differ greatly in the details. The FAR places additional requirements on US Federal Government Agencies spending taxpayer...
-
For the plane trusses supported by the spring at node 1 in Figure P3-33 (a) and (b), determine the nodal displacements and the stresses in each element. Let E = 210 GPa and A 5.0 10-4 m2 for both...
-
If B = (4 x. 20 + 2x 5x, 54 + 4x 13x ) is a basis for P. The coordinate vector of p(x) = 42 + 4x - 11x rolative to the basis B is [pls =
-
these two seem like two questions but it's just one big question. Guidance Corp is preparing its Master Budget for 20XX. You need to prepare Guidance's Direct Materials Budget and Schedule of Cash...
-
Suppose you are advised to use the following risk metric V, which one may name Median Shortfall: P(R -V|R
-
(Oct 1) Lopez invested $75,000 cash, a $25,000 computer system, and $10,000 of office equipment in the business in exchange for its common stock (Oct 2) Paid $3,500 cash for four months rent (Oct 3)...
-
Complete the table given below Bridgeport Bridgeport started his own consulting firm, Bridgeport Consulting, on June 1, 2022. The trial balance at June 30 is as follows. Cash BRIDGEPORT...
-
Prepare an Excel spreadsheet with a budget for Cupcakes-Palooza Inc. for 2023 using the assumptions below. Your assignment will be to produce a spreadsheet with the sales, expenses, and net income...
-
C# Server: 1) Provide a short program that will accomplish thefollowing: a. Open port 82 - UDP b. Open Port 83 - TCP Client: 2) Provide the user with a choice of displaying image or video withthe...
-
For liquid water the isothermal compressibility is given by; where r and b are functions of temperature only. If 1 kg of water is compressed isothermally and reversibly from I to 500 bar at 60(C. how...
-
The following accounts are taken from Buck Up! Inc., a company that specializes in horse-breaking services and rodeo lessons, at December 31, 2017. Required: Using the unadjusted trial balance...
-
The following is a list of account titles and amounts (in thousands) reported at December 31, 2017, by Megans Veterinary Clinic: Required: 1. Prepare the asset section of a classified balance sheet...
-
Great Canadian Oilchange (GCO) sells a package that combines oil change service with a parts package for $30. A customer who supplies the parts (oil and filter) is charged $20 for the service only,...
-
Midwest Energy Group has issued preferred stocks ($10 par value) that pay 8 percent dividend annually. If the required rate of return is 15 percent, what is the value of the stock?
-
You are considering an investment in one of the preferred stocks of either Longines Watch Company or Titoni Watch Company. Longiness preferred stock pays an annual dividend of \($2.73,\) while that...
-
Calculate the value of Swatchs preferred stock that pays a dividend of $8 per share if your required rate of return is 14 percent.
Study smarter with the SolutionInn App