Search results
1 cze 2021 · Standard SQL Functions Cheat Sheet. TEXT FUNCTIONS. CONCATENATION. Use the || operator to concatenate two strings: SELECT 'Hi ' || 'there!'; -- result: Hi there! Remember that you can concatenate only character strings using. ||. Use this trick for numbers: SELECT '' || 4 || 2; -- result: 42.
Learning SQL eBook (PDF) Download this eBook for free. Chapters. Chapter 1: Getting started with SQL. Chapter 2: ALTER TABLE. Chapter 3: AND & OR Operators. Chapter 4: Cascading Delete. Chapter 5: CASE. Chapter 6: Clean Code in SQL.
1 cze 2021 · Standard SQL Functions Cheat Sheet. TEXT FUNCTIONS. CONCATENATION. Use the || operator to concatenate two strings: SELECT 'Hi ' || 'there!'; -- result: Hi there! Remember that you can concatenate only character strings using ||. Use this trick for numbers: SELECT '' || 4 || 2; -- result: 42.
* Powerful, database-specific features such as SQL Server's PIVOT and UNPIVOT operators, Oracle's MODEL clause, and PostgreSQL's very useful GENERATE_SERIES function * Pivoting rows into columns, reverse-pivoting columns into rows, using pivoting to facilitate inter-row calculations, and double-pivoting a result set
Chapter 1, “Background to T-SQL Querying and Programming,” provides a theoretical background of SQL, set theory, and predicate logic; examines the relational model and more; describes SQL Server’s architecture; and explains how to create tables and define data integrity.
Let's Get Started Week 1 introduces SQL from a historical and theoretical perspective. The first statement you learn about is the SELECT statement, which enables you to retrieve data from the database based on various user-specified options. Also during Week 1 you study SQL functions, query joins, and SQL subqueries (a query within a query).
This book starts with a theoretical background to T-SQL querying and programming in Chapter 1, laying the foundations for the rest of the book, and basic coverage of creating tables and defining data integrity.