Quantcast
Channel: SQLServerCentral » SQL Server 2008 » SQL Server 2008 - General » Latest topics
Viewing all articles
Browse latest Browse all 16406

Iterating thru a Tables columns

$
0
0
I have a dataset that i need to iterate thru in a row wise manner where each row has columns that will either be filled with a value or zero.I need to find the first occurance in each row(column) that a non-zero value occurs.I can think of at least one way i can do this but it is very inelegant, and something a bit more clever would suit my vanity... :-Dideas/examples?

Viewing all articles
Browse latest Browse all 16406

Latest Images

Trending Articles



Latest Images