Yes, Sergey, you are absolutely correct. At first, it seemed that the numbers lined up, but they didn't so I tried the BINTOC() function and it worked perfectly!
Thank you!
Cecil
>Your index is no good because
>5+1 = 4+2 = 3+3 and so on
INDEX ON BINTOC(groupid) + BINTOC(lineitem) TAG grpqteline