MS SQL – iSSPL http://blog.inoxh.com Simple Solutions to a Simpler World. Fri, 01 Nov 2013 14:31:46 +0000 en-US hourly 1 https://wordpress.org/?v=4.6 Adding data in MS SQL from one table to another table http://blog.inoxh.com/adding-data-in-ms-sql-from-one-table-to-another-table/ Fri, 01 Nov 2013 14:31:46 +0000 http://blog.inoxh.com/?p=294 INSERT INTO TestTable (FirstName, LastName)
SELECT FirstName, LastName
FROM Person.Contact
WHERE EmailPromotion = 2

for more details please check

]]>
MS SQL Server Update multiple table http://blog.inoxh.com/ms-sql-server-update-multiple-table/ Mon, 21 Oct 2013 08:51:11 +0000 http://blog.inoxh.com/?p=291 Table A will be updated with data from Table B UPDATE A SET A.NAME = B.NAME FROM TableNameA A, TableNameB B WHERE A.ID = B.ID ]]> Copy rows from one table to another, ignoring duplicates using Distinct http://blog.inoxh.com/copy-rows-from-one-table-to-another-ignoring-duplicates-using-distinct/ Wed, 13 Jun 2012 03:16:26 +0000 http://blog.inoxh.com/?p=101 SELECT DISTINCT city
INTO city
FROM [city$]

]]>