Jump to content

[SOLVED] Unique records on a union


kickstart

Recommended Posts

Generally understood LIKE to be pretty inefficient and as such something to be used with care.

It is -- in the WHERE clause -- but you're already paid that performance penalty.

 

And as mentioned earlier, drop UPPER() unless you've explicitly requested a case-sensitive collation.

It is -- in the WHERE clause -- but you're already paid that performance penalty.

 

Only if the db recognises that the LIKE clauses are duplicated and doesn't carry them out twice, which is why I wanted to try the "having" so that there was no way for it to do them twice.

 

All the best

 

Keith

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.