Search results
1 cze 2021 · Fetch all names that start with any letter followed by 'atherine': SELECT name FROM names WHERE name LIKE '_atherine'; Fetch all names that end with 'a': SELECT name FROM names WHERE name LIKE '%a'; USEFUL FUNCTIONS. Get the count of characters in a string: SELECT LENGTH('LearnSQL.com');-- result: 12 Convert all letters to lowercase: SELECT ...
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;
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.
There are two types of functions in Oracle. 1) Single Row Functions: processed in a query. . 2) Group Functions: Single row or Scalar functions return a value for every row that is. a based on the values returned by the que.
1 maj 2023 · Here is the full list of topics coverd in this free SQL book: Getting started with SQL; Identifier; Data Types; NULL; Example Databases and Tables; SELECT; GROUP BY; ORDER BY; AND & OR...
25 sie 2021 · This comprehensive cheat sheet is packed with syntax for different text and numeric functions, CASE WHEN statements, handling NULL, date and time types, INTERVALs, and aggregate functions. It also features a troubleshooting section to help you navigate through common issues seamlessly.
* 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