<div dir="ltr">Justin, I think you might be right - we can thrash it out a bit more later<div><br></div><div>Thanks for all the input, once we have a chat later - and formalize the problem better (there are normalization rules????? - just kidding - i was between a rock and a hard place, this works - just needs improved)</div><div><br></div><div>If it still is giving me problems, we can pick up the conversation then.</div><div><br></div><div>Thanks</div><div><br></div><div>G</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 May 2015 at 15:06, Justin Mitchell <span dir="ltr"><<a href="mailto:justin@discordia.org.uk" target="_blank">justin@discordia.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote:<br>
<br>
<br>
</span><span class="">> table1<br>
> <a href="http://table1.id" target="_blank">table1.id</a>: autonum<br>
> active: bool<br>
> t2id_1: int<br>
> t2id_2: int<br>
> t2id_3: int<br>
> t2id_4: int<br>
> t2id_5: int<br>
> t2id_6: int<br>
><br>
><br>
><br>
> table2<br>
> <a href="http://table2.id" target="_blank">table2.id</a>: autonum<br>
> expected_date: datetime<br>
> actual_date: datetime<br>
> claim_date: datetime<br>
> value: datetime<br>
<br>
</span>There are several questions about the data structure that need to be<br>
asked here, will one table2 entry only be used once, or could it be<br>
referenced by multiple table1 entries ?<br>
<br>
if the former, then the t2id_* fields are unnessary<br>
if the latter, then they should be replaced with a link table.<br>
<br>
but the list might not be the place to thrash this out, will see you<br>
later.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Hackspace mailing list<br>
<a href="mailto:Hackspace@swansea.hackspace.org.uk">Hackspace@swansea.hackspace.org.uk</a><br>
<a href="http://swansea.hackspace.org.uk/mailman/listinfo/hackspace" target="_blank">http://swansea.hackspace.org.uk/mailman/listinfo/hackspace</a><br>
</div></div></blockquote></div><br></div>