Home   Fees/Services   Access Templates   Tutorials   Tutorial Downloads   Articles   Search   Contact  Privacy  Links
Select Statement Tutorial
Select Query Syntax
Home > Tutorials > Query Tutorials > Select Query Example

Query Tutorials Index:
Too Complex Query
Aggregate Query
Not In Operator
Choose Function
Crosstab Query
Date Time Query
SQL Delete Query
External Table Query
Report Filter Query
Group By Query
Having Query Clause
Histogram Query
Access Append Query
Master Detail Update
Order By Query
SQL Parameter Query
Predicate Query
Self Join Query
Scalar SubQuery
Master Detail Query
Select Query
Access SQL Select Top
SQL Union Query
SQL Update Query
Custom Query Function


MultiSelect Parameter Forms Access Tutorial

SQL Select Query

Select Query Example

Select Query begins your basic understanding of SQL data manipulation language in a relational database.

Are you just starting out on your quest for a small business database? Need some advice or someone to bounce ideas off of? We are happy to chat with you to discuss options to your situation.

Did you know that most template databases often do not do exactly what you need done? We can create a custom template that fits your needs exactly.

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

SQL Insert Into Example

A Blue Claw Software Design Template:

Subscription Order Control Database

A Blue Claw Database Design Article:

Why Choose Microsoft Access

Blue Claw Database Design Downloadable Tutorial:
How To Program Continuous-Continuous Master/Detail Forms  

Microsoft Office:
MS Access 2000 Through Access 2016 & Office 365

Contact Information
Copyright 2000-2018 Blue Claw Database Design
Development in Microsoft Access, Microsoft SQL/Server and Azure

See our SQL/Server Development and Access Migration Tutorials