FROM clause | SQL Tutorial and Query Example

Text copied!

FROM clause


  • FROM clause :

    FROM clause is used to specify table name(s) from where data will be retrieved. It is often used with other clauses such as 'SELECT', 'WHERE' and 'ORDER BY' etc. to retrieve, filter, sort and manipulate data.

    The syntax of the FROM clause generally looks like this :
    Here's an example of how you might use the FROM clause :

    1. Suppose we have two tables, namely the [Product] table and the [Employees] table.

    SELECT column_name(s)
    FROM table_name;
            
    SELECT *
    FROM [Product];
            
    FROM clause
    SELECT *
    FROM [Employees];
            
    FROM clause

    Frequently Asked Questions :

    The FROM SQL clause is used to specify the table or tables from which data should be retrieved in a query.
    An example of a clause in SQL is the WHERE clause, which filters rows based on specified conditions.
    The FORM clause, if referring to a typo of the FROM clause, serves the same purpose as the correct FROM clause: specifying the tables from which to retrieve data in a SQL query.
    The clause FROM in SQL is defined by specifying the table or tables from which data should be retrieved in a query, typically following the SELECT statement.