Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a databse for the below application using MySQL and upload the sql file t

ID: 3708205 • Letter: C

Question

Create a databse for the below application using MySQL and upload the sql file that shows create and insert statements for the tables:

A small accounting firm wants a simple HR application that will help it to keep track of its employees, their positions, office locations, salary scales, and which company vehicles their employees drive. The application must keep track of all the positions at the firm, the employees filling these positions, the offices for these positions which may have more than one employee, the salary scales for these positions, and the company vehicles assigned to these positions.

Hint: There are seven tables in the solution. For each entity, there is a table. Take a look at the last sentence for 5 entities. when there are many to many relationships, we need bridge tables.

Explanation / Answer

ANSWER:

NAME

ID

DEATALS

ASIF

142254

DSFD

RAM

145285

DSFD

The sql file will contain the below code.

which will contain Employee name, Employee ID, Employee Position, Employee Office location, Employee salary, Employee Vehicle.

create database EMPLOYEE;

use EMPLOYEE;

create table EMP(

EMP_NAME varchar(30),

EMP_ID int(5) AUTO_INCREMENT PRIMARY KEY,

EMP_POS varchar(30),

EMP_OFF_LOC varchar(40),

EMP_SAL INT(10),

EMP_VEHICLE varchar(30)

);

insert into emp values("James",0001,"CEO","Palo Alto",30000,"Mercedes");

NAME

ID

DEATALS

ASIF

142254

DSFD

RAM

145285

DSFD

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote