Search the web
Sign In
New User? Sign Up
VisualBasic_Official · Visual Basic . VB.net . VBS . ASP.net
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Nested loops   Message List  
Reply | Forward Message #9466 of 9531 |
Re: Nested loops

You need to create three tables. Table1 will contain 1000 records
Table2 should related to Table1 as many-to-one and Table3 that will relate to
Table2 as many-to-one

Something like this:

Table1

id Autonumber
Desc Text 50


Table2

id Autonumber
table1_ID Longint
Desc Text 50


Table3
id Autonumber
table2_ID Longint
Desc Text 50


Table two will contain 8 records (or however many) for every one in Table1 and
Tabl3 will contain 10 records (or however many) for every one in Table2

Then you will run two queries. Let's Assume that the selected id from Table1
will be equal to 5 then

1. Select * from table2 where table1_ID = 5

2. Select * from Table3 where Table2_ID in (Select ID from table2 where
table1_ID = 5)

Display the result of the first query in one Grid and second query in another
grid


--- In VisualBasic_Official@yahoogroups.com, "mary369_99" <honeypot4u@...>
wrote:
>
> Hi
>
> I want to generate 4 sets of numbers with relationships. First set will have
+- 1000, second set about 8000 and the third about 600 000. This will then be
saved to the database. When selecting a number in the third list, I want to be
able to see it's parent in the first group etc. This is for a store Room System
>
> Every number in the first group, will have 8 children in the second group, and
50 children in the third group.
>
> How can I accomplish the task?
>
> I am using VS 2005.
>
> Regards
>





Sat Jul 11, 2009 4:59 pm

mgaft1
Offline Offline

Forward
Message #9466 of 9531 |
Expand Messages Author Sort by Date

Hi I want to generate 4 sets of numbers with relationships. First set will have +- 1000, second set about 8000 and the third about 600 000. This will then be...
mary369_99
Offline Send Email
Jun 22, 2009
4:47 pm

You need to create three tables. Table1 will contain 1000 records Table2 should related to Table1 as many-to-one and Table3 that will relate to Table2 as...
mgaft1
Offline
Jul 11, 2009
4:59 pm

ERD Please...
johansmax
Offline Send Email
Jul 29, 2009
11:46 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help