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 

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

1 Expert Approved Answer
Step: 1 Unlock

heres an example of how you could create the vowelcnt function in SQL ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!