Question: Create a new function called vowel_cnt which will take multiple NAME values as input and count the number of vowels (only count A, a,
Create a new function called vowel_cnt which will take multiple NAME values as input and count the number of vowels (only count "A", "a", "E", "e", "1", "1", "O", "o", "U", "u"). This is a multi-row function. The function needs to be called on the NAME column or JOB column - for instance: SELECT vowel_cnt(NAME) from STAFF-or- SELECT vowel_cnt(JOB) from STAFF. WHAT TO HAND IN: A copy of your function code-and-output showing a couple of examples of the function working on each of the columns. Make sure to test when there are no rows in the result set - you can use the WHERE clause for this.
Step by Step Solution
There are 3 Steps involved in it
heres an example of how you could create the vowelcnt function in SQL ... View full answer
Get step-by-step solutions from verified subject matter experts
