Slide di Università su Erd. Il Pdf introduce i diagrammi ERD (Entity Relationship Diagrams), spiegando la loro funzione nella rappresentazione delle strutture di database e illustrando i concetti chiave degli attributi, con esempi pratici e simbologia per Informatica.
Mostra di più30 pagine
Visualizza gratis il Pdf completo
Registrati per accedere all’intero documento e trasformarlo con l’AI.
Entity Relationship Diagrams
CUSTOMER ORDER P * Customer Id P * Order Id First Name * Order Date * Last Name Mobile Number +1- - V 1 I F * Customer Id
Cloud Computing ORACLE SQL Developer Data Modeler
Browser x ?) St Designs [1] Untitled_1 + Logical Mode! Multidimens Show Relational M Hide A Domains [1] + Data Types Create SubView + Process Mor + Business In Create Display ...
File Edit View Team Tools Help A Editor Show Status Bar Browser ? Start Page x Logical (Untitled_1) Designs Browser Alt-B Untit Navigator Alt-N + Log Alt-L + External Log Ctrl-E + A + Files + ... Logical Diagram Notation A View Details DDL Preview Alt+Shift-I Barker Notation Bachman Notation Information Engineering Notation
Undo Move PERSON Redo Undo to Redo to Paste PERSON erson ID Integer ccount ID Integer Layout View Details v All Details Hide Details On Zoom Out Notation A Classification Types Go To Diagram A Show Dynamic Properties Comments Views Print Diagram A Names Only Attributes nv CV LIV AuLILA __ ALL.
Diagram
CLIENT
CLIENT Entity Properties - Entity_2 ...... General ..... Attributes .... Unique Identifiers Relationships Name: CLIENT Subtypes ... Volume Properties Short Name: .Enningar TA
CLIENT P * UID * Mandatory Optional
Details Overview Attributes: Name + x Name Data type 1 Attribute_1 Unknown Attribute Properties Name: Attribute_1 Datatype: Domain Logical Distinct Structured Collection Unknown Preferred Primary UID Relation UID Mandatory Deprecated CLIENT P * UID * Mandatory Optional Type:
Details Overview Attributes: Name + Name Data type 1 Attribute_1 Unknown Attribute Properties Name: 1 Attribute_1 Datatype: Domain Logical 2 Distinct Structured Collection Type: 3 Unknown Preferred 4 5 Primary UID Relation UID Mandatory Deprecated
Symbol Meaning * Mandatory (Required) P Primary Key F Foreign Key PF Primary and Foreign Key (Nothing) Optional CLIENT P * UID * Mandatory Optional
CUSTOMER P * Customer Id * Order Date * Last Name Mobile Number +1- - F * Customer Id 1 1 V ORDER P * Order Id * First Name
Icon Type of relationship Many-to-many (shall not be used) One-to-many One-to-many with an identifying foreign key One-to-one
Name: Relation 1 Use surrogate keys: Source Cardinality Target Cardinality Source: CUSTOMER Target: ORDER Source key: CUSTOMER.CUSTOM ... Target key: Name on Source: Name on Target: Source Entity Synonym: CUSTOMER Target Entity Synonym: ORDER V Source to Target Cardinality: ( * Target to Source Cardinality: -1 Transferable: Transfer Number Description Dominant Role: None V 3 Identifying: 4 Delete Rule: NO ACTION 2 Is target optional? (Yes/No) 3 In case of one-to-one relationship, which is the dominant table? i.e. which table's primary key will be used as a foreign key. 4 Is the foreign key identifying? Will the foreign key be used as a primary key? Source Optional: 1 Target Optional: 2 1 Is source optional? (Yes/No)
CUSTOMER ORDER P * Customer Id P * Order Date PF* Customer Id * First Name * Last Name Mobile Number 1
CUSTOMER Order Id P * Customer Id * Order Date * First Name F * Customer Id * Last Name Mobile Number V ORDER
Symbol Cardinality 0 or 1 Exactly 1 0 or Many 1 or Many
ORDER CUSTOMER P Customer Id P * Order Date * First Name F Customer Id * Last Name Mobile Number Q V
ORDER CUSTOMER P * Customer Id P * Order Date * First Name F Customer Id * Last Name Mobile Number HG - - -
ORDER CUSTOMER P * Customer Id P * Order Date F * Customer Id First Name 41- -- 04 * Last Name Mobile Number
ORDER CUSTOMER P * Customer Id P * Order Date * First Name F * Customer Id Last Name Mobile Number + 1 1
CUSTOMER ACCOUNT * Customer Id Account Id First Name Username Last Name Mobile Number * Password F Customer Id
CUSTOMER ACCOUNT P * Customer Id P Account Id * First Name * Username * Last Name Mobile Number +1 --- O+ * Password F Customer Id
CUSTOMER ACCOUNT P * Customer Id * Account Id * First Name * Username * Last Name Mobile Number HO - - - I+ * Password F * Account Id
CUSTOMER ACCOUNT P * Customer Id P * Account Id * First Name * Username * Last Name Mobile Number +/- - - - -1+ * Password F * Account Id
GAME PLATFORM P * Game Id P * Platform Id Title Platform Name * Price -- 00 Discount
GAME PLATFORM Game Id P * Platform Id * Title Platform Name * Price Discount This is resolved as follows. An intermediary entity is added having the primary key of each table as a foreign key. Two problems with this example: 1. A Game can be left out without a platform 2. The same game with the same platform can appear more than once. GAME GAME LIST PLATFORM P * Game Id P Gamelist Id P Platform Id Title F * Game Id * Platform Name * Price <F * Platform Id >0 - - - It Discount - - - - -04
GAME PLATFORM P Game Id 0 Platform Id * Title * Platform Name * Price 1 1 1 7 This is resolved as the previous example, but a game must be related to at least one platform. In this case we're left with one problem: 1. The same game with the same platform can appear more than once. GAME GAME LIST PLATFORM Game Id P * Gamelist Id P Platform Id Title F * Game Id * Platform Name * Price F * Platform Id 1 - - |+ Discount 1 1 V Discount