On Wed, Jul 16, 2014 at 3:40 PM, Sytze de Boer <[email protected]> wrote:
> After yesterday, with heart in mouth, I ask the following > > I have a table with large amount of data > It contains Master contract, sub contract, sub-sub contract > pcode N(5) > pcode2 N(7) > pcode3 N(9) > > Example > 3770 > 3770, 377001 > 3770, 377001, 37700101 > 3770, 377001, 37700102 > 3770, 377002 > 3770, 377002, 37700201 > 3770, 377002, 37700202 > ----------------- This is just a flat file. Why would you not normalize the data. Table(s) Contract, SubContract, SubSubContract. Then an index would be "fun". In this instance you just need to combine all three columns into a single index. In reality you may only need to index pcode3 because it is all relative data of the former two columns within. What happens when you get subcontract 100? -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cajidmyjjuggudrl25-zx_pt+b+w-x8_nmgd5k_oxmuo6zgk...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

