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 7732963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:51:49+00:00 2026-06-01T06:51:49+00:00

Consider the following table tweets tweet_id call_id id_str timestamp text ————————————————– 1 11 12345

  • 0

Consider the following table “tweets”

tweet_id  call_id   id_str  timestamp  text
--------------------------------------------------
1         11        12345   312323134  lorem ipsum
2         11        12345   312323134  lorem ipsum
3         11        12345   312323134  lorem ipsum
4         11        12345   312323134  lorem ipsum
5         11        67890   325565454  dolor
6         11        34355   333544664  samet

Each tweet should only appear once in the database. As you can see, the exact same tweet (same call_id, id_str, timestamp and text – on other words everything is the same except for the tweet_id (which is an autonumbering field)) has been stored 4 times (!)

Is there a way to exact matches (so: same everything except tweet_id) and then delete the last x – 1 (here: 4 -1 = 3) of them? In other words, the cleaned-up table would look like

tweet_id  call_id   id_str  timestamp  text
--------------------------------------------------
1         11        12345   312323134  lorem ipsum
5         11        67890   325565454  dolor
6         11        34355   333544664  samet

I hope there’s an easy way to do this, because otherwise I have a huge problem (shows you what putting in an extra hour of thinking before you actually build your database can do!)

  • 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-06-01T06:51:51+00:00Added an answer on June 1, 2026 at 6:51 am

    have you searched for a solution online before asking this question ???? if not here is an online tutorial on how to do this.

    http://www.sqlteam.com/article/deleting-duplicate-records

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please consider the following tweets table: tweet_id user_id text ---------------------------- 1 1 lorem ipsum
Consider the following tweets table tweet_id user_id text ----------------------------------------- 1 1 look at my
Consider the following table tweets --------------------------------- tweet_id nyse_date class type --------------------------------- 1 2011-03-12 2
Consider the following three MySQL tables: tweets urls tweets_urls --------------------------- --------------------- ---------------- tweet_id text
Consider the following table (tweets): +---------+------------+----------+ | user_id | _date | tweet_id | +---------+------------+----------+
Consider the following tables: users and tweets user_id name tweet_id user_id tweet spam -----------------
Consider the following table: id _date timestamp views change -------------------------------------------------- 1 2011-01-31 1296514800 550
Consider the following tables users tweets --------------------------------- --------------------------- user_id num_retweets sum_retweets tweet_id user_id retweeted
Consider the following table: tweets ----------------------- id tweet class ----------------------- 1 Foo bar baz!
Consider the following table of tweets id tweet ------------------------------------------------------ 1 alcoa inc stock analysis

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.