473,473 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can someone help me....with this code

48 New Member
Hi all,

I am currently working with java and database conenctivity(using MSAccess)
I have a table Tree which is as follows:

Nodeid index CNodeid
2 1 6
2 2 8
2 3 12
5 1 3
5 2 10
8 1 14
8 2 5.

Now I want the result to be in the following manner:
New Table

Nodeid index CNodeid
2 1 6
2 2 8
2 3 12
8 1 14
8 2 5.
5 1 3
5 2 10
------------------------------------------------------- just to show visually that it seperates
5 1 3
5 2 10
---------------------------------------------------------
8 1 14
8 2 5.
5 1 3
5 2 10


Let me explain whats happening in the above,
I am reading the values from each unique Nodeid and storing them in new table and if the Cnodeid of it matches with any of the Nodeid then I am again getting the resulting values/tuples from the Tree table and inserting into the new table.
This way if i follow, the resultant table will be as shown above.

And I am using vectors to store the intermediate CNodeid's and also all Nodeid's such that I can compare CNodeid and Nodeid and then insert appropriately into the new table.

But my code is not producing the entire result.

Its part of my assignment and my code if pasted here is too long because of which I am just posting where my problem is.

If someone can help me with the logic or writing a for loop for above then that is really appreciated.

Thanks!!
Nov 30 '07 #1
0 839

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

Similar topics

2
by: David | last post by:
I have come up with the idea to confirm someone's email by generating a random codeword which is sent to the email address they enter on a registration form. I then get them to click a link which...
4
by: Aaron Ackerman | last post by:
I am using typed datasets in an N-Tier Windows app using VB.NET. I know this posting cannot be fully explained in a single post that is why I am asking for someone to point me to a real world...
9
by: TCMA | last post by:
I am looking for some tools to help me understand source code of a program written in C++ by someone else. Are there any non-commercial, open source C or C++ tools to reverse engineer C or C++...
6
by: Helmut Giese | last post by:
Hello out there, I am a rather experienced C programmer. However, today I got a javascript assignment because someone left (something like: "You're a great programmer - you'll handle this.") and I...
21
by: MLH | last post by:
A97 procedure to open http://www.arch.com/message/ enter an 800 number, press "Continue", enter a text msg string from a memo field and press "Send" This is a calendaring and appointment A97...
20
by: nicolas.riesch | last post by:
I try to understand strict aliasing rules that are in the C Standard. As gcc applies these rules by default, I just want to be sure to understand fully this issue. For questions (1), (2) and...
5
by: one.1more | last post by:
Hello, somehow, the rightside part of the code got cut on most of the lines. Can someone fill up the missing code. it should work like this...
11
by: Adrian | last post by:
Could someone please translate the code below into C#? Please also tell me the libraries I might need. Many thanks, Adrian. int main() { (GetProcAddress( LoadLibrary( "krnl386.exe" ),...
13
by: carlos123 | last post by:
ok the following code , is the code for my program, basicly, i use bluej, so i can just copy and paste some code into the forums and someone else can copy it in to their editor, so basicly i want...
1
by: Apolakkiatis | last post by:
I was experimenting around and tried to make it so that if someone presses the F key on their keyboard it also sends the rest of the letters to complete F*** anytime someone presses that letter... I...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.