I have a select dropdown, I need the value selected to update the table results to only show two columns, the first one "Key" and the selected dropdown value.
How can I achieve that? I used the Query JSON with SQL
Select Key, {{select1.value}} from {{query1.data}}
Table columns have a 'Dynamically show key' property that allows you to show/hide them conditionally. You should be able to set your columns to show only when the value of your dropdown is equal to their name:
Doing something like this will hide each column by default. If you want to show all columns until just one has been selected in the dropdown you could do something like {{ !select1.value || select1.value === "email" }}.