473,394 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

supertype/ subtype

1
anyone??

am trying to create a database (mysql) from a super type subtype relation. my question is how do i create the tables with the right constrain (PK, FK)

here is the proposed tables t

t1 Parts with fields part_no, description, location, manufactured?, purchased?
t2 Manucfatured_part........ with fields.......M-part_no, routing_no
t3 Purchased_part .........with fields........P_part_no, purchase_date
t4 supplies..........with fields.......P_part_no,Supplier_ID, unit_price
t5 Supplier........with fields......Supplier_id, Supplier_name

the supertype is the Parts and the subtype is Manufactured part and Purchased part
Nov 24 '09 #1
0 2404

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: George C. Peters Iv | last post by:
ASPXCodeBehind vs. Code I work in a large development shop and as different people work on the same project, we've noticed that the SubType for the vb codebehind files will change to either...
22
by: Mike Krous | last post by:
Hello All, I am having some problems modeling a relationship properly and could use some advice. My final question is at the bottom of this post (everything else is explanation). Basically what I...
4
by: Konstantinos | last post by:
I cant find much info or a code on how to do this. I have a generic table called Contact. Then I have tables Person and Company that are subtypes of contact each with attributes that are specific...
2
by: Angel Of Death | last post by:
I have a method. It takes some XML as a parameter. Depending on the content of the XML it should create a specific object and call a KNOWN method. So: public void PersistXml(string XmlData){} ...
34
gcoaster
by: gcoaster | last post by:
Hello Everyone! I have a question regarding "cascading combobox(s) list(s)" I would like: ComboBox 2 to show results from ComboBox 1's selection, then ComboBox 4 to show results from...
4
by: =?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?= | last post by:
Hello. It's been about a year since I last did some C++ programming. I am now paying the price as I try to catch up with it. The following is the initial snippet of a simple program I am...
3
by: nflacco | last post by:
Is there a convient way to do a supertype/subtype heirarchy in mysql and do queries on the supertype to return sets of subtypes? For example, suppose I have a table with several types of military...
1
dmjpro
by: dmjpro | last post by:
List<Number> li1 = ..; List<Integer> li2 = ..; li1 = li2; //li1 can't be subtype of li2 Explain: If li1 gets updated with the Sub Class of Number and which is not integer then accessing li2...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.