I am trying to extract a row having three columns from an application called HiPort. I am using an ODBC stage. The Three columns are col1 varchar(4),col2 varchar(10), date varchar(10). I have used these same column definitions in my datastage job. When I execute the following sql
I get an error stating that col1, col2, date does not exist.select col1, col2, date from PERFORMANCE where col1 ='a1' AND date = '2006-08-08'
When i remove the date column and execuet the sql
, i get the desired results.select col1, col2 from PERFORMANCE where col1 ='a1' AND date = '2006-08-08'
I even tried using an alias 'Date as Dt' but to no avail. Any idea how I can used the date column name in my select query in the ODBC stage?
PS: I am able to use the Date column name as mentioned in the first sql in other applications(non-datastage) to retrieve the results. This is quite puzzling. Please help.
Thanks,