A company canteen needs an automated system for its food and
beverage
management. The canteen receives food and beverage items
from different
distributors. All the non perishable items are stored in the
store-room and the
perishable items are put in the fridge. The manager should
be able to add, delete
or update food and beverage items onto the system and
perishable and non
perishable item details are to be stored separately. Both
waiters and the cooks
should be able to update the perishable items, but only the
cooks should be
allowed to update the non perishable items. Both cooks and
waiters are not
allowed to add or delete any items that are entered.
identify the Schema, Table , Fields
Answer / Shubham Goel
To design a database schema for this scenario, you can create two tables: one for non-perishable items and another for perishable items.
1) Non-Perishable Items Table:
- item_id (Primary Key)
- item_name
- description
- quantity_on_hand
- supplier_id
- purchase_date
- cost_price
2) Perishable Items Table:
- item_id (Foreign Key referencing non_perishable_items.item_id)
- expiration_date
- quantity_on_hand
With this schema, you can store the details of each food and beverage item separately, including their names, descriptions, quantities, costs, suppliers, and expiration dates (for perishable items). You can control access to update non-perishable items only for cooks, while allowing both cooks and waiters to update perishable items.
| Is This Answer Correct ? | 0 Yes | 0 No |
can u tell me any JAM topics.........and answers also...plz send me.........e-mail: anitha839@gmail.com
write a programe to print this string in reverse order and find out how many times letter c is repeated? string = { c was desined by dennis ritchie}. also find out the lenth of the string.
how to join the pc to the domain?
Dear frds In my office we are using chiller . in that chiller inlet and outlet water diff. is 2.5 decgree always. if i intduce the cooling tower can i get good result in chiller Inlet water. reply plz.
hai im going to face ibps SO IT officers grade 1 interview. if anyone had an idea plz tel me expected and experienced questions and mail to anusha_k_anu@yahoo.com
What is success factors online trainings?
What are daemon Threads?
What do you mean by static routing and dynamic routing?
can u tell me what are the subjects involved in group I and II and how i prepare for the exam
in HVAC how does the chiller functioned .. and what is the chiller cyclic process
write a c programme to count the characters words and lines in a text book
What is candidate key ? What is Alter net key ? & What is foreign key ?
Civil Engineering (5086)
Mechanical Engineering (4453)
Electrical Engineering (16638)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)