Relations in Designer ERD

Dears,
i was creating ERD in oracle designer and i faced this issue:
i have 4 tables a,b,c,d
primary key in a is com_no which is a foreign key in b,c
so primary key in b is b_seq, com_no
and primary key in c is c_seq , com_no
both b and c primary keys are referenced from a foriegn key in d so i suppose the primary key in d
is d_seq, b_seq,c_seq, com_no
but when generating ERD i will have the primary key like this
d_seq, b_seq,c_seq, b_com_no,c_com_no
is this correct? if no how to manage?
thanks.

First of all, are you really working in the Entity/Relationship Diagrammer (ERD)? Or are you really creating database diagrams in the Design Editor? The reason I ask is that ERD doesn't create "Foreign Keys", it creates "Relationships". True, when you run the Database Design Transformer (DDT), the relationships will be transformed into foreign keys, but while you can create and designate key columns yourself, you normally don't - you let DDT create them.
Actually, what DDT wants to do, unless you set preferences to tell it not to, is create surrogate primary keys from an Oracle Sequence. Then the foreign keys are JUST foreign keys, they are NOT part of the primary key. So table A gets a primary key, A_ID, which is generated from A_SEQ. B gets a primary key, B_ID, and a foreign key, A_ID. C gets a primary key C_ID, and a foreign key, A_ID.
Now you are saying that D has a relationship to BOTH B and C. This is why it is good to use the ERD and define entities, attributes and relationships, and not jump directly to design tables, columns and foreign keys. Exactly what is the relationship between D and B, and D and C? And how does D relate to A? ERD would let you name your relationships and more clearly define them, and ask if this correctly describes the data your system must collect.
For instance, I get the feeling that D is an intersection table, and that it is defining a many to many relationship between different rows in A, via their related rows in B and C. In this case, D will have its own primary key, D_ID, and foreign keys to B, B_ID, and to C, C_ID. Notice that with this arrangement, you don't need any instances of A_ID in the D table. You can get to the right two rows of A through the foreign keys in B and C.

