Está en la página 1de 7

Where

select * from empleados where sueldobasico between 200 and 400;

select
0 select legajo from empleados

Media:avg
select avg (sueldo_basico) from empleados where cod_categoria = 12

minimo:min
select min (sueldo_basico) from empleados

maximo:max
select max (sueldo_basico) from empleados

total:sum
select sum (sueldo_basico) from empleados where cod_categoria = 12

cuenta:count
select direccin COUNT (distinct legajo) from empleados where cod_categoria > 12
group by direccin

consultas multiples tablas


select empleado_conceptos,legajo,empleado_conceptos.cod_concepto,venta.desc_concepto from empleado_conceptos,ventas where empleado_conceptos,cod_concepto=venta,cod_concepto

inner join
select * from empleados
INNER JOIN empleado_conceptos ON empleados.legajo = empleado_conceptos.legajo

BORRADO
DELETE from categoras Where cod_categoria = 15

INSERCION
Insert INTO venta Values (36,Fuerte, Abono, 21, 1500, Sumatorio)

Actualizacin
Update Importe_fijo=Importe_fijo=1.06 Where Importe_Fijo>1000

INSTITUTO TECNOLOGICO SUPERIOR DE TEPEACA NOMBRE DEL CATEDRATICO: M.C.C. CLAUDIA PATRICIA ORTA PALACIOS INTEGRANTES DEL EQUIPO: MENDOZA PONCE SALOMON ROBLES HERRERA GIOVANNY PEREZ ORTIZ ARDANI JUAREZ VELAZQUEZ DAVID JORGE CARRERA: INGENIERIA EN SISTEMAS COMPUTACIONALES GRADO: 5 GRUPO: B CICLO ESCOLAR 2009-2010

También podría gustarte