eHow launches Android app: Get the best of eHow on the go.

How To

How to Use Keywords in Microsoft Access SQL

Member
By Keith Johnson
User-Submitted Article
(4 Ratings)

Use the LIKE keyword in Microsoft Access SQL to find an approximate match of data.

Difficulty: Moderately Easy
Instructions
  1. Step 1

    Open the SQL view window if you want to find the name of a customer in your database but you don’t know the spelling.

  2. Step 2

    Type “SELECT” and the name of the columns you want to see. For example: SELECT customerName, customerCity. Press Enter.

  3. Step 3

    Type “FROM” and the name of the table containing the columns. For example:
    FROM customers. Press Enter.

  4. Step 4

    Type “WHERE” and the name of the column to which you'll apply your data limitation. For example: WHERE customerName.

  5. Step 5

    Next, type “LIKE” and the first letter of the customer’s name enclosed in single quotes. For example: WHERE customerName LIKE ‘B*’.

  6. Step 6

    Add an asterisk after the letter. For example: WHERE customerName LIKE ‘B*’. The asterisk is a wildcard. The wildcard “stands in” for missing letters. This statement will return all customers whose name begins with the letter "b."

  7. Step 7

    Run the query.

Tips & Warnings
  • Other SQL versions, such as Microsoft SQL Server and Oracle, use a percent sign instead of an asterisk as a wildcard.
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy .   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. † requires javascript

eHow Computers
eHow_eHow Technology and Electronics