Ciao ragazzi, volevo farvi una domanda, si puo' fare una relazione che come attributi ha solo chiavi? nel senso:
PARTITA --- RELAZIONE ---- GIOCATORE
relazione ha 2 attributi che sono anche chiavi
help me! :shock:
- nanaki
- Ingegneria Informatica - Triennale
- Giovedì, 09 Dicembre 2004
- Subscribe via email
Comment
There are no comments made yet.
Accepted Answer
Pending Moderation
Attributi di una relazione non possono essere identificanti.
In altre parole una relazione non può avere campi chiave (stiamo nel modello ER).
Ciao
In altre parole una relazione non può avere campi chiave (stiamo nel modello ER).
Ciao
Comment
There are no comments made yet.
- more than a month ago
- Ingegneria Informatica - Triennale
- # 1
Accepted Answer
Pending Moderation
anche io fino a ieri avevo il dubbio, ma oggi me lo ha tolto il caro Minenna in persona...
Comment
There are no comments made yet.
- more than a month ago
- Ingegneria Informatica - Triennale
- # 2
Accepted Answer
Pending Moderation
E che lo hai chiesto a fare qui allora?
Comment
There are no comments made yet.
- more than a month ago
- Ingegneria Informatica - Triennale
- # 3
Accepted Answer
Pending Moderation
CREATE TABLE relazione ([chiave di partita] [tipo di dato],
[chiave di giocatore] [tipo di dato]
PRIMARY KEY ([LE DUE CHIAVI])
FOREIGN KEY [LE DUE CHIAVI])
scusa la fretta
[chiave di giocatore] [tipo di dato]
PRIMARY KEY ([LE DUE CHIAVI])
FOREIGN KEY [LE DUE CHIAVI])
scusa la fretta
Comment
There are no comments made yet.
- more than a month ago
- Ingegneria Informatica - Triennale
- # 4
Accepted Answer
Pending Moderation
so come si creano le tabelle marco2981, volevo solamente sapere se e' corretto...
nash, mi ha detto che gli attributi possono essere chiavi, ma a me suona strano che ci possano essere solo attributi-chiave
nash, mi ha detto che gli attributi possono essere chiavi, ma a me suona strano che ci possano essere solo attributi-chiave
Comment
There are no comments made yet.
- more than a month ago
- Ingegneria Informatica - Triennale
- # 5
Accepted Answer
Pending Moderation
scusa. è strano nel senso che non l'hai mai visto? questo sì. però secondo me si può fare. vediamo se ho capito: "relazione" non ha attributi descrittivi ed è individuata solamente dalle due chiavi "adiacenti"? ciao
Comment
There are no comments made yet.
- more than a month ago
- Ingegneria Informatica - Triennale
- # 6
Accepted Answer
Pending Moderation
PARTITA--------------RELAZIONE----------------GIOCATORE
| |
| |
att1 att2
dove att1 e att2 sono sottolineati! capito?
| |
| |
att1 att2
dove att1 e att2 sono sottolineati! capito?
Comment
There are no comments made yet.
- more than a month ago
- Ingegneria Informatica - Triennale
- # 7
Accepted Answer
Pending Moderation
ahhhh, adesso ho capito. sì, si può fare benissimo: la chiave per RELAZIONE è formata da tre attributi (due di partita e uno di giocatore, se ne ha uno altrimenti tutti gli attributi che formano la chiave di giocatore)
Comment
There are no comments made yet.
- more than a month ago
- Ingegneria Informatica - Triennale
- # 8
Accepted Answer
Pending Moderation
occa**o, no, non e' cosi'... avevo messo degli spazi che sono stati gentilmente tolti dal forum... i due attributi sono di relazione non di partita... scusami ma sono stato stupido che non ho controllato subito il msg come era venuto...
Comment
There are no comments made yet.
- more than a month ago
- Ingegneria Informatica - Triennale
- # 9
Accepted Answer
Pending Moderation
va ugualmente bene, si può fare. l'importante è ricordare che: una relazione è univocamente identificata da gli attributi che costituiscono le chiavi delle entità che partecipano alla relazione, quindi quelle ci devono essere
Comment
There are no comments made yet.
- more than a month ago
- Ingegneria Informatica - Triennale
- # 10
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »