Thread: Db2 Sql Query
View Single Post
  #14 (permalink)  
Old 08-25-03, 17:41
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,473
I have not used V6.x but you can Try:

Select app_id from mytable where (app_id,seq_id) not in (select app_id,seq_id from mytable where seq_id > 1)

Andy

Quote:
Originally posted by antodomnic
In my local database, the query executed well. But when I try to ran against db2 v6.1 running under OS/390 it is not able to execute, it throws the error

SqlCode=-199 Error: illeagal use of keyword as, token is <hexstring> <charstring> <graphstring> was expected
Can't i run the script against 6.1?. My local database is 7.2 If not what's the alternative solution for my problem?
Reply With Quote