• its a binary AND operation.

    5 = 00000101

    17 = 00010001

    the only column in BOTH values binary representation above is the first column, representing 2^0, so the value is 1.

    16 = 00010000

    17 = 00010001

    when AND-ing 16, and 16, the only shared column si the 2^4 column, which is 16.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!