Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Basi di dati ~ informatica triennale > Soluzione Appelli Castano
Pages (5): « 1 2 3 4 [5]   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Gimmy
.consigliere.

User info:
Registered: Jun 2008
Posts: 117 (0.02 al dì)
Location: Palazzolo Milanese
Corso: Informatica Magistrale
Anno:
Time Online: 22:56:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

penso che dopo aver dichiarato la chiave esterna, debba mettere di fianco il vincolo, quindi er esempio:

foreign key(codvend) refernces venditore(codice) on delete no action

dovrebbe essere cosi...

19-01-2009 12:33
Click Here to See the Profile for Gimmy Click here to Send Gimmy a Private Message Find more posts by Gimmy Add Gimmy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Metteus
.precettore.

User info:
Registered: Oct 2007
Posts: 94 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 13:20:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Counter65
avete ragione vanno minimizzate le relazioni.

per quello di giugno, non ho capito perchè non è scritta la partecipazione di E2 in R1 e ho solo un dubbio su E3, ci va la chiave esterna su A11?

il 2 del gennaio 06:

1,N - 3,N
0,N - 0,6
1,10- 2,N

non sono sicuro ovviamente... :)


Ho un dubbio sull'ultima, io ho messo 0,10 e 2,2 perche dice " un esperto revisiona non piu di 10 articoli " non specifica che ne debba revisionare almeno 1, come invece dice nella prima .."deve effettuare revisioni..." NOn vi pare ?!

thx

19-09-2009 09:49
Click Here to See the Profile for Metteus Click here to Send Metteus a Private Message Find more posts by Metteus Add Metteus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Metteus
.precettore.

User info:
Registered: Oct 2007
Posts: 94 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 13:20:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by morte2097
io l'esercizio del 14 l'ho fatto così
E1(A11,A12,A13*,A14,A21*,A22*) A11 C.P A21,A22 C.E R2 assorbita
E2(A21,A22,A23,A11,AR1) A21,A22 C.P A11 C.E R1 assorbita
E3(A31,A11) entrambe C.P


anche secondo me è cosi pero l'ultima ho fatto cosi :

E3(a11,a31) dove la coppia a11,a31 è chiave primaria e a11 è chiave esterna.

19-09-2009 10:35
Click Here to See the Profile for Metteus Click here to Send Metteus a Private Message Find more posts by Metteus Add Metteus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Metteus
.precettore.

User info:
Registered: Oct 2007
Posts: 94 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 13:20:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Gimmy
io l'ho risolto così (chiavi primarie sottolineate e chiavi esterne in grassetto):

E1(A11,A12,A21,A22,AR3)
E2(A21,A22,A23,A11,AR1)
R2(A11,A21,A22)

doivrebbe essere = a quello di counter65 con la modifica che ha detto r1cky...

mentre l'esercizio 2 del 14 giugno 2006 l'ho risolto cosi:

E1(A11,A12,A13,A14,AR1,A21,A22)
E2(A21,A22,A23)
E3(A11,A31)

è giusto?


nella e1 io ho messo che a21 e a22 possono assumere valori nulli, poiche il vincolo di cardinalita minima è 0.
nella r2 invece va messo anche a11 chiave esterna e coppia a21,a22 chiave esterna.
Che ne dite ?

19-09-2009 10:51
Click Here to See the Profile for Metteus Click here to Send Metteus a Private Message Find more posts by Metteus Add Metteus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 08:09.    Post New Thread    Post A Reply
Pages (5): « 1 2 3 4 [5]   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.095 seconds (53.61% PHP - 46.39% MySQL) con 23 query.