News

FROM table1, table2 WHERE table1.keyfield=table2.keyfield When you execute a statement like this, SQL creates a new table—the results recordset—based on the contents of table1 and table2.
To wrap up, consider a much more complicated SQL expression. Here's one that joins both tables to get names, selects specific columns, and fetches rows with a certain priority.
The rigid schema of a SQL database also makes it relatively easy to perform aggregations on the data, for instance by combining data from two tables using the SQL JOIN command.