Showing posts with the label sql-server-2012

[FIXED] How can I do an INSERT based on result of a table JOIN?

Issue I have these two tables in my database: SELECT starId, starName, starQuandrant, starCategory…

[FIXED] First instance 0 rest other become 1 in SQL Server

Issue I have a scenario where IF ID , Code and InsertDate is same and if it is 1st entry then it …

[FIXED] T-SQL: Separate String Into Multiple Columns

Issue Ex. Column 1: | word1 word2 word3 word4 | to Col 1: Col 2: Col 3: Col 4: | word1 | …

[FIXED] Filter rows based on comma-separated string

Issue I have a set of ids as a comma separated string like '2461519,2461520,2461521'. I nee…