Page 1 of 2 12 LastLast
Results 1 to 15 of 26

Thread: Schema ER di merda

  1. #1
    Lieutenant Commander Warbarbie's Avatar
    Join Date
    Nov 2004
    Location
    Rome
    Posts
    16.296

    Default Schema ER di merda

    Sarà sicuro una cazzata, ma io odio i db e farli mi sta ancora più sul cazzo, ma chi mi paga vuole sta cosa quindi gg
    Ho una entità, che chiameremo per comodità "FARMACO" con 2 attributi (Regime e Tipologia)
    Ora questi 2 attributi devono per forza diventare entità, quindi ognuno di loro avrà una relazione (0,n) con l'entità FARMACO
    Possibile gestirle con una unica relazione tripla(in foto sotto)?????????????
    Grazie

    Last edited by Warbarbie; 11th April 2011 at 19:51.


  2. #2
    Lieutenant Commander Marphil's Avatar
    Join Date
    Nov 2003
    Location
    Roma
    Posts
    27.336

    Default

    E' pure ora che te lo guadagni sto stipendio eh
    on GW2 Spvp
    MMORPGITALIA Spvp Team Tournament Winner
    S1 Legendary Division
    S2 Legendary Division
    S3 Legendary Division
    S4 Legendary Division

  3. #3
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Tabelle di censimento, tutte con solo ID, DESCRIZIONE (se ti serve la desc):
    FARMACO, REGIME, TIPO
    Tabelle di relazione, con ID_FARMACO e ID_<ALTRO>:
    RELAZIONE_FARMACO_TIPO, RELAZIONE_FARMACO_REGIME

    Non ho capito un cazzo del disegno che hai fatto, ma questa è la prima cosa che mi viene in mente (in base a quello che ho capito) perdendoci solo 30 secondi visto che sono appena arrivato dal lavoro.

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


  4. #4
    Lieutenant Commander Warbarbie's Avatar
    Join Date
    Nov 2004
    Location
    Rome
    Posts
    16.296

    Default

    Quote Originally Posted by Tanek View Post
    Tabelle di censimento, tutte con solo ID, DESCRIZIONE (se ti serve la desc):
    FARMACO, REGIME, TIPO
    Tabelle di relazione, con ID_FARMACO e ID_<ALTRO>:
    RELAZIONE_FARMACO_TIPO, RELAZIONE_FARMACO_REGIME

    Non ho capito un cazzo del disegno che hai fatto, ma questa è la prima cosa che mi viene in mente (in base a quello che ho capito) perdendoci solo 30 secondi visto che sono appena arrivato dal lavoro.
    Ma quindi per forza 2 tabelle di relazione? 1 con REGIME e 1 con TIPO?
    Non posso unire le 2 tabelle di relazione in una unica?


  5. #5
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Sì certo, se la vuoi a tre ne fai una con i tre id, che sarebbero ovviamente una PK, ed eventualmente una desc per ogni terna.
    (sicuro che regime e tipo non siano correlati tra loro?)

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


  6. #6
    Lieutenant Commander Devon's Avatar
    Join Date
    Jan 2004
    Location
    Pisaurum
    Posts
    28.274

    Default

    semi ot

    ma come sei riuscito a farti assumere?

    fine semi ot

  7. #7
    Lieutenant Commander Warbarbie's Avatar
    Join Date
    Nov 2004
    Location
    Rome
    Posts
    16.296

    Default

    Quote Originally Posted by Tanek View Post
    Sì certo, se la vuoi a tre ne fai una con i tre id, che sarebbero ovviamente una PK, ed eventualmente una desc per ogni terna.
    (sicuro che regime e tipo non siano correlati tra loro?)
    Nessuna correlazione tra di loro
    Ma poi nel momento in cui creo le 3 tabelle, la relazione non avendo attributi posso anche non crearla giusto?


  8. #8
    Lieutenant Commander Gramas's Avatar
    Join Date
    Oct 2003
    Location
    Roma,Sotto la collinetta artificiale..
    Posts
    12.056

    Default

    Quote Originally Posted by Shagaz View Post
    semi ot

    ma come sei riuscito a farti assumere?

    fine semi ot
    sanità pubblica + alemanno

    Gia so con chi dovrò prendermela quando mancherà un farmaco in ospedale mentre sono ricoverato
    IL CANALE DEL NATIONAL
    Quote Originally Posted by Arthu View Post
    E' incredibile quanta gente si sia reputata sempre al di sopra della media.
    Che strano se fossero tutti cosi al di sopra della media la media sarebbe piu alta.

  9. #9
    Lieutenant
    Join Date
    Feb 2004
    Location
    Bresso
    Posts
    4.683

    Default

    Sei bravissimo a disegnare.

  10. #10
    Senior Chief Petty Officer Tacitus's Avatar
    Join Date
    Feb 2004
    Location
    monte altissimo
    Posts
    1.533

    Default

    soprattutto.... ma che calligrafia..

  11. #11
    Lieutenant
    Join Date
    Jan 2007
    Location
    Roma
    Posts
    4.723

    Default

    va beh è fatto co paint




    spero

    Last Exile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Unknowns
    Nuida FollettoInLutto Bard Tiarna . . . . . . . . . . . . . . . . Deo The Undaunted Rune Priest
    Amiag Blademaster Silver Hand. . . . . . . . . . . . . . Viol The Sacrificed Shadow Warrior
    Viola Vampiir Grove Protector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    Nero Incubus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DarkBane
    Naida Cabalist Phoenix Knight. . . . . . . . . . . . . . . . . . . . . . . . . . . . Viole No-Stealth Scout

  12. #12
    Lieutenant Commander Warbarbie's Avatar
    Join Date
    Nov 2004
    Location
    Rome
    Posts
    16.296

    Default

    Certo che è fatto con paint -.-


  13. #13
    Warrant Officer
    Join Date
    Sep 2005
    Location
    Roma
    Posts
    3.360

    Default

    Quote Originally Posted by Warbarbie View Post
    Certo che è fatto con paint -.-
    il DB?

  14. #14
    Lieutenant Commander Faramjr's Avatar
    Join Date
    Apr 2004
    Location
    ...
    Posts
    7.488

    Default

    Quote Originally Posted by oMG View Post
    il DB?
    buahha

  15. #15
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Quote Originally Posted by Warbarbie View Post
    Nessuna correlazione tra di loro
    Ma poi nel momento in cui creo le 3 tabelle, la relazione non avendo attributi posso anche non crearla giusto?
    Non ho capito.
    Se non crei la tabella di relazione come diamine le metti in relazione?
    Eventualmente può esistere solo quella se i singoli elementi non hanno altri attributi.

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[Output: 100.66 Kb. compressed to 85.49 Kb. by saving 15.17 Kb. (15.07%)]