[GENERAL] How to optimize query that concatenates strings?

2006-07-07 Thread badlydrawnbhoy
Hi all, I've got a database of URLs, and when inserting new data into it I want to make sure that there are no functionally equivalent URLs already present. For example, 'umist.ac.uk' is functionally the same as 'umist.ac.uk/'. I find that searching for the latter form, using string concatentatio

Re: [GENERAL] Querying for strings that match after prefix

2006-06-03 Thread badlydrawnbhoy
', '') from people > > ... and if you only want to find the ones that start with "mailto:"; > > select replace(address, 'mailto:', '') from people > where address like 'mailto:%' > > John > > badlydrawnbhoy wrote: &g

[GENERAL] Querying for strings that match after prefix

2006-06-02 Thread badlydrawnbhoy
Hi all, I hope this is the right forum for this, but please correct me if somewhere else is more appropriate. I need to locate all the entries in a table that match , but only after a number of characters have been ignored. I have a table of email addresses, and someone else has erroneously enter