Advertisement:
Over 100,000 Jobs Worldwide. Click
here
to find one for you.
FAQs Categories
Client Server Commands
Database Structure
Table Types or Storage Engines
Indexes
SQL Statements
Table Joins
Funtions and Operators
Tricky Select Queries
Speed Up Queries
Data Back Up
General Questions
Errors
Send This Page to Friend
Enter Friend's Email
Enter Your Email
What do you want to ask today?
Home
/
Tricky Select Queries
/
Question No: 61
How to skip repeating values from the query results?
I want to skip repeating values from the results using MySQL query. Any way?
Answer No: 61
Repeating values can be skipped using GROUP BY in the query as follow:
SELECT col_1, col_2, col_3, .... FROM table_name GROUP BY col_1;
Comments
Add Comments
Found a bug? Or do you have a better solution for this? Feel free to leave a message:
Leave a comment
Your Name:
Your Email Address (optional):
Comment:
Related MySQL FAQs to the Above FAQ
How to do numeric sorting within a string field in MySQL?
How to take data back up of single table?
How to find duplicate records from a table in MySQL?
How to get last top records in asceding order?
How to move table from one to another MySQL database?
How to get parent table child table and grandchild table aggregates in MySQL?
How to retrieve one child row against each parent id?
An important trick to speed up select query.
How to find the books which have authors with more than one book in the table?
How to count the number of rows containing APOSTROPHE in MySQL?
How to compare data of two tables of two different databases in MySQL?
How to retreive multiple records without a reference table?
© Copyrights 2007 - 2008 by mysqlfaqs.net
The site is owned and operated by
Mr. Javed Bhatti
- Pakistan.
Site Map
|
Bookmark Us
|
Kareer Links
|
Contact Us