Please explain the questions with detailed explanations. For SQL, do not use inner join.
first you need to create a database
ex. create database company;
then you have to use it
ex. use company;
then you need to create three tables named department,employee,supplier,item
query:-
for department : - create table department(did varchar(20),dname varchar(20),budget varchar(20));
for employee : - create table employee(eid varchar(20),did varchar(20),ename varchar(20),esalary varchar(10));
for supplier : - create table supplier(sid varchar(20),sname varchar(20),city varchar(15),state varchar(15),eid varchar(20));
for item : - create table item(sid varchar(20),sicode varchar(20),did varchar(20),iname varchrar(10),msrp varchar(6));
and after that you need to store some values in above tables i am giving one example of how to store data
ex. insert into department values(102,mobile,honor 8x,14000);
like this you need to insert data in other tables according to tables attribute.
PROBLEM 3:
SOLUTION :-
RELATIONAL ALGEBRA
first we will find the name for sicode from item table
SQL
select name from item where sicode="C1";
select name from item where sicode="C2";
PROBLEM 4:
SOLUTION:-
RELATIONAL ALGEBRA
we will need to fetch the did or department id from employee table with the help of employee id
SQL
select did from employee where eid="E1";
select did from employee where eid="E2";
PROBLEM 5:
SOLUTION:-
RELATIONAL ALGEBRA
here we will find the department id with the help of comparison of msrp from item table
SQL
select did from item where msrp>100;
PROBLEM 6:
SOLUTION:-
RELATIONAL ALGEBRA
first you need to find the did from department table in which budget>1000
SQL
select did from department where budget>1000;
RELATIONAL ALGEBRA
suppose if 101 and 102 are the did's so you need to fire a query for eid of this did's
SQL
select eid from employee where did="101";
select eid from employee where
did="102";
RELATIONAL ALGEBRA
lastly we will find the supplier names for this
eid's
suppose E1 and E2 are the eid's
SQL
select sname from supplier where eid="E1";
select sname from supplier where
eid="E2";
So these are the solutions of given problems.
Gives the departments, their ID, name and budget. d stands for department. Employees(eID, dID, eN...
THE BIG D COMPANY The Big D Company of Dallas, Texas, was a family owned, conservatively managed company. For over forty years the company enjoyed slow, steady growth in reaching its current employment level of just over 200. All expansions were financed entirely out of earnings. As the company grew, its operating procedures were periodically re-examined and modified to cope with the complex problems that accompany growth. The company developed, manufactured, and sold metering and flow control devices used in...
How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...