Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 542589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:27:46+00:00 2026-05-13T10:27:46+00:00

I have a question taken from pg 16 of IBM’s Nested Relational Database White

  • 0

I have a question taken from pg 16 of IBM’s Nested Relational Database White Paper, I’m confused why in the below CREATE command they use MV/MS/MS rather than MV/MV/MS, when both ORDER_#, and PART_# are one-to-many relationships.. I don’t understand what value, vs sub-value means in non-1nf database design. I’d also like to know to know more about the ASSOC () clause.

Pg 16 of IBM’s Nested Relational Database White Paper (slight whitespace modifications)

    CREATE TABLE NESTED_TABLE (
      CUST# CHAR (9) DISP ("Customer #),
      CUST_NAME CHAR (40) DISP ("Customer Name"),
      ORDER_# NUMBER (6) DISP ("Order #") SM ("MV") ASSOC ("ORDERS"),
      PART_# NUMBER (6) DISP (Part #") SM ("MS") ASSOC ("ORDERS"),
      QTY NUMBER (3) DISP ("Qty.") SM ("MS") ASSOC ("ORDERS")
    );

The IBM nested relational databases implement nested tables as repeating attributes and
repeating groups of attributes that are associated. The SM clauses specify that the attribute is either repeating (multivalued–“MV”) or a repeating group (multi-subvalued–“MS”). The ASSOC clause associates the attributes within a nested table. If desired, the IBM nested relational databases can support several nested tables within a base table. The following standard SQL statement would be required to process the 1NF tables of Figure 5 to produce the report shown in Figure 6:

    SELECT CUSTOMER_TABLE.CUST#, CUST_NAME, ORDER_TABLE.ORDER_#, PART_#, QTY
    FROM CUSTOMER_TABLE, ORDER_TABLE, ORDER_CUST
    WHERE CUSTOMER_TABLE.CUST_# = ORDER_CUST.CUST_# AND ORDER_CUST.ORDER_# =
    ORDER _TABLE.ORDER_#;

                                       Nested Table
                Customer #       Customer Name Order #        Part #   Qty.
                AA2340987        Zedco, Inc.      93-1123     037617   81
                                                              053135   36
                                                  93-1154     063364   32
                                                              087905   39
                GV1203948        Alphabravo       93-2321     006776   72
                                                              055622   81
                                                              067587   29
                MT1238979        Trisoar          93-2342     005449   33
                                                              036893   52
                                                              06525    29
                                                  93-4596     090643   33
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:27:46+00:00Added an answer on May 13, 2026 at 10:27 am

    I’ll go ahead and answer my own question, while pursuing IBM’s UniVerse SQL Administration for DBAs I came across code for CREATE TABLE on pg 55.

    ACT_NO INTEGER FORMAT '5R' PRIMARY KEY
    BADGE_NO INTEGER FORMAT '5R' PRIMARY KEY
    ANIMAL_ID INTEGER FORMAT '5L' PRIMARY KEY
    

    (see distracting side note below) This amused me at first, but essentially I believe this to be a column directive the same as a table directive like PRIMARY ( ACT_NO, BADGE_NO, ANIMAL_ID )

    Later on page 5-19, I saw this

    ALTER TABLE LIVESTOCK.T ADD ASSOC VAC_ASSOC (
        VAC_TYPE KEY, VAC_DATE, VAC_NEXT, VAC_CERT
    );
    

    Which leads me to believe that tacking on ASSOC (VAC_ASSOC) to a column would be the same… like this

    CREATE TABLE LIVESTOCK.T (
        VAC_TYPE ... ASSOC ("VAC_ASSOC")
        VAC_DATE ... ASSOC ("VAC_ASSOC")
        VAC_NEXT ... ASSOC ("VAC_ASSOC")
        VAC_cERT ... ASSOC ("VAC_ASSOC")
    );
    

    Anyway, I’m not 100% sure I’m right, but I’m guessing the order doesn’t matter, and that rather than these being an intransitive association they’re just a order-insensitive grouping.

    Onward! With the second part of the question pertaining to MS and MV, I for the life of me can not figure out where the hell IBM got this syntax from. I believe it to be imaginary. I don’t have access to a dev machine I can play on to test this out, but I can’t find it (the term MV) in the old 10.1 or the new UniVerse 10.3 SQL Reference

    side note for those not used to UniVerse the 5R and 5L mean 5 characters right or left justified. That’s right a display feature built into the table meta data… Google for UniVerse FORMAT (or FMT) for more info.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a general question (taken from some computer science test) i'd like to
I have a basic PHP question, take the code below for example, let's say
I have the following php code, post values are taken from a form- <?php
I have an image, taken from a live webcam, and I want to be
Well, this is another question taken from this practice exam that was given to
Example code taken from another SO Question var test = context.Tests .Include(Question.QuestionLocale) .FirstOrDefault(); If
This snippet (taken from this question ) compiles fine with g++ (as seen), so
I have the following script that is taken from a python game development book.
I have a sequence of images taken from a camera. The images consists of
The below definition is taken from Hibernate association mapping tutorial here Each book is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.