0% found this document useful (0 votes)
27 views

Hello

The document contains instructions for altering a table to add an email column, finding manager names that work for two specific banks, finding employee names, addresses, cities, and salaries that work for a bank and earn over $10,000, finding employee names that live in the same city as their company, finding highest, lowest, and average salaries for each company, finding the sum of salaries and number of employees for each company, and finding the company that pays the highest salary.

Uploaded by

prem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Hello

The document contains instructions for altering a table to add an email column, finding manager names that work for two specific banks, finding employee names, addresses, cities, and salaries that work for a bank and earn over $10,000, finding employee names that live in the same city as their company, finding highest, lowest, and average salaries for each company, finding the sum of salaries and number of employees for each company, and finding the company that pays the highest salary.

Uploaded by

prem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

b)Alter table employee, add a column “email” of type varchar(20).

c) Find the name of all managers who work for both Samba Bank and NCB Bank

d) Find the names, street address and cities of residence and salary of all
employees who work for “Samba Bank
and earn more than $10,000.

e) Find the names of all employees who live in the same city as the company for
which they work.

f) Find the highest salary, lowest salary and average salary paid by each company.

g) Find the sum of salary and number of employees in each company

h) Find the name of the company that pays highest salary.

You might also like