1. Create Database and Insert 1.
Create Database and Insert
Records Records
2. Display All Records 2. Update Salary for Managers
3. Search Product by Pid 3. Display All Records
4. Exit 4. Delete Employee by Empid
Enter your choice: 1 5. Exit
Database, table, and records Enter your choice: 1
created. Database, table, and records
created.
1. Create Database and Insert
Records 1. Create Database and Insert
2. Display All Records Records
3. Search Product by Pid 2. Update Salary for Managers
4. Exit 3. Display All Records
Enter your choice: 2 4. Delete Employee by Empid
(1, 'Product1', 10, 100.5) 5. Exit
(2, 'Product2', 20, 150.75) Enter your choice: 2
(3, 'Product3', 15, 200.0) Salaries updated for
(4, 'Product4', 25, 120.4) Managers.
(5, 'Product5', 30, 250.99)
1. Create Database and Insert
1. Create Database and Insert Records
Records 2. Update Salary for Managers
2. Display All Records 3. Display All Records
3. Search Product by Pid 4. Delete Employee by Empid
4. Exit 5. Exit
Enter your choice: 3 Enter your choice: 3
Enter Product ID to search: 3 (1, 'Alice', 'Manager', 70000.0)
Product found: (3, 'Product3', (2, 'Bob', 'Developer',
15, 200.0) 50000.0)
(3, 'Charlie', 'Manager',
1. Create Database and Insert 80000.0)
Records (4, 'David', 'Analyst', 40000.0)
2. Display All Records (5, 'Eva', 'Designer', 45000.0)
3. Search Product by Pid
4. Exit 1. Create Database and Insert
Enter your choice: 2 Records
(1, 'Product1', 10, 100.5) 2. Update Salary for Managers
(2, 'Product2', 20, 150.75) 3. Display All Records
(3, 'Product3', 15, 200.0) 4. Delete Employee by Empid
(4, 'Product4', 25, 120.4) 5. Exit
(5, 'Product5', 30, 250.99) Enter your choice: 4
Enter Employee ID to delete: 4
1. Create Database and Insert Employee record deleted.
Records
2. Display All Records 1. Create Database and Insert
Records
17
18