> You could use upper() similarly - lower() is better for Unicode data, like > mine. John, thank you. Excellent. I have database encoding UNICODE. Why lower() is better than upper()? Andrus. ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match