eddoria01 wrote:It worked in Access and I copied the SQL but did not work as TM1 SQL is different. The data is coming from an AS400.
Using % instead of * worked. Thanks for the tip.
You're welcome. One thing that you need to be aware of though; TM1 doesn't
have an implementation of SQL. When you use an ODBC connection in TM1 you are simply connecting to a database which is being run by another application; Access, SQL Server, Oracle, MySQL, DB2 (if you must) or whatever. TurboIntegrator passes whatever code you put in the query window to that database, the database processes it and returns the relevant records. TI doesn't do any processing on the query at all; all of that is done on the database side. TI simply processes whatever data is fed to it as a result of the query.
For that reason the syntax that you need to use is generally worked out on the database first, because a lot of RDBMS's have their own syntactical quirks and (as you've found) an SQL query that works in one database may not work in another. TI won't know the difference; all it knows is what the text of the query to send to the database is, and what the records are that it gets back.