Question
1a.Write a user-defined function called f_concat that combines the any two varchars @a and @b together with a one-character @sep in between. b. Now create
1a.Write a user-defined function called f_concat that combines the any two varchars @a and @b together with a one-character @sep in between.
b. Now create a view called v_students that displays the student_id, student name (first last), student name (last, first), GPA, and name of major. You should call the function you created in 2.a. After you create the view, execute it with a SELECT statement.
Make sure your screen shot captures all up/down code in 2.a AND another screen shot captures 2.b, along with the output of the SELECT statement on the view (first few rows is fine).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started