News

History History 125 lines (106 loc) · 3.29 KB main Breadcrumbs SQL_code / ...
The third form of the CREATE TABLE statement stores the results of any query-expression in a table and does not display the output. It is a convenient way to create temporary tables that are subsets ...
create database guitars use [guitars] -- Create Categories Table CREATE TABLE Categories ( category_id INT PRIMARY KEY IDENTITY, name NVARCHAR (50) ); -- Create Products Table CREATE TABLE Products ( ...
Replace "new_table" with the name of the table to create, and replace "old_table" with the name of the table to select from. The INTO clause behaves the same as CREATE TABLE in other SQL environments.
You can create logging tables using SQL commands such as CREATE TABLE, INSERT, UPDATE, and DELETE, and use triggers or stored procedures to populate them with relevant data.
SQL lets you use one command to quickly create a new table containing a subset of records from a larger table while working in Access. Sound complicated? It's not, as Mary Ann Richardson shows us.