Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Increament id if running total for group exceeds value

$
0
0
hi all,

as you can see below, i want to add an incrementing basket id if running total exceeds 10 for that group.

order 1 , 2 and 3 are for group id 3 but order 3 would exceed the running total of 10, therefore it goes into the next bask

Viewing all articles
Browse latest Browse all 3145

Trending Articles