I\'m struggling with creating a temporary table with multiple conditions.
Let\'s call this main table A. I want to pull data from this table to output the distinct ac