Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Parent Child Table Relationship

This is a discussion on Parent Child Table Relationship within the Oracle forums, part of the Databases category; Do you think – that is possible to have a foreign key enable on a child table with the data which is not available in parent table....

Go Back   Geeks Talk > Databases > Oracle
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Oracle Oracle 9i & Oracle 10g Knowledge Base Learn and Share Oracle Technology related articles, white papers, tutorials / study materials, example codes, FAQ's, Tips and Tricks.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2008
Junior Member
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
srivastava.sujata is on a distinguished road
Parent Child Table Relationship

Do you think – that is possible to have a foreign key enable on a child table with the data which is not available in parent table.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-17-2008
Contributing Member
 
Join Date: Sep 2007
Location: hyderabad
Posts: 37
Thanks: 5
Thanked 4 Times in 4 Posts
ashalalaxmi2002 is on a distinguished road
Re: Parent Child Table Relationship

its not possible to enter data in child table which is not available in parent table.

it will gives an error like integrity constraint voilated.parent key not found,when ur trying to insert.
Reply With Quote
  #3 (permalink)  
Old 01-17-2008
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,853
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: Parent Child Table Relationship

If you can do that ,then what is the use of foreign key then.
Reply With Quote
  #4 (permalink)  
Old 02-06-2008
Junior Member
 
Join Date: Feb 2008
Location: Mumbai
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
vikash_vision is on a distinguished road
Re: Parent Child Table Relationship

Quote:
Originally Posted by srivastava.sujata View Post
Do you think – that is possible to have a foreign key enable on a child table with the data which is not available in parent table.
Well this is not possible. This doesn't make sense either, how can u have a child record without parent. But one can have a view without the actual parent table, for that one must use FORCE keyword while creating a view.
Reply With Quote
  #5 (permalink)  
Old 04-03-2008
Junior Member
 
Join Date: Mar 2008
Posts: 4
Thanks: 1
Thanked 1 Time in 1 Post
sandeep5580 is on a distinguished road
Re: Parent Child Table Relationship

Hi All,

One silly question from my side.

Is it possible to have a parent child relationship with parent as a database block and child as non database block ? Both of them are having a cust_id column as a primary key.

Thanks and Regards,
Sandeep
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Method to excute child objects script ypraveen_77 QTP 2 01-06-2008 02:54 AM
Child tables cat_id is not deleting priyaranjan_BISWAL MY SQL 0 09-29-2007 03:47 AM
Selected project does not have any child BC mail2diptesh Seibel 1 07-24-2007 03:12 AM
Populate parent child hierarchy using Informatica Geek_Guest Data Warehousing 0 07-08-2007 08:19 AM
Child appear to be read-only until i do a manual refresh Lokesh M Seibel 0 07-02-2007 12:04 PM


All times are GMT -4. The time now is 08:33 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved