Is there an easy way to get the current item number in a simple SELECT? I need to deliver a column based on a calculation that includes the current index number in select. I simplify my problem to the extreme, but, roughly speaking, here is an example:
SELECT column1 * ITEMINDEX FROM table
Hope I cleared up. I am using SQL Server. Thanks.
source share