Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Nit number,
telefono number,
telefeno number,
fecha date,
TotalFactura number);
PrecioCosto number,
PrecioVenta number,
id nvarchar2 (5),
CantidadPerdida number,
PrecioTotal number);
PRIMARY KEY
Alter table Cliente
FOREIGN KEY
Alter table Factura
INSERT INTO
CLIENTE
FACTURA
PROVEEDOR
Insert into Proveedor values ('4','Nvidia','73548121','Calle las Animas Zona Alto Obrajes
Nro.185');
Insert into Proveedor values ('5','Haier','73548121','Calle Rosendo Guiterrez Zona San Pedro
Nro.12');
PRODUCTO
DETALLE FACTURA
1.
Select CodCliente,Nit,Nombre,telefono,direccion
From Cliente
2.
Select CodCliente,Nit,Nombre,telefono,direccion
From Cliente
3.
Select CodCliente,Nit,Nombre,telefono,direccion
From Cliente
Where Nombre Like '%r%' and direccion like '%Zona San Pedro'
4.
Select CodCliente,Nit,Nombre,telefono,direccion
From Cliente
Where Nit is null and Nombre like '%a%' and direccion is null
5.
Select CodCliente,Nit,Nombre,telefono,direccion
From Cliente
Where Nit is not null and telefono like '%9' and direccion is not null
PROVEEEDOR
1.
from Proveedor
2.
from Proveedor
Where Proveedor like '%i%' and telefeno is not null and direccion is not null
3.
from Proveedor
from Proveedor
5.
from Proveedor
FACTURA
1.
Select NoFactura,Fecha,CodCliente,TotalFactura
from Factura
2.
Select NoFactura,Fecha,CodCliente,TotalFactura
from Factura
Select AVG(TotalFactura)
from Factura
4.
Select SUM(TotalFactura)
from Factura
5.
Select Max(TotalFactura)
from Factura
Where fecha between '01-02-2020' and '11-02-2020' and TotalFactura is not null
PRODUCTO
1.
From Producto
Where Descripcion like '%e%' and PrecioCosto = '450' and foto like 'J%'
2.
From Producto
where PrecioCosto = '450' and PrecioVenta = '560' and Foto like '%E%'
3.
From Producto
4.
From Producto
Where Descripcion is not null and PrecioCosto between '80' and '450' and PrecioVenta <=120
5.
Select SUM(PrecioCosto)
From Producto
Where Descripcion is not null and PrecioCosto between '80' and '450'
DETALLE FACTURA
1.
Select id,NoFactura,CodProducto,CantidadPerdida,PrecioTotal
From DetalleFactura
where NoFactura between '1' and '6' and CantidadPerdida is not null and PrecioTotal is not
null
2.
Select id,NoFactura,CodProducto,CantidadPerdida,PrecioTotal
From DetalleFactura
3.
Select AVG(PrecioTotal)
From DetalleFactura
4.
Select id,NoFactura,CodProducto,CantidadPerdida,PrecioTotal
From DetalleFactura
5.
Select SUM(CantidadPerdida)
From DetalleFactura