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

  • Home
  • SEARCH
  • 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 6079279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:55:43+00:00 2026-05-23T10:55:43+00:00

I created a database and two tables customer_full and customer_change through PhpMyAdmin. I successfully

  • 0

I created a database and two tables customer_full and customer_change through PhpMyAdmin. I successfully populated the two tables from two text files, the customer_full now contains 12902 rows while customer_change has 12947 rows, and each row has a CUSTOMER_ID field to identify each customer. The customer_change table has some new members that customer_full doesn’t, and I want to capture them.

The task now I need to do is very common, I need to get the rows that only exist in the customer_change table but not exist in the customer_full table, so I wrote and executed the following query:

SELECT * FROM customer_change 
LEFT JOIN customer_full ON customer_change.CUSTOMER_ID = customer_full.ID 
WHERE customer_full.ID IS NULL

It seems that after I submit the query in the PhpMyAdmin, it will always stay at “waiting for http://localhost/phpmyadmin/import.php” and finally turn out to be a time-out error.
However, if I run some simple query like

SELECT * FROM customer_change,customer_full

It will work and returning the result by simply joining every record from two tables. So I am wondering could any experts help me debug, could it be my query has a effciency issue or should I do more checking on the configuration of the PhpMyAdmin? Or could there be any other possible reasons my previous query failed?

Please pardon me if this is simple since I just began self-learning MySql. Thanks in advance for all the help.

  • 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-23T10:55:44+00:00Added an answer on May 23, 2026 at 10:55 am

    This:

    SELECT * FROM customer_change,customer_full  
    

    Is a cross-join it joins every row in table customer_change against every row in customer_full. So it returns 12,902 x 12,947 = 167,042,194 rows. No idea why you’d want this.

    The left join you’ve written looks correct:

    SELECT * FROM customer_change 
    LEFT JOIN customer_full ON customer_change.CUSTOMER_ID = customer_full.ID 
    WHERE customer_full.ID IS NULL
    

    Missing index
    In order for it to run quickly, you need to put an index on customer_change.CUSTOMER_ID and an index on customer_full.ID.
    Once you’ve done that it should run instantly.

    Corrupt tables
    There’s also a possibility that your tables are corrupt; esp. if you’re using MyISAM.
    Try and run the step outlined in this link:
    http://dev.mysql.com/doc/refman/5.0/en/corrupted-myisam-tables.html
    Or this link: http://www.thegeekstuff.com/2008/09/how-to-repair-corrupted-mysql-tables-using-myisamchk/

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

Sidebar

Related Questions

I created an Entity Framework model that contains two tables from the Northwind database
iv created a database with some tables and populated them using SQL server 2008,
I've created small database under SQL Server 2008 . Now i wanted to move
Not sure I fully understand what phpmyadmin does. I created a database in phpmyadmin,
I have a MySQL database with two tables (simplified for this question): movies table
I have two tables in a 2010 Access Database. One for Customers and One
i want to insert two values into two tables of a sql database which
I have a database with two tables, events and tickets . The events table
I have two tables in the clients mssql database. The first is a job
I have two tables, jos_eimcart_customers_addresses and jos_eimcart_customers. I want to pull all records from

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.