sql from to 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 BETWEEN

/*the BETWEEN operator is used to filter the result set within 
a certain range. the values can be numbers, texts or dates */
SELECT column_name(s)
FROM table_name
WHERE column_name BETWEEN value1 AND value2;

Example 4: sql between

SELECT column_name(s)
FROM table_name
WHERE column_name BETWEEN value1 AND value2;

Tags:

Php Example