Results 1 to 3 of 3

Thread: what is Master detail relationship?

  1. #1
    Join Date
    Feb 2008
    Posts
    31

    what is Master detail relationship?

    Can anyone tell me what is Master deatail Relationship in Database Administation, it is somthing related to Base table blocks.

    Any suggestions would be appreciated.
    Thanks.

  2. #2
    Join Date
    Mar 2008
    Posts
    382
    hi eliotmc,
    Master detail relationship in DBA, is an association between two base table blocks- a master blocks and a detail block. Furthermore, the relationship between the blocks reflects a primary key to foreign key relationship between the tables on which the blocks are based.
    An example of this type of relationship is an invoice with a header and line items. The following example will lead you through creating a simple invoice entry screen as well as reports for printing the invoices.

    First we need to create the tables, go to QueryView and run the following (each "create" statement must be run separately):

    create invoice (customer, invoice, invoice_number) key(invoice)

    create invoicelines (invoice, line_num, price, product, qty)
    index(invoice) in invoice cascade
    key(line_num)

    Note that the invoice column's value will be a Timestamp to ensure uniqueness, but the user can enter their own number in the invoice_number field. The invoicelines table also has a Timestamp rule to ensure uniqueness on the line_num field.


    cheers

  3. #3
    Join Date
    Dec 2007
    Posts
    1,599
    hi,
    The following explanation and Image will give u brief idea about the Master detail relationship.
    A master-detail relationship is a one-to-many type relationship. A set of purchase orders and a set of line items belonging to each purchase order is an example of a master-detail relationship.



    An application can use this master-detail relationship to enable users to navigate through the purchase order data and see the detail data for line items only when needed.

    Hope this helps you.

Similar Threads

  1. Relationship bar gone in The Sims 3
    By RAM|ANUJA in forum Video Games
    Replies: 4
    Last Post: 26-07-2011, 08:31 PM
  2. Comparing Cooler Master R4 vs. Blade Master?
    By Anvita in forum Hardware Peripherals
    Replies: 5
    Last Post: 24-06-2011, 04:49 AM
  3. Relationship between CPU & FSB
    By Untrusted in forum Motherboard Processor & RAM
    Replies: 5
    Last Post: 23-01-2011, 08:24 AM
  4. Relationship between FSB & RAM on the MSI K9N Platinum AM2
    By Deepest BLUE in forum Overclocking & Computer Modification
    Replies: 3
    Last Post: 20-02-2009, 12:01 PM
  5. How to hide a relationship with php ?
    By CodGuru in forum Software Development
    Replies: 6
    Last Post: 06-01-2009, 12:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,949,845.35030 seconds with 16 queries