Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. SuperProgrammer

    fetch first 5 rows only for update

    There is a very simple way to pull this off in DB2: select row_a from table_a where row_a in ( select row_a from ( select row_a, rownumber() over(order by row_a) as row_number from table_a where row_b = 1 and row_c = 'abc' ) as temp where row_number <= 5 )

Part and Inventory Search

Back
Top