vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Dan Is "COUNTER" a column in SYSIBM.COLUMNS? You cannot reuse a column correlation name in the same select list. What you should be able to do is this: Select counter, counter - 1000 as ordinal from ( Select rrn( columns ) AS Counter, FROM SYSIBM.COLUMNS COLUMNS) AS X Cheers Serge -- Serge Rielau DB2 SQL Compiler Development IBM Toronto Lab |