def detect_label_column(column_names):
    """ Detect the label column - which we display as the label for a joined column.

        If a table has two columns, one of which is ID, then label_column is the other one.
    """
    if (column_names and len(column_names) == 2 and "id" in column_names):
        return [c for c in column_names if c != "id"][0]

    return None