● Write a simple stored function that • Takes a gender as an input • Find the staff whose gender matches the input • Return the results • Write a simple stored procedure that Takes a gender as an input Find the staff whose gender matches the input • Print the results

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.2: Returning A Single Value
Problem 12E
icon
Related questions
Question
• Write a simple stored function that
Takes a gender as an input
●
Find the staff whose gender matches the input
Return the results
Write a simple stored procedure that
Takes a gender as an input
Find the staff whose gender matches the input
• Print the results
Transcribed Image Text:• Write a simple stored function that Takes a gender as an input ● Find the staff whose gender matches the input Return the results Write a simple stored procedure that Takes a gender as an input Find the staff whose gender matches the input • Print the results
[MariaDB [dreamhome]> Select * from Staff;
| staffNo fName | 1Name | position | sex
| SA9
Mary
Howe
Ford
David
| Assistant | F
Supervisor | M
Assistant | F
Ann
Beech
Susan Brand
F
White
| M
Lee
F
SG14
SG37
SG5
| SL21
SL41
John
Julie
Manager
Manager
Assistant
| DOB
|
branchNo |
| salary
1970-02-19 | 9500.00 | B007
1958-03-24 | 18000.00
1960-11-10 | 12000.00
B003
B003
1940-06-03 | 24000.00
B003
| 1945-10-01 | 30000.00 B005
1965-06-13 | 9000.00 B005
Transcribed Image Text:[MariaDB [dreamhome]> Select * from Staff; | staffNo fName | 1Name | position | sex | SA9 Mary Howe Ford David | Assistant | F Supervisor | M Assistant | F Ann Beech Susan Brand F White | M Lee F SG14 SG37 SG5 | SL21 SL41 John Julie Manager Manager Assistant | DOB | branchNo | | salary 1970-02-19 | 9500.00 | B007 1958-03-24 | 18000.00 1960-11-10 | 12000.00 B003 B003 1940-06-03 | 24000.00 B003 | 1945-10-01 | 30000.00 B005 1965-06-13 | 9000.00 B005
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Concept of memory addresses in pointers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning