sql question - mixed case
sql question - mixed case
(OP)
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?
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?
RE: sql question - mixed case
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!