SQL Server 2014 Pure SQL

Purchasing Alternatives

Help is here: If something is not working with links, payments, or downloads, do not hesitate to email us at demerp@alphapresspublishing.com and we will respond ASAP with instructions and solutions.

This book is currently available in print format only.

Download the sample database for MS SQL SERVER 2014 Pure SQL

Click here to download the SQL Server Database

Book Description

This book focuses on SQL for analytics and it contains SQL code that will be used by a professional data analyst or data scientist to convert data to information. Given the importance of SQL not only in operational databases but also in data warehouses, online analytical processing cubes (OLAP), data mining, reporting applications and even in Hadoop distributions with Hive, one understands that SQL is a must have tool in the belt of any data professional irrespective of data technology or operational platform.


This book is not intended for database (DBAs) or system administrators (SAs) and as such it does not contain DDL (data definition language) statements to create logins, backups, functions, etc. A professional who wants to become a system administrator should look at other, excellent books in the market. This one concentrates specifically on SQL for data analysis. All the examples have a business purpose such as inventory replenishment, order reporting, shipping calculations, customer segmentation, cycle-time calculations and a myriad of other business related topics.


A fundamental principle from the author of this book is that there should be no software to buy or complex installations on database servers to use this book. The reader will simply download the free SQL Server Express edition on his or her own machine as well as the sample database provided online. The author has devoted a whole chapter with step by step instructions on how to download the free version of SQL Server, how to install it, how to download the sample database, and finally how to start using the book.


Pindaro has worked on hundreds of business databases in the real world for the last 22 years. Pindaro's exciting relationship with databases started with DBase III back in 1991, continuing with Access, MS SQL Server, MySQL, Oracle, and IBM DB2 for a number of years. He is still in love with all of them. After more than twenty years, he still works with data, information processing, integration, and dissemination.


Pindaro also has 17 years of teaching experience on various database subjects at the University level in three different business schools. He taught at all levels, from freshmen to executives with all the inherited fun and challenges. After hundreds of labs and thousands of questions and comments from the students, Pindaro wrote this book to assist his readers in becoming SQL experts so that they can be absolutely successful with their manipulation of data in the working environment. Currently, no matter the position, industry, or job function, it looks like everyone is asking for SQL skills.

Book Table of Contents

CHAPTER 1 SQL FOUNDATION FOR BUSINESS

CHAPTER 2 CREATE, EDIT, AND DELETE TABLES USING SQL

CHAPTER 3 CREATE, EDIT, AND DELETE INDEXES USING SQL

CHAPTER 4 CREATE, EDIT, DELETE RELATIONSHIPS USING SQL

CHAPTER 5 THE SELECT STATEMENT

CHAPTER 6 THE OR AND AND OPERATORS

CHAPTER 7 SORTING RECORDS: THE ORDER BY CLAUSE

CHAPTER 8 WORKING WITH WILDCARD CHARACTERS

CHAPTER 9 THE LIKE OPERATOR

CHAPTER 10 EQUALITY AND INEQUALITY PREDICATES

CHAPTER 11 THE BETWEEN OPERATOR

CHAPTER 12 THE IN OPERATOR

CHAPTER 13 THE DISTINCT PREDICATE

CHAPTER 14 THE TOP PREDICATE

CHAPTER 15 CALCULATED FIELDS

CHAPTER 16 CONCATENATED FIELDS

CHAPTER 17 THE GROUP BY CLAUSE

CHAPTER 18 AGGREGATE FUNCTIONS

CHAPTER 19 CROSSTABING IN SQL SERVER 2012

CHAPTER 20 CONDITIONAL DATA MANIPULATION

CHAPTER 21 UNION OPERATIONS

CHAPTER 22 DUPLICATE, ORPHANED, and UNRELATED RECORDS

CHAPTER 23 WORKING WITH NULLS

CHAPTER 24 TYPE CONVERSION FUNCTIONS

CHAPTER 25 WORKING WITH STRINGS

CHAPTER 26 WORKING WITH DATES

CHAPTER 27 UPDATE SQL STATEMENTS

CHAPTER 28 DELETE STATEMENTS

CHAPTER 29 WORKING WITH JOINS

CHAPTER 30 WORKING WITH SUB-QUERIES

CHAPTER 31 STORED PROCEDURES

CHAPTER 32 TRIGGERS