English version (when available)
select articulo from ptienea;
select p.cod,nombre,pvp from articulo a, pack p where a.cod = p.cod
select articulo,nombre,marca from articulo, ptienea where cod = articulo
select codp from provincia where nombre like 'Alicante%';
select cod, nombre, pvp from articulo where marca like 'S%'
select * from usuario where email like '%@eps.%'
select a.cod, nombre, resolucion from articulo a, tv where a.cod=tv.cod and pantalla not between 22 and 42;
select t.cod, nombre from tv t, articulo a where t.cod=a.cod and panel like '%LED%' and pvp<=1000;
select email from usuario where codpos not in ('02012','02018','02032');
select distinct cod, nombre from articulo, ptienea where pack=cod;
select c.articulo,c.usuario,c.fecha,s.articulo stock,s.disponible,s.entrega from cesta c, stock s where c.articulo=s.articulo and entrega='descatalogado';
select a.cod, nombre, pvp from articulo a, camara c where a.cod=c.cod and tipo like'%compacta%';
select cod, nombre, pvp-importe from articulo, linped where cod=articulo and pvp<>importe;
select numpedido, fecha, nombre, apellidos from pedido, usuario where usuario=email and apellidos like'%MARTINEZ%'
select nombre, marca, resolucion from articulo a, camara c where a.cod=c.cod and c.cod not in (select articulo from linped);
select a.cod, nombre, tipo, marca from articulo a, camara c where a.cod=c.cod and marca in ('NIKON','LG','SIGMA');
select marca from marca where marca not in (select marca from articulo a, tv t where a.cod=t.cod);Solución alternativa:SELECT marca FROM marca m WHERE NOT EXISTS (SELECT 1 FROM articulo a, tv t where a.cod=t.cod and a.marca=m.marca);
select nombre from articulo where nombre like '%EOS%';
select tipo, focaL from objetivo where montura like 'Canon%';
select nombre from articulo where pvp>100 and pvp<=200;
select nombre from articulo where pvp between 100 and 300;
select nombre from articulo a, camara c where a.cod=c.cod and marca not like 'S%';
select email from usuario where dni like '%B' or dni like '%L' or dni like '%P';
select cod from tv where panel like '%LCD%' or panel like '%LED%';
select nombre from articulo a, tv t where a.cod=t.cod and pantalla > (select pantalla from tv where cod ='A0686');
select distinct nombre from articulo a, cesta c where a.cod=c.articulo and c.fecha between '2010-11-01' and '2010-12-31';
select distinct a.nombre from articulo a, cesta c, usuario u where a.cod=c.articulo and c.usuario=u.email and u.provincia in (select codp from provincia where nombre like 'Alicante%' or nombre like 'Valencia%');
select distinct numpedido from linped l, articulo a where l.articulo=a.cod and l.importe < a.pvp;
select a1.cod, a1.nombre, a1.pvp, a2.cod art2, a2.nombre nombre2, a2.marca from articulo a1, ptienea pp, articulo a2 where pp.pack = a1.cod and pp.articulo = a2.cod