Minor: set database type for SQL Server DDL
For SQL Server #697, use inner join instead of IN