| Places(noPl, noCat, surface, distance) | |
| Categories(noCat, prixAd, prixEnf) | |
| Clients(noPl, nomCl) |
| pnoPl(s |
|
Places) |
select noPl, surface
from Places, Categories
where distance < 100 and
prixAd = 20 and
Places.noCat = Categories.noCat
select noPl
from Places A
where not exists (select *
from Places B
where B.distance < A.distance)
ou
select noPl
from Places
where distance = (select min(distance)
from Places)
select sum(surface) from Place where noPl not in select noPl from Clients
select avg(prixAd) from Place, Categorie where Place.noCat = Categorie.noCat and surface = 20