Getting to Know Microsoft Access, Part 6: Advanced Queries and SQL - SQL (Structured Query Language)
(Page 5 of 5 )
There are many fine resources for learning SQL online including this external site: http://www.sql.org/. The Microsoft Access help feature also provides all of the SQL commands you can use in Access, including the appropriate syntax and conventions.
SQL is the language relational databases use to program all queries. SQL is very easy to understand, for a programming language. However, it is too large to discuss in-depth in this tutorial. To view or edit SQL statements while you’re working on a query, at any time, you can simply choose the View | SQL View menu option, as in the following screenshot:

A simple SQL statement, using the select query type you learned about in the last lesson, might look something like this:
SELECT *
FROM [Customers]
WHERE [Last_Name]=”Adams”;
The above statement just says that you are using a select query, taking all the fields from the Customers table where the last name of the customer is Adams.
All SQL statements end with a semicolon. You’ll find out how to write the SQL code for all of the other queries talked about in this lesson using the Access help feature.
Next week we’ll start learning about forms and reports.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |