Microsoft SQL Server 2012 Bible
by Adam Jorgensen, Jorge Segarra, Patrick LeBlanc, Jose Chinchilla, Aaron Nelson
Summary
Merging data is the heart of SQL, and it shows in the depth of relational algebra as well as the power and flexibility of SQL. From natural joins to exotic joins, SQL is excellent at selecting sets of data from multiple sources.
The challenge for the SQL Server database developer is to master the theory of relational algebra and the many T-SQL techniques to effectively manipulate the data.
Manipulating data with SELECT is one of the core benefits of SQL Server. Although joins are the most natural method to work with relational data, subqueries are an effective tool for manipulating and querying data as well.
This chapter established the foundation for working with SQL, covering the SELECT statement, expressions, joins, unions, subqueries, and CTEs.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access