Unix Technical Forum

Help with constraints on object relational tables

This is a discussion on Help with constraints on object relational tables within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi I hope I am posting in the correct places. I am looking for some help that is hopefully ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 10:06 AM
Stephen Reid
 
Posts: n/a
Default Help with constraints on object relational tables

Hi

I hope I am posting in the correct places. I am looking for some help that
is hopefully explained in the example below:

I am looking to create an object relational database with a check constraint
on the relationships. For example:

* I have table called person_tab which is a table of person_t type.
* Person_t type is inherited by the manager_t type and the applicant_t type.
* I have a second table called interview_tab of interview_t type.
* The interview table has two columns (manager and appilcant) that are scope
restrained to the person table.
* I would also like to put check constraints on these columns to say:
----- Manager: check the person_number is less than 20000
----- Applicant: check the person_number is greater than 19999

Can anyone tell me if this is possible and if so how can it be done?

Thanks in advance
Stephen


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 10:07 AM
DA Morgan
 
Posts: n/a
Default Re: Help with constraints on object relational tables

Stephen Reid wrote:
> Hi
>
> I hope I am posting in the correct places. I am looking for some help that
> is hopefully explained in the example below:
>
> I am looking to create an object relational database with a check constraint
> on the relationships. For example:
>
> * I have table called person_tab which is a table of person_t type.
> * Person_t type is inherited by the manager_t type and the applicant_t type.
> * I have a second table called interview_tab of interview_t type.
> * The interview table has two columns (manager and appilcant) that are scope
> restrained to the person table.
> * I would also like to put check constraints on these columns to say:
> ----- Manager: check the person_number is less than 20000
> ----- Applicant: check the person_number is greater than 19999
>
> Can anyone tell me if this is possible and if so how can it be done?
>
> Thanks in advance
> Stephen


This is a bad idea. Create relational tables and object views. You
can find numerous comments on this at http://asktom.oracle.com.
--
Daniel A. Morgan
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com