Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A relational database for AllElectronics. The AllElectronics company is described by the following relation tables: customer, item, employee, and branch. Fragments of the tables described

A relational database for AllElectronics. The AllElectronics company is described by the following
relation tables: customer, item, employee, and branch. Fragments of the tables described here
are shown in the Figure. Please fill up the tables with 10 entries each.
The relation customer consists of a set of attributes, including a unique customer identity number
(cust ID), customer name, address, age, occupation, annual income, credit information, category,
and so on.
Similarly, each of the relations item, employee, and branch consists of a set of attributes
describing their properties.
Relational data can be accessed by database queries written in a relational query language, such
as SQL, or with the assistance of graphical user interfaces. A query allows retrieval of specified
subsets of the data. Here we will use python to access the relational database and to write the
queries.
Deliverables:
Write the Python code to get the following results.
1. Show the list of all made in India items.
2. Show the list of customers with age 30 to 40.
3. List the employees having salary more than 1 Lakh.
4. Calculate the total amount sold by E55 employee.
5. Which sales person had the highest amount of sales?

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

Advances In Databases 11th British National Conference On Databases Bncod 11 Keele Uk July 7 9 1993 Proceedings Lncs 696

Authors: Michael F. Worboys ,Anna F. Grundy

1993rd Edition

3540569219, 978-3540569213

More Books

Students also viewed these Databases questions

Question

How are minerals classified?

Answered: 1 week ago

Question

What is a replay attack? List 35 practical applications of IPSec.

Answered: 1 week ago

Question

Organize and support your main points

Answered: 1 week ago

Question

Move smoothly from point to point

Answered: 1 week ago

Question

Outlining Your Speech?

Answered: 1 week ago