Red Gate forums :: View topic - Assuring all parents get children
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Data Generator 1
SQL Data Generator 1 forum

Assuring all parents get children

Search in SQL Data Generator 1 forum
Post new topic   Reply to topic
Jump to:  
Author Message
dlutz



Joined: 16 Feb 2008
Posts: 18

PostPosted: Wed Jul 23, 2008 9:43 pm    Post subject: Assuring all parents get children Reply with quote

I have a Case table and a CaseParty table. Relationship is 1-N. CaseParty table holds FK to PK of Case table.
The Case table is generating 100 rows and the CaseParty table is generating 300 rows. All Case table rows must have a CaseParty row - a case without a party makes no sense.
For the CaseGUID column in the CaseParty table, setting the Population method to 'Repeat key values at random' leaves me with 8 cases with no party - not acceptable.
If I set this property to 'Set key values between 1 and 5 times' I get 'The generator for column CaseGUID could not generate any more values.' on the CaseParty table.
Can somebody inform what I need to do to get all Cases to get a Party AND get all the Party rows I request?
Much appreciated. BTW, the output of this product is being MUCH appreciated in the shop where I work. We look forward to supporting you as the product evolves into ever greater usefulness over time.
Back to top
View user's profile Send private message
dlutz



Joined: 16 Feb 2008
Posts: 18

PostPosted: Wed Jul 30, 2008 7:01 pm    Post subject: Reply with quote

I am kind of surprised by the lack of any response to this post. Does this mean that nobody has ever encountered this problem? Or am I not clear in the description of the problem?
Back to top
View user's profile Send private message
benhall



Joined: 14 Dec 2007
Posts: 98

PostPosted: Thu Jul 31, 2008 4:40 pm    Post subject: Reply with quote

Hi David,

Sorry for the reply in getting back to you.

The only way I can think of doing this would be to have 3 to 3, this would mean every case would have a party.

Would this meet your requirements?

Thanks

Ben
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group