SlideShare a Scribd company logo
1 of 13
ESCUELA SUPERIOR POLITECNICA DEL LITORAL FACULTAD DE INGENIERIA EN ELECTRICIDAD Y COMPUTACION SISTEMAS DE BASES DE DATOS I TRABAJO EN CLASE EJERCICIOS SQL ALUMNO. GUZMAN CONTRERAS MAURICIO PROFESOR. ING. FABRICIO ECHEVERRIA PARALELO. 01 GUAYAQUIL, JULIO 22 DE 2009 Ejercicios 1. 1. select emp_id, emp_fname, emp_lname, salary from employee where salary<(select avg(salary)               from employee) 2. select emp_id, emp_fname, emp_lname from employee where dept_id in(select dept_id               from department  where dept_name='R & D') 3. select  emp_id, emp_fname, emp_lname, salary from employee where salary>some(select salary                  from employee                  where city='Milton') 4. select  emp_id, emp_fname, emp_lname, salary from employee where salary>all(select salary                  from employee                  where city='Milton') 5. select  prod.name, prod.quantity, clte.fname, clte.lname from product prod, customer clte, sales_order salo, sales_order_items sali  where clte.id=salo.cust_id and salo.id=sali.id and sali.prod_id=prod.id 6. SELECT dep1.dept_name, sum(emp1.salary) as total FROM employee emp1, department dep1 where emp1.dept_id = dep1.dept_id group by dep1.dept_name Ejercicios 2. 1.  Para la clausula some, la clausula equivalente es between. 2.  Para la clausula all, la clausula equivalente es max. 3. SELECT emp1.emp_fname, emp1.emp_lname FROM employee emp1, department dep1 where exists (select * from employee where employee.salary > '80000' and employee.city = 'Milton') 4. SELECT emp1.emp_fname, cus.fname FROM employee emp1, customer cus SELECT employee.emp_fname from employee union all select customer.fname from customer 5. SELECT employee.city from employee intersect all select customer.city from customer 6. SELECT employee.city from employee except all select contact.city from contact 1. insert into contact_copy select * from contact 2. insert into contact_copy(id, last_name, first_name, title, street, city, state, zip, phone, fax) values (12,'Hildebrand','Jane','ma','280 Washington St.','Kanata','CA','94608','5105551309','5105554209') 3. delete from contact_copy 4. delete from contact_copy where city like'm%' or city like'l%' or city like'k%' 5. insert into employee_copy select * from employee 6. insert into employee_copy(emp_id, manager_id, emp_fname, emp_lname, dept_id, street, city, state, zip_code, phone, status, ss_number, salary, start_date, termination_date, birth_date, bene_health_ins, bene_life_ins, bene_day_care, sex) values(310,702,'mauricio','guzman','521','urdesanorte','guay','guaya',012457128,042156789,'z',0124578,400000,'1984-09-12',null,'1972-02-12','d','j','f','m') 7. delete  from employee_copy where salary<(select 0.5*avg(salary)               from employee_copy) 8. update employee_copy set salary= salary+salary*0.2 9. update employee_copy set salary= salary+salary*0.1 where sex= 'f' 10. update employee_copy set salary= salary-1000 where salary>(select avg(salary)               from employee_copy) 11. select distinct empy.emp_id, empy.emp_fname from employee empy, employee mana where empy.emp_id= mana.manager_id
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman
Practicas Sql - Mauricio Guzman

More Related Content

Viewers also liked

Writing Your Life
Writing Your LifeWriting Your Life
Writing Your Lifeguest687a4b
 
一般道実走行における 自車センサ情報を用いた車線変更の検出
一般道実走行における自車センサ情報を用いた車線変更の検出一般道実走行における自車センサ情報を用いた車線変更の検出
一般道実走行における 自車センサ情報を用いた車線変更の検出Ryo Neyama
 
A geomatics approach to the interpretation of Ground Penetrating Radar (GPR)
A geomatics approach to the interpretation of Ground Penetrating Radar (GPR)A geomatics approach to the interpretation of Ground Penetrating Radar (GPR)
A geomatics approach to the interpretation of Ground Penetrating Radar (GPR)Stuart Glenday
 

Viewers also liked (15)

Presentación1
Presentación1Presentación1
Presentación1
 
Grupos
GruposGrupos
Grupos
 
upceaonline
upceaonlineupceaonline
upceaonline
 
Writing Your Life
Writing Your LifeWriting Your Life
Writing Your Life
 
Examen Aitana
Examen AitanaExamen Aitana
Examen Aitana
 
Msl Presentation
Msl PresentationMsl Presentation
Msl Presentation
 
PresentacióN1
PresentacióN1PresentacióN1
PresentacióN1
 
5 Amigos
5 Amigos5 Amigos
5 Amigos
 
G R U P O S
G R U P O SG R U P O S
G R U P O S
 
Curriculum Vitae
Curriculum VitaeCurriculum Vitae
Curriculum Vitae
 
