Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to populate many-to-many

RE: How to populate many-to-many

From: Whittle Jerome Contr NCI <Jerome.Whittle_at_scott.af.mil>
Date: Tue, 21 May 2002 09:27:24 -0800
Message-ID: <F001.004661CF.20020521092724@fatcity.com>


Dennis,

M2M's are ugly but a fact of life. I've done what you have suggested. I suggest that you make the combination of server_id and software_id a unique constraint to keep out dupes.

In Access drop down lists are called combo boxes. You can base them on queries. Just make sure the server_id and software_id fields are first in their respective select statements that populate each of the two combo boxes. The actual verbiage should be in the second fields of these queries. If you want to show the verbiage instead of the id number, make the Column Count 2, Bound Column 1, and make the Column Widths something like 0"; 2". Making the first column zero hides the id numbers.

HTH, Jerry Whittle
ACIFICS DBA
NCI Information Systems Inc.
jerome.whittle_at_scott.af.mil
618-622-4145

> -----Original Message-----
> From: dmeng_at_focal.com [SMTP:dmeng_at_focal.com]
>
> I am designing a database our software/hardware inventory and there is a
> many-to-many relationship between 'server' and 'software' table. So I
> created an association table between them to resolve this. While I believe
> this is the right thing to do, I am wondering how we are going to populate
> this association table.
> It seems to me that we have to create a separate screen for this table to
> have the users manually enter the data. Right now this table has only three
> columns - ( server_software_id, server_id, software_id ).
> Bonus question - if we are going to use Access to manually enter data, is
> there any way we can avoid entering the raw numbers ( the association table
> columns are all numeric ). I remember with Oracle Forms you can set up some
> kind of drop down list where you pick the text value and the ids get
> populated behind the scene. I am not a fan of Access, can we do something
> similar?
>
> TIA
>
> Dennis Meng
> Database Administrator
> Focal Communications Corp.
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Whittle Jerome Contr NCI
  INET: Jerome.Whittle_at_scott.af.mil

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue May 21 2002 - 12:27:24 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US