Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql question - mixed case

Status
Not open for further replies.

bhudc

IS-IT--Management
Dec 23, 2008
1
US
I am trying to execute a sql:

SELECT * FROM table1
WHERE first_name = 'John'

This returns a record even when the data (column first_name) stored in the database is in upper case. Does Teradata ignore the case of strings?
 
Not sure of your specific needs, but this might be what you're looking for:

SELECT * FROM table1
WHERE first_name(casespecific) = 'John';

The other option is to set up the column to be casespecific when you initially create the table:

CREATE TABLE table1,
(
first_name VARCHAR(20) CASESPECIFIC
);

Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top