Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Using DISTINCT Clause

Question:
I have a Access table and I want to pull from that table one of each type and place it into a combo box using SQL. How can I do this?

Answer:
The DISTINCT keyword on the SELECT statement insures that only distinct values will be selected from a particular field. Here is an example:

SELECT DISTINCT field_name FROM table_name WHERE criteria

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date