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;
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.
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 ...
Whether you need a quick reference for major SQL concepts before an interview, or you want to level-up your existing SQL skills, our SQL cheat sheet is the ideal starting point. Plus, we’ve broken it down into 11 essential SQL topics to help you get the most from this SQL query cheat sheet.
Formatting and manipulating the data. Aggregate functions. Group By. Where aggregate functions are used in conjunction with other fields, GROUP BY is used to group the data so that the aggregate still makes sense.
Part I—Creating and Using User-Defined Functions .....1 1 Overview of User-Defined Functions.....3 Introduction to UDFs .....4 Scalar UDFs.....4 Inline User-Defined Functions .....9 Multistatement Table-Valued User-Defined Functions .....12
Run data manipulation statements (DML) in Oracle Database 11g. Run data definition language (DDL) statements to create schema objects. Identify the major structural components of Oracle Database 11g. Retrieve data from tables. Create reports of sorted and restricted data.