Similar Messages

  • Database design (ERD )for Inventory Management System

    Dear All,
    I am going to develop a simple Inventory Management System software using C# .NET for my learning. After searching different forums, many people have suggested to first create a database design for the software. I want a database design, in short, an ERD
    diagram for simple Inventory Management System which shows proper entities(tables), attributes and relationship between entities.
    It would be highly helpful for me as I am newbie to C# and databases.
    Thanks,
    momersaleem

    Dear Rebecca,
    Thanks for you suggestions.
    As I am going to develop IMS for learning purposes so I think I wouldn't need to go in detail regarding Customer name and addresses. However, I am still thinking of adding country attribute in customers' table which I think will be helpful to sort out customers.
    What's the difference between a purchase and an order?  They're usually the same thing, which doesn't mean you're
    wrong, but what are you picturing here? Purchase entity will be used to keep record of purchases you made and an order entity will be used to keep record of orders that cutomers placed.
    Pricing:
    Any order system needs to manage two very distinct bits of data that are easy to confuse. The price in the Product entity is the current
    price. The price in the Order entity is the selling
    price. Not at all the same thing--current price is almost certainly going to change over time. Selling price won't.
    Does it mean that I'll change the price attribute for product to current_price and add selling_price to order table which will help to keep record of price at the time of order?
    Why did you include a quantity field in the Products table? Is it meant to represent stock on hand?
    Yes you are right. It represents stock in hand.
    Could you please recheck the entities relationships as I am not confirmed whether these are correct or not?
    Thanks,
    momersaleem

  • Relational database design

    i apologise in advance for the banality of this question, i
    have been designing basic sites for my business for years and am
    comfortable with html, and have recently designed a complex site
    havig susssed .css and coldfusion code written though dw.
    I CANNOT MAKE THE LEAP TO GET MY HEAD ROUND RELATIONAL
    DATABASES and want to integrate some dynamic application forms
    (which i can code in CF).
    Can anyone point me towards a resource that will walk me
    though how to build a simple (then a complex) relational database
    that wont send me to sleep or make my eyes glaze over.
    Its a brain block that is now causing me stress, but i just
    dont get it...
    SAVE ME
    Ta

    no worries. i can sympathize with trying to grasp new
    concepts. problem is that double posting just makes it more
    difficult for people to follow the thread(s).

  • Related to Designing

    Hi,
    I am looking this site since from few months and am having fun with it.
    Getting addicted to it and Loving it. It is informative. Thanks to all the Java community.
    This time I want you guys to through some light on designing, what should be the approach to solve any problem at hand.
    Now a days J2EE applications are following more and more model
    driven architectures (Please correct me if i am wrong) which means the developers no need to write much code, so that they concentrate only
    on business logic and all the other code is generated automatically. Many companies are building such frameworks to generate the code automatically to make development time less.
    Here at this point like me developers are more and more are getting
    opportunities to involve in designing part. Most of the interviewers are
    also thinking that knowing a bit of UML is enough to do the designing.
    But that is not the reality. Here i am confused (not only me, I guess all
    who are young into development) like how to approach to solve a
    problem. How to start the design for a problem after analysing?
    1) Analyse
    2) Identify the complexities
    3) Identify the reusable components
    4) Start designing the interfaces
    i am not sure what might be the best way..
    Please post your comments on this for the good of young developers like me.
    Post your comments like, you have a problem at your hand and how you will approach to solve. (Please don't say that it depends on the
    problem, i know it is, but still i believe that there should some common
    things which we need to consider for any problem.)
    Thank you all again.
    Mahesh.

    problem. How to start the design for a problem after
    analysing?
    1) Analyse
    2) Identify the complexities
    3) Identify the reusable components
    4) Start designing the interfaces
    i am not sure what might be the best way..Gather requirements, find components, define responsibilities, define interfaces. Then design the components in detail.

  • Searching for a good relational database design tool

    Hi!
    I am designing an oracle database for our plant, and I want to use a entity-relationship diagram tool to create it.
    I want to design the data diagram with it, and generate creation code and run it to create the DB on our oracle server.
    I would appreciate that someone suggest good quality tools that can be used to do entity-relationship diagrams and implement the db not only on oracle, but to SQL server as well, as future designs for other projects may be implemented in SQL server.
    A small list of quality tools with their noteworthy features would be greatly appreciated.
    Best wishes to all!

    For Oracle database, Oracle Designer is the best.
    If you want to be able to use it for various databases you might think of:
    - ERwin
    - Embarcadero ER Studio
    - Sybase power designer

  • Is there going to be relative CSS-Designs

    The new feature "content" with the new textfields, where the Text is updated on all Layouts (Desktop, Tablet, Phone) is incredibly awesome!
    But I am missing on more feature, which would make work a lot easier and faster for layout desgin.
    For now, I have to redesign each layout by hand.
    Lets say, I have a "NEWS"- Page for example and one textfield with the same content on each layout. There are differen stlyes in one textbox:
    - Heading
    - Text
    Each style is defined by its own.
    Now, there should be a way, where I can define individual styles for each layout. Lets say in my phone layout I want the heading to be a little bigger and have a different color, I can adjust the style and say, for phone you shoud have xy settings and for tablet these.
    In that way I could create a new text-box, or update a existing text box, with the new content feature, style it (in just one layout) and muse automatically styles the relative styles, because it knows, if you use this style in desktop, use these settings in mobile or tablet.
    So I don't have to update all styles manually.
    It would be great, if there is coming something like that!
    Best regards,
    Markus

    Thanks for the suggestion , currently we need to do this manually by creating style and applying to created content frame. This would be feature request where the style is applied automatically selecting the content.
    Thanks,
    Sanjit

  • Relational Star Schema with oWB 10g

    Hi,
    It is an interesting forum. I like to explore the different approached to build ETL using OWB to load Star Schema built around Oracle 10g relational structures.
    How do we take advantage of additional features of Oracle DB 10g and OWB 10gR2?
    What features does help? Which one should stay away from?
    Thanks in advance.
    Ram

    Hi ,
    You can use Oracle SQL Developer Data Modeler .
    SQL Developer Data Modeler provides a full spectrum of data and database modeling tools and utilities, including modeling for Entity Relationship Diagrams (ERD), Relational (database design), Data Type and Multi-dimensional modeling, full forward and reverse engineering and DDL code generation. The Data Modeler imports from and exports to a variety of sources and targets, provides a variety of formatting options and validates the models through a predefined set of design rules.
    Oracle SQL Developer Data Modeler can connect to any supported Oracle Database and is platform independent
    http://www.oracle.com/technology/products/database/datamodeler/index.html
    Thanks,
    Sutirtha

  • BI Technical Design Review Criteria/Best Practice Assessments

    Dear Experts,
    I am currently involved in conducting a pre-build BITechnical Design Review i.e. Data Model structure/Extractor/Transformation Logic/Data Flow Diagrams.
    Are there any tangible criteria/review template/methods out there to ensure all components are included in a BI design and that they conform to the SAP Best Practices?
    Thanks,
    Jony

    Hi jonathan,
    The BW Project guidelines can be as follows ,
    Stages in BW project
    1 Project Preparation / Requirement Gathering
    2 Business Blueprint
    3 Realization
    4 Final Preparation
    5 GO Live & Support
    Project Preparation / Requirement Gathering
    Collect requirement thru interviews with Business teams /Core users / Information Leaders .
    Study & analyze KPI 's (key figures) of Business process .
    Identify the measurement criteria's (Characteristics).
    Understand the Drill down requirements if any.
    Understand the Business process data flow if any .
    Identify the needs for data staging layers in BW – (i.e need for ODS if any)
    Understand the system landscape .
    Prepare Final Requirements Documents in the form of Functional Specifications containing :
    Report Owners,
    Data flow ,
    KPI’s ,
    measurement criteria’s,
    Report format along with drilldown requirements .
    2 Business Blueprint
    Check Business content against the requirements
    Check for appropriate
    Info Objects - Key figures & Characters
    Check for Info cubes / ODS
    Check for data sources & identify fields in source system
    Identify Master data
    document all the information in a file – follow standard templates
    Prepare final solution
    Identify differences (Gaps) between Business Content & Functional
    specification. propose new solutions/Developments & changes if required at different levels such as Info Objects ,Info cube , Data source etc . Document the gaps & respective solutions proposed– follow standard templates
    Design & Documentation
    Design the ERD & MDM diagrams for each cube & related objects
    Design the primary keys/data fields for intermediate Storage in ODS
    Design the Data flow charts right from data source up to Cube .
    Consider the performance parameters while designing data models
    Prepare High level / Low level design documents for each data model.--- follow standard templates
    Identify the Roles & Authorizations required and Document it – follow standard templates
    final review of design with core BW users .
    Sign off the BBP documents
    3 Realization
    Check & Apply Latest Patches/Packages ...in BW & R/3 systems.
    Activate/Build & enhance the cubes/ODS as per data model designs...maintain the version documents .
    Identify & activate Info objects / Master data info sources / attributes ,prepare update rules
    Assign data sources .prepare transfer rules , prepare multi providers . prepare Info packages .
    perform the unit testing for data loads….both for master data & transaction data .
    develop & test the end user queries .
    Design the process chains ,schedule & test
    create authorizations / Roles …assign to users ..and test
    Apply necessary patches & Notes if any .
    freeze & release the final objects to quality systems
    perform quality tests .
    Re design if required . (document changes, maintain versions)
    4 Final Preparation
    Prepare the final check list of objects to be released .identify the dependencies & sequence of release
    perform Go Live checks as recommended by SAP in production system
    keep up to date Patch Levels in Production system
    Test for production scenarios in a pre-production system which is a replica of production system .
    Do not Encourage the changes at this stage .
    freeze the objects .
    5 GO Live & Support
    keep up to date Patch Levels
    Release the objects to production system
    Run the set ups in R/3 source system & Initialize Loads in BW
    Schedule Batch jobs in R/3 system (Delta loads)
    schedule the process chains in BW .
    Performance tuning – on going activity
    Enhancements - if any
    You can get some detailed information in the following link.
    http://sap.ittoolbox.com/documents/document.asp?i=3581
    Try to go to ASAP implementation roadmap.
    https://websmp103.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000420636&_SCENARIO=01100035870000000202
    Check the links below that gives you brief overview of the above steps .
    https://websmp201.sap-ag.de/asap
    http://www.geocities.com/santosh_karkhanis/ASAP/
    ASAP
    https://websmp201.sap-ag.de/asap
    http://www.geocities.com/santosh_karkhanis/ASAP/
    https://service.sap.com/roadmaps
    https://websmp104.sap-ag.de/bi
    ***Please reward if useful.**
    Blue Print:
    http://www.sap.com/services/servsuptech/bestpractices/index.epx --- look for blueprint
    http://iris.tennessee.edu/Blueprint/BW/BW-Blue%20Print-Final.doc
    http://help.sap.com/bp_biv335/BI_EN/html/Business_Blueprint.htm
    You can get some detailed information in the following link.
    http://sap.ittoolbox.com/documents/document.asp?i=3581
    also please chck out
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2e8e5288-0b01-0010-2ea8-bcd4df5084a7
    a hwo to on BI7.0 upgrade .. also as suggested check out the BW upgrade roadmap on the support portal..
    Hope it helps..
    CSM Reddy
    Assign points if helpful
    Message was edited by:
            CSM REDDY

  • Design problem

    Hi all,
    I have a question related to design. suppose there are 3 classes: a, b and c and there is a event defined in class a. however, class b is resposible for that event. so how would you do? pass class b instant to class a?

    dophine wrote:
    I have another question. when class b is handled an event fired by class a, I want to pass the result to class a to indicate whether it is successful or not? how can I do it? thanksMaybe it's time to describe the real problem you're trying to solve. I feel the doctor who has a patient that comes to him and says, "I have a friend and he has this problem..."

  • Design questions - beginner

    Hello,
    I'm just getting started with BDB XML and the resources here have been very helpful. To play around with it, I imported 100,000 records from my relational db into BDB XML. I imported it as one document that sort of looks like this:
    <people>
    <person><name>John></name><age>22</age></person>
    <person>..</person>
    ...100k times
    </people>
    Querying this database using dbxml.exe has been extremely slow, even after using indexes. So, I have the following questions:
    1. Should I import it has a single document containing 100k children, or is it better to import it as 100k different documents?
    2. Are there any resources available for best practices in designing the XML database, especially from the PoV of a relational database designer?
    Thanks
    Amit

    Amit,
    Using the correct indexes and release 2.3.10 your performance should be reasonably good even with a single, large document. In general, it can be better to use individual documents, especially if you want to add/remove them individually. If there is no need to keep them as one document, I'd recommend using separate documents.
    Also, if you want better answers on tuning queries, you need to provide more information, such as the indexes you've declared and the queries you are using.
    Regards,
    George

  • Would 3D designer work in China??

    Hello, every one, we have a position available, but the work place should be in Beijing China, would you a 3D designer work in China??
    Here is the details about this position!
    Company name: Zhongjia
    Company address: Beijing
    Position: Creative Director
    Company Introduction:
    Zhongjia has always been to "meet and exceed customer expectations" as criteria for the work since it is established. Zhongjia experienced brand service from the very beginning of the industry, especially in the northern region in the past 11 years. Our team continuously accumulates experience in the industry.
    In the past 11 years, we have accumulated valuable experience in brand service: 11 years, we hardly remember the praise from our customers - and these praise encourage and push us to provide more professional service for our customers.; 11 years, we can’t forget the clients’ tolerance, respect and support-and these will be engraved in our mind; Eleven years, we enjoy the happiness and success from the busy day and night.
    To become the best international and diversified marketing planning advertising company is Zhongjia’s common vision and goal
    In Zhongjia, we value the talents and creative ability, respect and care about everyone; recognize the value of each individual, so that your heart is always full of passion and creativity forever.
    In Zhongjia, you will work with a group of people who are open mind and willing to work as a team. Your hard work will be fully appreciated and recognized!
    In Zhongjia, we will provide competitive salary and comprehensive training about company culture, products and professional skills etc for our excellent staff!
    Some of our clients:TISSOT、SWATCH、ESPRIT、ONLY、JACK&JONES、PUMA、SAMSONITE、SPEEDO etc。
    Amount: 1
    Job description:
    Grasp the design direction and draw the draft (both hand-sketch and 3D effect pictures from computer);
    Complete the overall graphic design independently and efficiently.
    Participate in the competitive bidding program design and state design plan
    Manage the design project team and to complete the proposal efficiently.
    Requirements:
    Bachelor’s degree from Art colleges or related majors. Good drawing ability and exhibition design experience are required. Have successful cases or mature works.
    Experienced in 3D graphic design、Roodshow and stage design, creative and space sense are basic required. Be familiar with the brand design and creative stimulation and supervision.
    Grasp the needs of the client —— touched clients by the soul of the design, and especially can use these to persuade our clients. Highly executive and the knowledge of the construction materials and structures are required. Good communication skill in explaining designs.
    Sensitive to different kinds of industry information, and have special view、clear thought and strong design ability about them.
    Excellent comprehension and perception, familiar with the budget control and time arrangement.
    Candidates with one of the following are preferred:
    2+ year related experience in 4A AD companies
    3+ year AD design work experience or relative professional design experience. Experienced in-depth brand service.
    If you are interested in brand business, and also meet our job requirements, please send your resume and your design work (graphic design : PDF format, 5-10 work in one compressed package) together to:
    [email protected]

    I'm interested in your position. My resume can be found at here . I'm an expert on everything from Oracle DBs and backend SQL programming, dynamic websites using php with oracle and sql to provice rich web experiences to my clients. I spend my free time reading everything from Oracle user manuals to making homemade natural dog food for my pets. I do it all, any job utilizing my oracle skills would be great though.

  • Designing view

    I need documentation related to designing ui elements as per requirement.
    Please reply

    Hi ,
    For UI Element Guide you can refer this:
    [http://help.sap.com/saphelp_nw70/helpdata/en/9f/656442a1c4de54e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/9f/656442a1c4de54e10000000a155106/frameset.htm]
    For Tutorials:
    [http://help.sap.com/saphelp_nw04/helpdata/en/e9/1fc0bdb1cdd34f9a11d5321eba5ebc/content.htm]
    i hope these links will help you
    regards,
    ramesh

  • Remove hidden relation

    HI Gentlemen,
    I set up an ER diagram with a many-to-many relation. Designer created a mapping table automatically. Then I removed the relation and set up my mapping table manually under a different name, which I now enhanced with several new attributes. The many ends of the two new relations were mandatory, with the relations in the primary key, as usual. Now when I generated the diagram, it delivered both the old mapping table and my new one. Since then, whatever I do, the old many-to-many relation does not show up any longer; however, the old mapping table always generates. Question: How can I remove the old relation from the Repository?
    Thank you very much,
    Miklos HERBOLY

    It is just a tip, maybe it will help you: try to remove old relations from Wastebasket in a RON.
    Helena Marková

  • Oracle Designer 6i/9i

    why there are two things related to designer
    1) Oracle9i designer
    2) Oracle designer6i
    TIA

    Don't know if I'm sure what you're asking, but 6i and 9i are just two different versions of the same product.

  • Designer 8.0 Form compatibility with Reader 6.0 - error message

    I created a form in Designer 8.0. I saved it to be compatible with 7.0, but for the most part need for it to be compatible with Reader 6.0, which is not an available option. This form actually works fine in Adobe Reader 6.0 but whenever a user initially opens the form, a message pops up advising the user that all features may not work and recommending that the user upgrade. Clicking on OK then produces a new message advising the user that they must upgrade and providing the link. Notwithstanding that message, if the user clicks Cancel the form opens and can be used as intended, with a few nonfunctioning features (like the Print button on the form). Most of the intended users are running Adobe Reader 6.0, so any help on preventing one or both of messages would be very much appreciated. (Note: This same issue was posted on March 2, 2006 related to Designer 7.0, but no answer was supplied. Im hoping there is an answer to this issue for Designer 8.0).

    I created a form in Designer 8.0. I saved it to be compatible with 7.0, but for the most part need for it to be compatible with Reader 6.0, which is not an available option. This form actually works fine in Adobe Reader 6.0 but whenever a user initially opens the form, a message pops up advising the user that all features may not work and recommending that the user upgrade. Clicking on OK then produces a new message advising the user that they must upgrade and providing the link. Notwithstanding that message, if the user clicks Cancel the form opens and can be used as intended, with a few nonfunctioning features (like the Print button on the form). Most of the intended users are running Adobe Reader 6.0, so any help on preventing one or both of messages would be very much appreciated. (Note: This same issue was posted on March 2, 2006 related to Designer 7.0, but no answer was supplied. Im hoping there is an answer to this issue for Designer 8.0).

Maybe you are looking for

  • Initial TouchPad Setup: Device will not power on!

    This morning I received my new 32gb WiFi HP TouchPad in the mail. I opened up the contents and than began to charge the device; following the start-up guide. When I plugged in my microUSB charger the center button began flashing (alternating left and

  • MsAccess to Oracle migration

    Hello I'm trying to migrate a msAccess database to oracle. First of all, I do not have any MsOffice component in my workstation. I couldn't even create a Access connection, I could only do that after installing a MS file called AccessDatabaseEngine.

  • Displaying Currency as Negative Value

    Hi All, I have an object Amount. Based on a condition, i.e if movement_type is 500 then i need to display the amount field as negative value. IF movement_type = 500 then amount should be displayed as negative value.If amount is $10 then it shuld be d

  • Can't import DLL

    Hi All, I'm trying to use the libsie API to open .sie files from SoMat (there is a plugin for this data format for LabVIEW and DIAdem but it doens't work). I've previously imported dll's using the import wizard with a lot of sucess but I dont' know m

  • Anyone knows about using java to get data from MS Access database.

    hi there anyone knows about using java to get data from MS Access database? thank you