Finding out a record

  • Maybe this will help you.

    declare @Desired_CustomerID int

    select top 6500 @Desired_CustomerID = CustomerID

    from dbo.Customer

    order by CustomerID

    select @Desired_CustomerID

    That should return the CustomerID of the 6500th record.

Viewing post 16 (of 15 total)

You must be logged in to reply to this topic. Login to reply