Turn the distinct values of an email column into columns of their own — a one-hot pivot whose column list is not known until the query runs.
Turn the distinct values of an email column into columns of their own — a one-hot pivot whose column list is not known until the query runs.
Opens with the full question.