Does anyone know and tell how to implement physical entities with super type sub type logical solution in DB2 database.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Its basically the same whatever RDBMS you are using:-
VEHICLES is your supertype which contains attributes common to all vehicles, CARS is a subtype of VEHICLES which contains attributes that pertain only to CARS, the V_TYPE attribute in the VEHICLES table identifies which subtype applies.
The primary keys of the supertype and subtype should be the same value and you can enforce this with a foreign key relationship.