$ db2 "select ROW_NUMBER() over() Row_Count, DEPTNUMB, DEPTNAME from org"
ROW_COUNT DEPTNUMB DEPTNAME
-------------------- -------- --------------
1 10 Head Office
2 15 New England
3 20 Mid Atlantic
4 38 South Atlantic
5 42 Great Lakes
6 51 Plains
7 66 Pacific
8 84 Mountain
8 record(s) selected.