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.

Relation between Parent Child

This is a discussion on Relation between Parent Child within the Java forums, part of the Software Development category; I have a table ie already exist,& has a column 'cataegory'.Now i want to create a sub-category table that will be related to the first table.My problem is i can't ...

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2008
Junior Member
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
laliasonu is on a distinguished road
Relation between Parent Child

I have a table ie already exist,& has a column 'cataegory'.Now i want to create a sub-category table that will be related to the first table.My problem is i can't be able to map.
for Ex-
first table
columns are-----id:int,categoryname:String
And it has a value 'java' under categoryname

i want to insert corejava,Servlet,Jsp,Struts..as subcategory in subcategory column of the second table

And that will related to java category of the first table.

Pls any one can ans!

Thanks
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-05-2009
Junior Member
 
Join Date: May 2007
Location: Coimbatore
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Akilan Paul is on a distinguished road
Re: Relation between Parent Child

create category id in the main table (first tbl) and in subtable create subcategoryid and categoryid (two columns), now easly u can relate these two table with categoryid
Reply With Quote
Reply

  Geeks Talk > Software Development > Java

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Find the Relation Remasri Brainteasers 4 12-10-2008 08:40 AM
Basic relation between AP,AR, GL and PO Geek_Guest Oracle Apps 3 09-09-2008 03:37 PM
Parent Child Table Relationship srivastava.sujata Oracle 4 04-03-2008 10:32 AM
Relation between QTP and VB Script chhaya_rani QTP 1 01-04-2008 05:38 PM
Populate parent child hierarchy using Informatica Geek_Guest Data Warehousing 0 07-08-2007 08:19 AM


All times are GMT -4. The time now is 03:30 AM.


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