What you need is a query with correlated subquery using Max:
Select *
from table1 a
where IBPQTN =
(select max(IBPQTN)
from table1 b
where a.IBPSUB = b.IBPSUB)
User Profile
Collapse
-
Declared Global Temporary Table on z/os v7
Hi All,
I'm planning to write a stored procedure which will be executed million times a day by many people, and is planning to use Declared Global Temporary Tables. One of the concern: the static SQL statements that referenced the temp tables are incrementally bound at run time (SQL Reference volume 2). Should one be worried about these incremental bind? Will these binds update DB2 Catalog tables? How long with the bind take place?...
No activity results to display
Show More
Leave a comment: