64 Topics
Getting started with SQL Introduction Topic
SELECT All Versions
The SELECT statement is at the heart of most SQL queries. It defines what result set should be returned by the query, and is almost always used in conjunction with the FROM clause, which defines what part(s) of the database should be queried.
JOIN All Versions
JOIN is a method of combining (joining) information from two tables. The result is a stitched set of columns from both tables, defined by the join type (INNER/OUTER/CROSS and LEFT/RIGHT/FULL, explained below) and join criteria (how rows from both tables relate). A...
Example Databases and Tables All Versions
String Functions All Versions
String functions perform operations on string values and return either numeric or string values. Using string functions, you can, for example, combine data, extract a substring, compare strings, or convert a string to all uppercase or lowercase characters.
CASE All Versions
The CASE expression is used to implement if-then logic.
Filter results using WHERE and HAVING All Versions
UPDATE All Versions
Subqueries All Versions
LIKE operator All Versions
SQL Injection All Versions
Functions (Aggregate) All Versions
CREATE TABLE All Versions
The CREATE TABLE statement is used create a new table in the database. A table definition consists of a list of columns, their types, and any integrity constraints.
SKIP TAKE (Pagination) All Versions
Order of Execution All Versions
Data Types All Versions
INSERT All Versions
GROUP BY All Versions
Results of a SELECT query can be grouped by one or more columns using the GROUP BY statement: all results with the same value in the grouped columns are aggregated together. This generates a table of partial results, instead of one result. GROUP BY can be used in...
Common Table Expressions All Versions
UNION / UNION ALL All Versions
UNION keyword in SQL is used to combine to SELECT statement results with out any duplicate. In order to use UNION and combine results both SELECT statement should have same number of column with same data type in same order, but the length of column can be different.