100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Bases de Datos- Apuntes Tema 7 $3.23
Add to cart

Class notes

Bases de Datos- Apuntes Tema 7

 0 purchase
  • Course
  • Institution

Preview 1 out of 2  pages

  • November 11, 2014
  • 2
  • 2013/2014
  • Class notes
  • Manolo zafra
  • All classes
avatar-seller
select *
from Datos_J

select *
from Datos_P


--consulta 1: Obtener todos los nombres de los proveedores
select nombre
from Datos_S

--consulta 2: Obtener aquellos proveedores cuyo status es mayor que 20
select nombre
from Datos_S
where status>20

--consulta 3: Obtener el nombre de proveedores que suministran la pieza P1
select nombre
from Datos_S
where idS in (
select IdS
from Datos_SPJ
where idP = 'P1'
);
--consulta 4: Obtener el nombre de los proveedores cuyo nombre acabe en ez
select nombre
from Datos_S
where nombre like '%ez'

--consulta 5: Obtener el nombre de aquellos invidivuos que tienen status máximo
select nombre
from datos_S
where status = (
select max (status)
from datos_S);
--consulta 6: Obtener aquellos proveedores cuya ciudad es la ciudad de S1 o de
S2
select *
from datos_s
where ciudad in (
select ciudad
from datos_s
where ids='S1' or ids='S2')

--consulta 7: Encontrar aquellos proovedores tales que las piezas que
--suministran estan incluidas en el conjunto de piezas que necesita J1
select IdS
from datos_spj
where IDp in (
select IdP

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller fufi95. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $3.23. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67479 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 15 years now

Start selling
$3.23
  • (0)
Add to cart
Added