![]() |
Pages (3): « 1 [2] 3 » Show 150 posts per page |
.dsy:it. (http://www.dsy.it/forum/)
- Basi di dati ~ comunicazione digitale (http://www.dsy.it/forum/forumdisplay.php?forumid=108)
-- Basi di dati:soluzioni?? (http://www.dsy.it/forum/showthread.php?threadid=2685)
cioè come faresti?
Noi l'abbiamo rifatto così:
13/01/03:
Esercizio 1/C:
SELECT CodFornitore
FROM Computer
GROUP BY CodFornitore
HAVING COUNT (*) >= ALL (SELECT COUNT (*) FROM Computer GROUP BY CodFornitore);
Esercizio 3:
CREATE TABLE R1(K Integer not null, A Integer)
PRIMARY KEY (K);
CREATE TABLE R2(K Integer not null, B Integer)
PRIMARY KEY (K);
INSERT INTO R1(K, A)
SELECT K, A
FROM R;
INSERT INTO R2(K, B)
SELECT K, B
FROM R;
DROP TABLE R;
CREATE VIEW R(K, A, B) AS
SELECT R1.K, A, B
FROM R1, R2
WHERE R1.K=R2.K;
GRANT SELECT ON R TO Rossi;
In bocca al lupo per domani!!!!
giusti
__________________
Il DSY su Facebook!!!
Originally posted by Lunik
giusti
![]()
Speriamo che domani ci sia qualcosa di simile... 
__________________
Il DSY su Facebook!!!
Speriamo!!!!!
*sgrat sgrat*
![]()
__________________
Il DSY su Facebook!!!
Originally posted by Alis
Noi l'abbiamo rifatto così:
13/01/03:
Esercizio 1/C:
SELECT CodFornitore
FROM Computer
GROUP BY CodFornitore
HAVING COUNT (*) >= ALL (SELECT COUNT (*) FROM Computer GROUP BY CodFornitore);
Originally posted by imation
perfetto!! grazie alis
RAga .. giusto per capire .. se si può dategli una occhiata :
SELECT CodFornitore
FROM Computer
WHERE MAX (SELECT COUNT (*)
FROM Computer Where GROUP BY CodFornitore)
é possibile utilizzare cosi --MAX ... GRazie
così si...ma quel Where solo.... no... ![]()
__________________
Il DSY su Facebook!!!
RAgazzi potete scrivere due righe sui JOIN (vari tipologie) e spiegarmi in che occasione utilizzarli ... grazie
Ma non hai il libro??? O le slides della prof? Lì è tutto spiegato bene!
posto qualche esercizio che ho ricevuto da Francesco, potrà essere utile.
__________________
Il DSY su Facebook!!!
rettifica: NON posso postare quel file xè coperto da copyright...

__________________
Il DSY su Facebook!!!
grande alice
| All times are GMT. The time now is 04:46. | Pages (3): « 1 [2] 3 » Show all 42 posts from this thread on one page |
Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.