Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a database with following schema. This database records information about chefs (including name, birth date, birth city and rating), and the dishes they prepare.

image text in transcribed

Consider a database with following schema. This database records information about chefs (including name, birth date, birth city and rating), and the dishes they prepare. For each dish, the database records dish name and its popularity score. CHEF(cid\#, Chef_Name, ChefBirthDate, ChefBirthCity, Rating) DISH(did\#, Dish_Name, Popularity) PREPARE(cid\#,did\#) /* cid is a chef's unique identier did is a dish's unique identier cid references Chef.cid and did references Dish.did */ 3) Create an encrypted store procedure named 'SP_ADD_CHEF' to insert a chef considering his/her id variable character type with 10 bytes, name as variable character type with 50 bytes (name contains the first name and surname together), birth date is in data type, birth city variable character type with 30 bytes and rating integer type. In the procedure, if the chef exists in the table, then the message of 'This chef is avilable on the system and modifying the chef detail' should be given and then the detail of the chef must be modified with its new id detail. Otherwise it should be inserted as a new chef

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

b. What groups were most represented? Why do you think this is so?

Answered: 1 week ago

Question

3. Describe phases of minority identity development.

Answered: 1 week ago

Question

5. Identify and describe nine social and cultural identities.

Answered: 1 week ago