def rotate_jump_code_sql(jumpcode, rotation):
    """
    Create a piece of SQL command that rotates the jumpcode
    to the right value
    """
    q = str(jumpcode) + "-" + str(jumpcode) + "%12"
    q += "+(" + str(jumpcode) + "%12+" +str(rotation) + ")%12"
    return q