SQL Server 2012 SQL Comprehensive

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 2012 SQL Comprehensive

Click here to download the SQL Server Database

Book Description

This book is primarily intended for a training or educational environment in a College, University, or technical school. It has two specific goals: The first one is to train the student on T-SQL from its most basic statements to the level of a skilled professional. The second and equally important is to expose the student to the usage of SQL in the business world. That is why 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. As such, this book will be a very good fit for an MIS class in a business school. To that purpose it contains 307 exercises in its 32 chapters which the student can complete during class time. It also contains ten questions after each chapter which the instructor can use for in class discussions or test generation. There are 330 questions in total in the book. Finally, it contains sixty-two case studies, two at the end of each chapter, for additional work as homework or for sharpening the skills learned in each chapter.


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 instructor will be able to work independently of any IT departments in the College, University or other school. The student will simply download the free SQL Server Express edition on his or her own 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, how to install it, and finally how to start using the book. The instructor should spend zero time on all these tasks.


The book is the culmination of Pindaro's 15 years of teaching 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 the students 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.


For the instructor, Pindaro tried to make this book as friendly as possible. He personally tested the book in his own classes to see how the labs work in the class/training environment. He has also prepared a separate booklet that the instructor can receive as a pdf/word file (upon confirmation of instructor status) that includes the solutions to all the case studies. If the instructor still has any questions, Pindaro is always available for help at alphapress@hotmail.com. He loves responding to questions.


The goal is to learn how to use databases for real business tasks. 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.

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