Create Table SQL Script in ExcelYou have some data in Excel that you need to import into SQL Server. You don’t have a […] April 15, 2018 in Excel tagged import / table / create / transpose / pivot / excel / sql by Mike
SQL Server HeapPreliminary Information A table can be organized one of two ways: heap or B-tree. If a table has […] April 1, 2018 in SQL Server tagged table / heap / b-tree / SQL Server Data Structures by Mike
SQL Server Multi-Table QueriesThis post serves as a series of links to the different kinds of multi-table queries. The Microsoft Press […] March 12, 2018 in SQL Server tagged table / join / subquery / query by Mike
SQL Sever Many-To-ManyDo you have a database that has two tables that have a many-to-many relationship? What do I mean […] March 10, 2018 in SQL Server tagged books / table / link / relationship / many-to-many / linking / associative / junction / intermediary / authors by Mike
SQL Server Left Joins SimplifiedIn order to more easily understand left joins we will modify Itzik Ben-Gan’s database from the previous post […] March 10, 2018 in SQL Server tagged sql / table / join / left / right / SQL Server Left Joins by Mike
SQL Server Common Table Expressions CTECommon table expressions (CTEs) are another kind of table expression that like derived tables are visible only to […] February 24, 2018 in SQL Server tagged common / with / temp / temporary / table / expression / cte by Mike
SQL Server Create TableYou can create a table using the SSMS GUI, or you can use T-SQL code. This post describes […] February 23, 2018 in SQL Server tagged T-SQL / table / create / create table / sql by Mike
SQL Server Insert Into Select Part 1This post discusses how to insert data from one table into another existing table. The second table must […] December 22, 2017 in SQL Server tagged insert / table / into / select / another / existing by Mike
SQL Server Table ExpressionsWhat is a table expression? Table expressions are named query expressions that represent a valid relational table. Table […] December 9, 2017 in SQL Server tagged table / expression / derived table by Mike
SQL Server Insert Into Select Part 2This post shows you how to insert data into an existing empty table from two other tables using […] October 21, 2017 in SQL Server tagged sql / insert / table / join / into / select / another by Mike
SQL Server Changing Table StructureThe table structure refers to the columns in the table. We can use T-SQL to add a new […] October 17, 2017 in SQL Server tagged structure / table / add / column / alter by Mike
SQL Server ExceptEXCEPT is available in SQL Server starting with SQL Server 2008. EXCEPT returns distinct rows by comparing the […] August 11, 2017 in SQL Server tagged database / sql / table / except by Mike