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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:00:55+00:00 2026-06-01T10:00:55+00:00

I need to get one set of rows (it will be more than 70k

  • 0

I need to get one set of rows (it will be more than 70k records) from one table which are not in another table.

Table1 : Number of records will be more than 14000k
Table2 : Number of records will be more than 110k

So my SQL query is

SELECT  pre.`id` , pre.`deal_id` , pre.`coupon_code` , pre.`csv` 
FROM `customerorders` AS oc, `precoupon` AS pre 
WHERE oc.`uniqueid` != pre.`coupon_code` 

The problem is it never able to completes.

It kept loading and at the end a white page on phpmyadmin I get this message.

memory exhausted – fatal error on PHP whatever size i have in ini_set

No results in SSH for long long time.

Is there any problem with the query or is there any optimized query for this?

I need to export these second table records if the particular column not available in table1.

Please help me someone. Thanks in advance

  • 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-01T10:00:56+00:00Added an answer on June 1, 2026 at 10:00 am

    try it with left joins like this:

    SELECT
         pre.`id` ,
         pre.`deal_id` ,
         pre.`coupon_code` ,
         pre.`csv`
    FROM `precoupon` AS pre
    LEFT OUTER JOIN `customerorders` AS oc
        ON oc.`uniqueid` = pre.`coupon_code`
    WHERE oc.uniuqueid IS NULL
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

iam developing one application.In that i need to get the music files from the
I have one variable whose content I need to get from a remote server,
I need to get the users Loging name from NTLM . Any one who
I have need to select a number of 'master' rows from a table, also
I have set of records which I need to search using criteria. But criteria
I need to get one page (can be cURL, or filegetcontent), get some info
I need to get two JPanels into one JApplet. paneel = new RekenmachinePaneel(); nummer
iam developing one application.In that i need to get the how many music files
Iam doing one application in iphone.In this i need to get the browsing history
in my app i for one of the handler i need to get a

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.