soto mallqui sharon

2
COMANDOS SQL SHARON SOTO MALLQUI 1.- SELECT LEN(apellidos) AS Length, nombre,Apellidos FROM Empleados; 2.- SELECT NombreCompañia FROM Clientes WHERE NOMBRECOMPAÑIA BETWEEN 'A' AND 'B'; 3.- SELECT DISTINCT nombrecompañia FROM Clientes; 4.- insert into Clientes (nombrecompañia,direccion,ciudad,telefono) values ('Kokis','Calle Real','Huancayo','244779'); 5.- select * from Pedidos Where FechaPedido between '1996-01-01'and '1996-31-12'; 6.- select CiudadDestinatario FROM Pedidos WHERE Cargo > 500; 7.- select MIN (descuento) from [Detalles de pedidos] 8.- select distinct CargoContacto from Proveedores; select * from Proveedores; 9.- SELECT STDEV(JEFE) FROM Empleados; 10.-select * from Productos where NombreProducto like '_o__%' ; 11.- SELECT FLOOR(123.45), FLOOR(-123.45), FLOOR($123.45); 12.-select * from Productos where PrecioUnidad > 20;

Upload: jhonatanmedina

Post on 28-Sep-2015

222 views

Category:

Documents


3 download

TRANSCRIPT

COMANDOS SQLSHARON SOTO MALLQUI

1.- SELECT LEN(apellidos) AS Length, nombre,Apellidos FROM Empleados;

2.- SELECT NombreCompaia FROM Clientes WHERE NOMBRECOMPAIA BETWEEN 'A' AND 'B';

3.- SELECT DISTINCT nombrecompaia FROM Clientes;

4.- insert into Clientes (nombrecompaia,direccion,ciudad,telefono) values ('Kokis','Calle Real','Huancayo','244779');

5.- select * from PedidosWhere FechaPedido between '1996-01-01'and '1996-31-12';

6.- select CiudadDestinatarioFROM PedidosWHERE Cargo > 500;

7.- select MIN (descuento) from [Detalles de pedidos]

8.- select distinct CargoContacto from Proveedores; select * from Proveedores;

9.- SELECT STDEV(JEFE)FROM Empleados;

10.-select * from Productos where NombreProducto like '_o__%' ;

11.- SELECT FLOOR(123.45), FLOOR(-123.45), FLOOR($123.45);12.-select * from Productoswhere PrecioUnidad > 20;

13.-select * from ProductosWhere IdCategoria between 4 and 5

14.-select * from Productos where NombreProducto like '%__z' ;