Book Image

SQL Server on Linux

Book Image

SQL Server on Linux

Overview of this book

Microsoft's launch of SQL Server on Linux has made SQL Server a truly versatile platform across different operating systems and data-types, both on-premise and on-cloud. This book is your handy guide to setting up and implementing your SQL Server solution on the open source Linux platform. You will start by understanding how SQL Server can be installed on supported and unsupported Linux distributions. Then you will brush up your SQL Server skills by creating and querying database objects and implementing basic administration tasks to support business continuity, including security and performance optimization. This book will also take you beyond the basics and highlight some advanced topics such as in-memory OLTP and temporal tables. By the end of this book, you will be able to recognize and utilize the full potential of setting up an efficient SQL Server database solution in your Linux environment.
Table of Contents (13 chapters)

Retrieving and filtering data

As you will have noticed, databases usually consist of many tables where all the data is stored. The AdventureWorks database contains 71 tables, including tables for Customers, Products, Orders, and so on. The table names clearly describe the data that is stored in the table. If you need to create a list of new products, or a list of customers who ordered the most products, you would retrieve this information by creating a query. A query is an enquiry into the database made by using the SELECT statement. The SELECT statement is the first and most fundamental SQL statement that we are going to introduce in this chapter.

The SELECT statement consists of a set of clauses that specifies which data will be included into a query result set. All the clauses of SQL statements are the keywords and, because of that, are written in capital letters. A syntactically...