.dsy:it. 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)


Posted by Vale on 12-02-2003 15:15:

cioè come faresti?


Posted by Alis on 12-02-2003 16:48:

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!!!!


Posted by Lunik on 12-02-2003 16:50:

giusti

__________________
Il DSY su Facebook!!!


Posted by Alis on 12-02-2003 16:53:

Originally posted by Lunik
giusti



:D :D :cool:


Posted by Lunik on 12-02-2003 17:15:

:D
Speriamo che domani ci sia qualcosa di simile... :asd:

__________________
Il DSY su Facebook!!!


Posted by Alis on 12-02-2003 17:21:

Speriamo!!!!!


Posted by Lunik on 12-02-2003 17:22:

*sgrat sgrat*

:D

__________________
Il DSY su Facebook!!!


Posted by imation on 12-02-2003 17:44:

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);


perfetto!! grazie alis


Posted by Alis on 12-02-2003 17:49:

Originally posted by imation
perfetto!! grazie alis


Di niente!!


Posted by otty2907 on 12-02-2003 18:14:

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


Posted by Lunik on 12-02-2003 18:17:

così si...ma quel Where solo.... no... ;)

__________________
Il DSY su Facebook!!!


Posted by otty2907 on 12-02-2003 18:20:

RAgazzi potete scrivere due righe sui JOIN (vari tipologie) e spiegarmi in che occasione utilizzarli ... grazie


Posted by Lunik on 12-02-2003 18:21:

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!!!


Posted by Lunik on 12-02-2003 18:23:

rettifica: NON posso postare quel file xè coperto da copyright...

:wall:

__________________
Il DSY su Facebook!!!


Posted by ev619970 on 12-02-2003 18:30:

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.