Home  Fees/Services  Access Templates  Tutorials  Access Download  Articles  Search  Contact  Privacy  Links

Access Query Examples
MS Access SQL Support & Training
Select Query Syntax

SQL Select Statement Tutorial Queries Microsoft Access 2007 Query Help
Professional Microsoft Access Programmers

Microsoft Access Tutorial>Access Query>Select Query Example

Access Template Databases:


MS Query Tutorials:

Aggregate Functions
Choose Function
More Choose Functions
Crosstab Query Tutorial
Crosstab Query Advanced
DateTime Query
Delete Query Tutorial
External Link Query
Access Report Filter Query
Group By Clause
Access Having Clause
Histogram Query Tutorial
Insert Into Query
Master/Detail Updates
Order By Dynamic
Access Parameter Query
Predicate Query Example
Self Join Query Tutorial
Scalar Query Example
Child/Parent Table Query
Select Statement Tutorial
Select Top 1 Query
Union Query Example
Access Update Query

Multi-Select Parameter Forms Query Tutorial


SQL Select Query

Select Query Example

Select Query begins your basic understanding of SQL DML (data manipulation language) in a relational database.  While the select statement starts out simple there are several optional arguments which can lead to a truly complex SQL command which can span several screens.  The purpose of the select command is to return zero or more rows (records or tuples) from one or more tables or views.

See below the SQL select query expands in complexity.

The basic syntax from Microsoft Access help system is as follows:

Select TableName.ColumnName, TableName.ColumnName From TableName;

The expanded SQL select query statement syntax as seen in Microsoft Access help follows:

SELECT [predicate] { * | table.* | [table.]field1 [AS alias1] [, [table.]field2 [AS alias2] [, ...]]} FROM tableexpression [, ...] [IN externaldatabase] [WHERE... ] [GROUP BY... ] [HAVING... ] [ORDER BY... ] [WITH OWNERACCESS OPTION];

Note: The ending semicolon is a required component of all SQL statements. The words ColumnName, Field and FieldName all refer to the same thing.

The SQL SELECT query statement has these parts:

SQL select Query

Now the select query statement with real column and table names:

Select M_Employees.Name, M_Employees.Emp_Number,
M_Employees.Address From M_Employees;

Note that we separate the multiple column names with a comma.

From this point on the select statement gets continuously more complex as we add various optional arguments.

More Access Select Query Examples:

Concatenate Records Text Field

sqltext = "Select airport_abbr,number_passengers FROM L_Airports INNER JOIN ... sqltext = "Select Airline_ID,Flight_No,Connect_Time from M_Passengers where ...
www.blueclaw-db.com/concatenate_multiple_records_one_field.htm

SQL Insert Into Example

Insert Into TableName (FieldName1, FieldName2) Select FieldName1, ... Insert Into M_Employees (Emp_ID, Emp_Name) Select Emp_ID, Emp_Name From ...
www.blueclaw-db.com/accessquerysql/sql_insert_into.htm

Transaction Processing

OpenRecordset("select count(faxed) as icount from t_Mnu_Odr " & _ ... sqltext = "select order_detail_id from T_Mnu_Odr where " & _ "manufacturer_id=" & Me. ...
www.blueclaw-db.com/vb_transaction_processing.htm


 

Inventory Database Templates
Inventory Systems. Review our custom Inventory Software. Barcode Asset Tracking & Control Microsoft Access database.

Interior Design Project Template Software
Manage Interior Design projects with this simple and powerful Access database system.

Access Contact Management Access Templates
Contact Management, Custom Contact Management Software, Organize Contacts & Communications.

Construction Project Management Database
Construction Project Management designed to help you keep on budget and on time.

Lease Contract Management Software
Create lease contracts & Rental agreement for equipment. Analysis lease performance & cash flow.

CRM Software Template Database
Customer Management Tools. Custom CRM Software Solutions.
Manage Customer & Client Relations Microsoft Access software.

Order Processing SoftwareTemplate
Order Processing System Order Management Software. Custom Database Design Solutions

PM/Preventive Maintenance Software
Custom PM Management Databases. Maintenance Management Systems.


Contact Information

Microsoft Access Developer

Microsoft Access Query 2007 2003 2000  All Windows Versions