Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Creamos La BD Práctica 3
Creamos La BD Práctica 3
A.
B.
C.
D.
E.
F.
G.
H.
I.
J.
K.
L.
M.
N.
O.
P.
Q.
R.
S.
T.
select*from fabricante,articulo;
select*from articulo;
--a
select*from articulo;
--b
select nombre from articulo;
--c
select nombre,precio from articulo;
--d
select distinct nombre from articulo;
--e
select*from articulo where clave_articulo=5;
--f
select*from articulo where nombre='Teclado';
--g
select*from articulo where nombre='Memoria RAM' or nombre='Memoria
USB';
--h
select*from articulo where nombre like 'M%';
--i
select*from articulo where precio=100;
--j
select*from articulo where precio >200;
--k
select*from articulo where precio between 100 and 350;
--l
select AVG(precio)from articulo;
--m
select AVG(precio)from articulo where clave_fabricante=2;
--n
select*from articulo order by nombre;
--o
select*from articulo order by precio desc;
--p
select nombre,precio from articulo where precio >250 order by precio
desc,nombre asc;
--q
select*from articulo, fabricante;
--r
select clave_articulo,articulo.nombre,fabricante.nombre from
articulo,fabricante;
--s
select fabricante.nombre,articulo.nombre,precio from
fabricante,articulo where fabricante.nombre='Logintech' order by
articulo.nombre;
--t
select articulo.nombre,precio,fabricante.nombre from
articulo,fabricante where fabricante.nombre='Lexar' or
fabricante.nombre='Kingston' order by precio desc;
--u
insert into articulo(nombre,precio,clave_fabricante) values
('Altavoces',120,2);
--v