Question: Create a database for the following scenario using SQL Commands, the primary key should be generated by default and create the class diagram. The system
Create a database for the following scenario using SQL Commands, the primary key should be generated by default and create the class diagram.
The system is an integrated program developed to save time and effort. This website provides a quick and easy way to find out what medicines are available in the pharmacy as well as to buy medicine online.
There are employees in this system, and they are assigned to many roles.
Write the SQLStatement for the following:
Insert records in each table using one command and then:
Retrieve all the data from all tables.
Retrieve customers whose name contains an a letter.
Retrieve employees whose position is Admin or Pharmacist.
Retrieve the employees whose name ends with d and contains five alphabets.
Retrieve employees who have the highest salaries.
Retrieve the top records from employee table.
Retrieve the top records from employee table.
Retrieve the name with the uppercase first letter using builtin function
Set the salary value JOD when dating of employment before
Retrieve the name of customers who order medicine with the medicine name sort by the medicine name. Note: here is M to M relationship.
Retrieve the pill for each customer containing hisher name and the total price for all bought medicines sort by total price and then fetch only highest ones.
Retrieve the location of the pharmacies and the location for the employees using one query.
Retrieve the information of employees who live in the same location as the pharmacy.
Note: Submit the SQL Code for each exercise with a screenshot of the result.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
