Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7658925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:15:54+00:00 2026-05-31T13:15:54+00:00

I am really stuck with an sql query… I hope someone can help shed

  • 0

I am really stuck with an sql query… I hope someone can help shed some light for me.

Here is what my table looks like

mysql> show fields from france_data;
+----------+-------------+------+-----+---------+----------------+
| Field    | Type        | Null | Key | Default | Extra          |
+----------+-------------+------+-----+---------+----------------+
| id       | int(11)     | NO   | PRI | NULL    | auto_increment |
| email    | varchar(45) | YES  |     | NULL    |                |
| name     | varchar(45) | YES  |     | NULL    |                |
| lastname | varchar(45) | YES  |     | NULL    |                |
| quality  | varchar(45) | YES  |     | NULL    |                |
| country  | varchar(45) | YES  |     | NULL    |                |
| state    | varchar(45) | YES  |     | NULL    |                |
| year     | varchar(45) | YES  |     | NULL    |                |
| owner    | varchar(45) | YES  |     | NULL    |                |
+----------+-------------+------+-----+---------+----------------+
9 rows in set (0.00 sec)

Here’s the catch, I have duplicate data in my table, I would like to pull out all data from this table, non-duplicated based on the email.

I ran a simple count like this:

mysql> select count(*) from france_data;

and this is the result set:

+----------+
| count(*) |
+----------+
|  2405259 |
+----------+
1 row in set (0.01 sec)

Now I tried to run a count like this:

mysql> select count(*) from france_data group by email;

Just to see how many unique records I have. Unfortunately this times out.

Does any one know how I can do a count of unique rows and select of the same type?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:15:55+00:00Added an answer on May 31, 2026 at 1:15 pm

    Please try this

    SELECT COUNT(DISTINCT email) FROM france_data 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey, I'm really stuck with my project here... I need to know when any
I am really stuck and was wondering if someone could lend a hand please,
I'm trying to query my SQL Server 2000 database to see if some of
Having an odd problem with a MySQL query, I can't really figure out how
Really stuck on trying to write code to unzip a file or directory on
I'm really stuck on why the following code block 1 result in output 1
I'm really stuck trying to find out how to force a programmatic refresh of
I'm really stuck trying to use java wrapper library for opencv's cvMatchTemplate. See this
I realize this question is pretty basic, but I'm really stuck. I have a
I've made my own tree data structure via classes. Now I'm stuck with really

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.