J
Jamie Collins
To answer your question field 1 is simply an autonumber and goes from 1 to
984k.
So that's not the key then i.e. 'field 1' = 1 does not identify a
single entity.
Jamie if you look at the example from garys post <<snipped>>
But Gary doesn't know the business, does he? OK, you won't reveal nor
analogize the nature of the business, fair enough. I hope you don't
really have data element names such as 'Field 6' and 'Field 7' ;-)
Can I instead ask you tell me what the relational key or business key
for this table is? What normal form is it in?
The point I'm trying to get at is SQL is designed to query SQL tables;
it's a set-based language. A set has no inherent order but your
'table' seems to rely heavily on sequential row order. I could be
wrong but I suspect you haven't got a SQL table therefore it could
well be the case that SQL is the wrong language to process it with.
yours is a 'staging' table and you need to first process the data intoFrom appearances, Michel would seem to have the correct approach i.e.
a 'SQL' table before it can be queried with SQL.
Jamie.
--