I want a to write an SQL query in Microsoft SQL Server in PyQt of the type:
list=['Engineer', 'Doctor', 'Lawyer']
select * from Occupations where OccupationName in (list)
I have read various posts online but they seem to be for SQL Lite or MySQL databases. How would I do this for Microsoft SQL?
Also, in MS SQL the string values need to be enclosed in double quotes instead of single quotes used in the list items. How would I do this?