一般道実走行における 自車センサ情報を用いた車線変更の検出
一般道実走行における自車センサ情報を用いた車線変更の検出一般道実走行における自車センサ情報を用いた車線変更の検出
一般道実走行における 自車センサ情報を用いた車線変更の検出
 
oec2015
oec2015oec2015
oec2015
 
Crisis Financiera De Canada
Crisis Financiera De CanadaCrisis Financiera De Canada
Crisis Financiera De Canada
 
Appreciation Marketing
Appreciation MarketingAppreciation Marketing
Appreciation Marketing
 
A geomatics approach to the interpretation of Ground Penetrating Radar (GPR)
A geomatics approach to the interpretation of Ground Penetrating Radar (GPR)A geomatics approach to the interpretation of Ground Penetrating Radar (GPR)
A geomatics approach to the interpretation of Ground Penetrating Radar (GPR)
 

More from nahun1385

Prototipo v2
Prototipo v2Prototipo v2
Prototipo v2nahun1385
 
Prototipo v1
Prototipo v1Prototipo v1
Prototipo v1nahun1385
 
Guitars House
Guitars HouseGuitars House
Guitars Housenahun1385
 
Manual De Usuario
Manual De UsuarioManual De Usuario
Manual De Usuarionahun1385
 
Diccionario De Datos
Diccionario De DatosDiccionario De Datos
Diccionario De Datosnahun1385
 
Codigo De Las Clases Del Proyecto
Codigo De Las Clases Del ProyectoCodigo De Las Clases Del Proyecto
Codigo De Las Clases Del Proyectonahun1385
 
Diagramas De Interaccion De Objetos
Diagramas De Interaccion De ObjetosDiagramas De Interaccion De Objetos
Diagramas De Interaccion De Objetosnahun1385
 
Diagramas De Casos De Uso
Diagramas De Casos De UsoDiagramas De Casos De Uso
Diagramas De Casos De Usonahun1385
 
Tarea Querys Sql de Wilmer Alcivar
Tarea Querys Sql de Wilmer AlcivarTarea Querys Sql de Wilmer Alcivar
Tarea Querys Sql de Wilmer Alcivarnahun1385
 
Sistemas De Bases De Datos-Tarea Querys De Sql
Sistemas De Bases De Datos-Tarea Querys De SqlSistemas De Bases De Datos-Tarea Querys De Sql
Sistemas De Bases De Datos-Tarea Querys De Sqlnahun1385
 
Sistemas De Bases De Datos Tarea Querys De Sql
Sistemas De Bases De Datos   Tarea Querys De SqlSistemas De Bases De Datos   Tarea Querys De Sql
Sistemas De Bases De Datos Tarea Querys De Sqlnahun1385
 

More from nahun1385 (11)

Prototipo v2
Prototipo v2Prototipo v2
Prototipo v2
 
Prototipo v1
Prototipo v1Prototipo v1
Prototipo v1
 
Guitars House
Guitars HouseGuitars House
Guitars House
 
Manual De Usuario
Manual De UsuarioManual De Usuario
Manual De Usuario
 
Diccionario De Datos
Diccionario De DatosDiccionario De Datos
Diccionario De Datos
 
Codigo De Las Clases Del Proyecto
Codigo De Las Clases Del ProyectoCodigo De Las Clases Del Proyecto
Codigo De Las Clases Del Proyecto
 
Diagramas De Interaccion De Objetos
Diagramas De Interaccion De ObjetosDiagramas De Interaccion De Objetos
Diagramas De Interaccion De Objetos
 
Diagramas De Casos De Uso
Diagramas De Casos De UsoDiagramas De Casos De Uso
Diagramas De Casos De Uso
 
Tarea Querys Sql de Wilmer Alcivar
Tarea Querys Sql de Wilmer AlcivarTarea Querys Sql de Wilmer Alcivar
Tarea Querys Sql de Wilmer Alcivar
 
Sistemas De Bases De Datos-Tarea Querys De Sql
Sistemas De Bases De Datos-Tarea Querys De SqlSistemas De Bases De Datos-Tarea Querys De Sql
Sistemas De Bases De Datos-Tarea Querys De Sql
 
Sistemas De Bases De Datos Tarea Querys De Sql
Sistemas De Bases De Datos   Tarea Querys De SqlSistemas De Bases De Datos   Tarea Querys De Sql
Sistemas De Bases De Datos Tarea Querys De Sql
 

Recently uploaded

CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best sexual serviceanilsa9823
 
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
The Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdfThe Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdfGale Pooley
 
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...Suhani Kapoor
 
00_Main ppt_MeetupDORA&CyberSecurity.pptx
00_Main ppt_MeetupDORA&CyberSecurity.pptx00_Main ppt_MeetupDORA&CyberSecurity.pptx
00_Main ppt_MeetupDORA&CyberSecurity.pptxFinTech Belgium
 
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...ssifa0344
 
(DIYA) Bhumkar Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(DIYA) Bhumkar Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(DIYA) Bhumkar Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(DIYA) Bhumkar Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...ssifa0344
 
