question 1 (6 points)
For workers’ safety, restaurants designate how long an employee may work in a specific work area. This is enforced in potentially hazardous areas. For example, restaurants may state that a worker may not work on a stir fry for more than four hours in a space of six hours.
Write a query that creates a sequence that you will later use to populate a primary key. The sequence should start at 1 and increment by 1.
Write a query that uses the sequence you just created to create a table named KITCHEN_SCHEDULE.
The table is to show the name of the work areas (such as stir fry, oven, boiler, stove top) and the minimum and maximum number of hours to work in such areas and in specific periods. For example, the stir fry worker can be scheduled for 2 to 4 hours every 6 to 8 hours. In addition to that, the worker should not exceed 12 hours total of 16 hours.
The Write a query that uses the sequence you just created to create a table named Write a query that uses the sequence you just created to create a table named KITCHEN_SCHEDULE. The table should have the following fields
Use a check constraint to ensure that the hours do not exceed the maximum number of hours in a shift. Assume that the maximum is 12 for all work areas that will be recorded on this table.
Create a unique constraint to ensure there are no duplicate work areas.
Create an ordering index to order the work areas by maximum number of hours per shift.
Populate the table with values. You decide the work area and the hours for each. You may insert one or a few records.
With that done, write a query that draws data from this information by concatenating strings with data values. For example, your query will output a sentence such as
“Stir Fry schedule should be a 2 to 4 hours within 6 hours in a 16 hour period”
Feel free to alter this sentence as you want but use all values in the table.
For submission, provide the following
Question 2 (4 points)
Based on the company database, write a query that shows the employee who works the least hours. It is a total of all hours for that employee regardless of the project.
HINT: You may create a subquery or with statement to show how many hours every ESSN worked. That way you know which employee it is before you write the query to get the names.
Question 3 (6 points)
Based on the company database, write a query that lists the following attributes and conditions from the EMPLOYEE table
For submission provide a screenshot of the query output. The output of the query should match the image below.

Question 4 (4 points)
The query below lists all studio managers and their schedules for managing studios. It uses the following relations
STUDIO {STUDIO_ID, STUDIO_CITY, STUDIO_NAME}
STUDIO_MANAGER {STUDIO_MANAGER_ID, FIRST_NAME, LAST_NAME, EMAIL_ADDRESS, PHONE_NUMBER}
MANAGER_ASSIGNMENTS {MANAGER_ASSIGNMENT_ID, STUDIO_ID,STUDIO_MANAGER_ID, START_DATE, END_DATE}
Rewrite the query to list only those managers managing a studio on March 5, 2025.
SELECT STUDIO.STUDIO_CITY, STUDIO.STUDIO_NAME, FIRST_NAME, LAST_NAME, EMAIL_ADDRESS, PHONE_NUMBER, START_DATE, END_DATE
FROM MANAGER_ASSIGNMENTS JOIN STUDIO ON MANAGER_ASSIGNMENTS.STUDIO_ID = STUDIO.STUDIO_ID
JOIN STUDIO_MANAGER ON MANAGER_ASSIGNMENTS.STUDIO_MANAGER_ID = STUDIO_MANAGER.STUDIO_MANAGER_ID

Submit a screenshot of the query and the query output.
Make sure of the following before you upload the file:
Requirements: complete
Select your paper details and see how much our professional writing services will cost.
Our custom human-written papers from top essay writers are always free from plagiarism.
Your data and payment info stay secured every time you get our help from an essay writer.
Your money is safe with us. If your plans change, you can get it sent back to your card.
We offer more than just hand-crafted papers customized for you. Here are more of our greatest perks.
Get instant answers to the questions that students ask most often.
See full FAQOur professional writing service focuses on giving you the right specialist so the one assigned will have the knowledge about the right topic. However, if you’ve used our essay service before, you can ask us to assign you the expert writer who used to complete papers for you in the past. We can easily do so if the specialist in question is available at the moment.
If you’re ordering from our essay writing service for the first time, we will assign you a suitable expert ourselves and ensure that your academic essay writer is a pro. Moreover, let us know how complex your assignment is so that we can find the best match for your order.
We’ve hired the best writers in 80+ academic subjects to complete any paper you need. As soon as we hear, “Write my essays,” our support team assigns you the writer who understands your needs and subject.
In case you need to make sure we’ve picked a great specialist to deal with your paper, you can chat with the expert writers directly. We do our best to make sure you’re happy with the writer we’ve selected for you.
We have been selling original essays for more than 15 years. To prove that we are a trustworthy custom essay writing company, we provide quick delivery and a money-back guarantee. If we can’t complete your paper for any reason, we’ll send your money back to the credit card. We want to deliver the finest services, so you can decide if the paper is good enough; from our side, we’ll edit it according to your primary requirements to make the writing perfect. Our online paper writing service is about both giving you the materials you need when you need them and ensuring that your private data is safe. Check out our guarantees to see how we control the quality of your assignment and protect you as a customer.