-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.sql
More file actions
32 lines (27 loc) · 836 Bytes
/
Copy pathmenu.sql
File metadata and controls
32 lines (27 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SET define on
SET verify off
SET heading off
SET echo off
PROMPT 'Welcome to Startup Solutions';
PROMPT
PROMPT '1: Add Employee | 2: Employee Lookup';
PROMPT '3: Change Office Location | 4: Cost of Living Increase';
PROMPT '5: Promote Employee | 6: Reports';
PROMPT '7: Update Pay Rate | 8: Create Invoice';
ACCEPT input PROMPT 'Enter selection:';
col menu new_val menuVar
SET term off
SELECT
CASE '&input'
WHEN '1' THEN '@addEmployee.sql'
WHEN '2' THEN '@lookupEmployee.sql'
WHEN '3' THEN '@changeOfficeLoc.sql'
WHEN '4' THEN '@costLivingInc.sql'
WHEN '5' THEN '@promoteEmployee.sql'
WHEN '6' THEN '@reports.sql'
WHEN '7' THEN '@updatePayRate.sql'
ELSE '@reports.sql'
END AS menu
FROM DUAL;
SET term on
@&menuVar