Postgresql – Python: The best way to select columns in SQL based on the User input
I have 2 columns in the table, Column A and Column B User inputs: A, B, C User can give any of the above inputs. If user input is A then column B needs to be selected. If user input…