i have the next problem
in the database we use, some of the data was imported from excel and excel made all numbers starting with a 0 lose that 0.
i have to find a way to link 20009 to 020009.
but the database has a rather poor design, so other records that still work can be
49 = 49
020010 = 020010
20011 = 20011
is there a way to, if a foreign key is not equal, switch to a diffrent one (i tried with cases and unions, but nothing worked), or would updating these lines be the best solution (theres about 50K lines in a database, and 5 databases, so updating would be alot of work)
also, this database will stop being used in march 2007, so it would be best if i could get it in a query now.
in the database we use, some of the data was imported from excel and excel made all numbers starting with a 0 lose that 0.
i have to find a way to link 20009 to 020009.
but the database has a rather poor design, so other records that still work can be
49 = 49
020010 = 020010
20011 = 20011
is there a way to, if a foreign key is not equal, switch to a diffrent one (i tried with cases and unions, but nothing worked), or would updating these lines be the best solution (theres about 50K lines in a database, and 5 databases, so updating would be alot of work)
also, this database will stop being used in march 2007, so it would be best if i could get it in a query now.
Comment