DebbieChapman
Programmer
I work in telecoms company, and I'm looking into a legacy sytem to try and work out a more effiecient way of doing stuff. I've found one problem, that I cant see any other way to do. Wonder if anyone else has any ideas.
We keep a table of customers, and there telephone numbers (telephone numbers incl dialing code, eg 02476123456,the 02476 is the dialing code). We also keep a table of Dialing codes, eg 02476, 02479 etc etc)
each day we recieve a file of numbers called from that telephone number, and we rate the calls accordingly, unfortunaltely, do do this we need to seperate the dialing code from the number.
At the moment to do this we have a temp table that contains the telephone number, then 5 plus extra temp fields which are filled in by by Left([TelephoneNumber],4) Left ([telephoneNumber],5) etc etc, once this is done we then use several update querys to update a field for the DialingCode, by first matching the temp field with 6 digits to the dialing code table, then matching the temp field with 5 digits to the dialing code table etc etc.
This is very time consuming, especially when i can recive a file with 20,000 records in it.
I Would welcome any alternative suggestions
Thanks
We keep a table of customers, and there telephone numbers (telephone numbers incl dialing code, eg 02476123456,the 02476 is the dialing code). We also keep a table of Dialing codes, eg 02476, 02479 etc etc)
each day we recieve a file of numbers called from that telephone number, and we rate the calls accordingly, unfortunaltely, do do this we need to seperate the dialing code from the number.
At the moment to do this we have a temp table that contains the telephone number, then 5 plus extra temp fields which are filled in by by Left([TelephoneNumber],4) Left ([telephoneNumber],5) etc etc, once this is done we then use several update querys to update a field for the DialingCode, by first matching the temp field with 6 digits to the dialing code table, then matching the temp field with 5 digits to the dialing code table etc etc.
This is very time consuming, especially when i can recive a file with 20,000 records in it.
I Would welcome any alternative suggestions
Thanks