sql from as code example

Example 1: sql from

Specifies which table to select or delete data from.
Example: Selects data from the users table.
SELECT area_manager
FROM area_managers
WHERE EXISTS (SELECT ProductName FROM Products WHERE
area_manager_id = deals.area_manager_id AND Price < 20);

Example 2: SQL FROM

FROM-Klausel

  SELECT *
  FROM tbl_produkte
  WHERE price > 100

Example 3: sql as

SELECT CustomerID AS ID, CustomerName AS Customer

Example 4: sql as

-- AS is a keyword that allows you to rename a column or table using an alias
SELECT column_name AS 'Alias'
FROM table_name;

Tags:

Sql Example