Top Rated Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
Top Rated  Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...Top Rated  Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
Top Rated Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...Call Girls in Nagpur High Profile
 
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
20240429 Calibre April 2024 Investor Presentation.pdf
20240429 Calibre April 2024 Investor Presentation.pdf20240429 Calibre April 2024 Investor Presentation.pdf
20240429 Calibre April 2024 Investor Presentation.pdfAdnet Communications
 
High Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
High Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsHigh Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
High Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
The Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfThe Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfGale Pooley
 
Stock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfStock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfMichael Silva
 
The Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdfThe Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdfGale Pooley
 
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...Pooja Nehwal
 
Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...
Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...
Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...Pooja Nehwal
 

Recently uploaded (20)

CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best sexual service
 
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
 
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
 
The Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdfThe Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdf
 
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
 
00_Main ppt_MeetupDORA&CyberSecurity.pptx
00_Main ppt_MeetupDORA&CyberSecurity.pptx00_Main ppt_MeetupDORA&CyberSecurity.pptx
00_Main ppt_MeetupDORA&CyberSecurity.pptx
 
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
 
(DIYA) Bhumkar Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(DIYA) Bhumkar Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(DIYA) Bhumkar Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(DIYA) Bhumkar Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
 
Top Rated Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
Top Rated  Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...Top Rated  Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
Top Rated Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
 
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
 
20240429 Calibre April 2024 Investor Presentation.pdf
20240429 Calibre April 2024 Investor Presentation.pdf20240429 Calibre April 2024 Investor Presentation.pdf
20240429 Calibre April 2024 Investor Presentation.pdf
 
High Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
High Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsHigh Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
High Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
The Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfThe Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdf
 
Commercial Bank Economic Capsule - April 2024
Commercial Bank Economic Capsule - April 2024Commercial Bank Economic Capsule - April 2024
Commercial Bank Economic Capsule - April 2024
 
Stock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfStock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdf
 
The Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdfThe Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdf
 
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
 
Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...
Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...
Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...
 

Practicas Sql - Mauricio Guzman

  • 1. ESCUELA SUPERIOR POLITECNICA DEL LITORAL FACULTAD DE INGENIERIA EN ELECTRICIDAD Y COMPUTACION SISTEMAS DE BASES DE DATOS I TRABAJO EN CLASE EJERCICIOS SQL ALUMNO. GUZMAN CONTRERAS MAURICIO PROFESOR. ING. FABRICIO ECHEVERRIA PARALELO. 01 GUAYAQUIL, JULIO 22 DE 2009 Ejercicios 1. 1. select emp_id, emp_fname, emp_lname, salary from employee where salary<(select avg(salary) from employee) 2. select emp_id, emp_fname, emp_lname from employee where dept_id in(select dept_id from department where dept_name='R & D') 3. select emp_id, emp_fname, emp_lname, salary from employee where salary>some(select salary from employee where city='Milton') 4. select emp_id, emp_fname, emp_lname, salary from employee where salary>all(select salary from employee where city='Milton') 5. select prod.name, prod.quantity, clte.fname, clte.lname from product prod, customer clte, sales_order salo, sales_order_items sali where clte.id=salo.cust_id and salo.id=sali.id and sali.prod_id=prod.id 6. SELECT dep1.dept_name, sum(emp1.salary) as total FROM employee emp1, department dep1 where emp1.dept_id = dep1.dept_id group by dep1.dept_name Ejercicios 2. 1. Para la clausula some, la clausula equivalente es between. 2. Para la clausula all, la clausula equivalente es max. 3. SELECT emp1.emp_fname, emp1.emp_lname FROM employee emp1, department dep1 where exists (select * from employee where employee.salary > '80000' and employee.city = 'Milton') 4. SELECT emp1.emp_fname, cus.fname FROM employee emp1, customer cus SELECT employee.emp_fname from employee union all select customer.fname from customer 5. SELECT employee.city from employee intersect all select customer.city from customer 6. SELECT employee.city from employee except all select contact.city from contact 1. insert into contact_copy select * from contact 2. insert into contact_copy(id, last_name, first_name, title, street, city, state, zip, phone, fax) values (12,'Hildebrand','Jane','ma','280 Washington St.','Kanata','CA','94608','5105551309','5105554209') 3. delete from contact_copy 4. delete from contact_copy where city like'm%' or city like'l%' or city like'k%' 5. insert into employee_copy select * from employee 6. insert into employee_copy(emp_id, manager_id, emp_fname, emp_lname, dept_id, street, city, state, zip_code, phone, status, ss_number, salary, start_date, termination_date, birth_date, bene_health_ins, bene_life_ins, bene_day_care, sex) values(310,702,'mauricio','guzman','521','urdesanorte','guay','guaya',012457128,042156789,'z',0124578,400000,'1984-09-12',null,'1972-02-12','d','j','f','m') 7. delete from employee_copy where salary<(select 0.5*avg(salary) from employee_copy) 8. update employee_copy set salary= salary+salary*0.2 9. update employee_copy set salary= salary+salary*0.1 where sex= 'f' 10. update employee_copy set salary= salary-1000 where salary>(select avg(salary) from employee_copy) 11. select distinct empy.emp_id, empy.emp_fname from employee empy, employee mana where empy.emp_id= mana.manager_id