Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this Assignment, you are implementing and writing several SQL queries on a relational Database. Requirements You have been appointed as the manager of a
In this Assignment, you are implementing and writing several SQL queries on a relational Database.
Requirements
You have been appointed as the manager of a consulting firm and asked you to evaluate a database
that contains the table structure shown in table below. Table below was created to enable the
manager to match clients with consultants. The objective is to match a client within a given region
with a consultation in that region and to make sure that the clients need for specific consulting
services is properly matched to the consultants expertise. For example, if the client needs help with
database design and is in the Southeast, the objective is to make a match with a consultant who is in
the Southeast and whose expertise is in database design. Although the consulting company manager
tries to match consultant and client locations to minimize travel expense, it is not always possible to
do so The following basic business rules are maintained:
Each client is located in one region
A region can contain many clients.
Each consultant can work on many contracts
Each contract might require the services of many consultants.
A client can sign more than one contract, but each contract is
signed by only one client.
Each contract might cover multiple consulting classifications.
For example, a contract may list consulting services in
database and networking.
Each consultant is located in one region.
A region can contain many consultants.
Each consultant has one or more areas of expertise class
For example, a consultant might be classified as an expert in
both database design and networking.
Each area of expertise class can have many consultants in it
For example, the consulting company might employ many
consultants who are networking experts.
Tasks to be completed:
Given this brief description of the requirements and the business rules, write the
relational schema and draw the dependency diagram for the preceding table structure.
Label all transitive and partial dependencies.
Break up the dependency diagram you drew in task to produce a dependency
diagram that are in NF and write the relational schema. Hint: You might have to create
a few new attributes. Also make sure that the new dependency diagrams contain
attributes that meet proper design criteria; that is make sure there are no multivalued
attributes, that the naming conventions are met, and so on
Design a crows foot ER Diagram for task with all the entity names, attribute names,
primary and foreign keys, relationships, cardinality, and participation indicated.
Create a database using MySQL with primary keys, foreign keys, and other attributes mentioned
for each entity of the ERD in task using proper constraints.
Populate each of the tables created in task with some significant data minimum rows in
each table
Create queries using the following criteria:
Select
Numeric Function
Order by
Group by
Aggregate Functions
Join
update
Prepare a businessstyle report that contains the following: Each SQL query and
associated output. Create a table for consultant with given attributes from the figure of table for sample data: tableAttribute Name,Sample Value,Sample value,Sample ValueCLIENTNUM,CLIENTNAME,Marianne R Brown,James D Smith,James D SmithCLIENTREGION,Midwest,Southeast,SoutheastCONTRACTDATE,FebFebMarCONTRACTNUMBER,CONTRACTAMOUNT,$$$CONSULTCLASSDatabase Administration,Internet Services,Database DesignCONSULTCLASSWeb Applications,,Database AdministrationCONSULTCLASSNetwork InstallationCONSULTCLASSCONSULTANTNUMCONSULTANTNAMERachel G Carson,Gerald K Ricardo,Angela M JamisonCONSULTANTREGIONMidwest,Southeast,SoutheastCONSULTANTNUMCONSULTANTNAMEKarl M Spenser,Anne T Dimarco,Gerald K RicardoCONSULTANTREGIONMidwest,Southeast,SoutheastCONSULTANTNUMCONSULTANTNAMEJulian H Donatello,Geraldo J Rivera,CONSULTANTREGIONMidwest,Southeast,CONSULTANTNUMCONSULTANTNAMEDonald Chen,CONSULTANTREGIONWest, Give me the commands to create a table for consultant attribute and also show the picture of it Thank you.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started