Question: 1 . What is a Distributed Database? 2 . What are the advantages of using a Distributed Database? 3 . What are the types of
What is a Distributed Database?
What are the advantages of using a Distributed Database?
What are the types of Distributed Databases?
What is Data Replication in Distributed Databases?
What is Data Fragmentation in Distributed Databases?
What is Consistency in Distributed Databases?
What are some common challenges in Distributed Databases?
What is TwoPhase Commit PC in Distributed Databases?
What is a Distributed Query Processor?
CREATE TABLE customer
Custid int unsigned NOT NULL AUTOINCREMENT,
firstname varchar NOT NULL,
lastname varchar NOT NULL,
email varchar NOT NULL,
phoneno varchar NOT NULL,
hiredate varchar NOT NULL,
jobid varchar NOT NULL,
Salary decimal NOT NULL DEFAULT
Commissionpct decimal NOT NULL,
Managerid int NOT NULL,
Deptid int DEFAULT NULL,
PRIMARY KEY Custidemail
ENGINEInnoDB DEFAULT CHARSETutfmb COLLATEutfmbaici
create a table using the above syntax
insert into the table records
A From the following table, write a SQL query to find those employees who receive a higher salary than the employee with ID Return first name, last name.
B From the following table, write a SQL query to find out which employees have the same designation as the employee whose ID is Return first name, last name, department ID and job ID
C From the following table, write a SQL query to find those employees whose salary matches the lowest salary of any of the departments
D From the following table, write a SQL query to find those employees who earn more than the average salary. Return employee ID first name, last name.
E From the following table, write a SQL query to find those employees who report to that manager whose first name is Payam Return first name, last name, employee ID and salary.
F From the following tables, write a SQL query to find all those employees who work in the Finance department. Return department ID name first job ID and department name.
G From the following table, write a SQL query to find the employee whose salary is and reporting persons ID is Return all fields.
H From the following table, write a SQL query to find those employees whose ID matches any of the numbers and
I. From the following table, write a SQL query to find those employees whose salary is in the range of and Begin and end values have included. Return all the fields.
J From the following table and write a SQL query to find those employees whose salary falls within the range of the smallest salary and Return all the fields.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
