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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:20:41+00:00 2026-06-04T21:20:41+00:00

table1—> boodang_iphone contain—3000 records table2–> boodang_iphonePushtest05302012 table contain —90 records I need to get

  • 0

“table1”—> boodang_iphone contain—3000 records

“table2”–> boodang_iphonePushtest05302012 table contain —90 records

I need to get mismatch value in ‘boodang_iphonePushtest05302012’ compare table1 i write query like this

SELECT boodang_iphonePushtest05302012.devicetoken 
FROM boodang_iphonePushtest05302012
left outer join boodang_iphone  on 
    boodang_iphone.devicetoken=boodang_iphonePushtest05302012.devicetoken 
where 
    boodang_iphonePushtest05302012.devicetoken != boodang_iphone.devicetoken

I am confused is it give correct data or not any one can we please guide me get mismatch value using joins

  • 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-04T21:20:43+00:00Added an answer on June 4, 2026 at 9:20 pm

    This query give you all records which exist in boodang_iphonePushtest05302012 but not in boodang_iphone. However you need to run the query once more by swapping the table, so it will give you all records exist in boodang_iphone but not in boodang_iphonePushtest05302012 (instead you can use the same query but joining the table by Right outer join). Then you should get the full result of the comparison.

    Also if you can change you where clause to

    where boodang_iphone.devicetoken IS NULL
    

    then would be much better. it is because if the value mismatches, then it will return NULL value from your second table and it always has a problem if you compare a NULL value to a valid data.

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

Sidebar

Related Questions

table1 is the parent table with a column ID and table2 has a column
table1 -> id, time_stamp, value This table consists of 10 id's. Each id would
table1: columns: id, name table2: columns: id, name assoc_table1_table2: columns: id_table1, id_table2 I need
Table1: ID,Name,some more columns Table2: ID Table3: Name I want get output from table1,
[Table(Table1)] public class Entity1 { [Key, ForeignKey(entity1)] public int ID{get;set;} public virtual Entity2 entity2{get;set;}
I have table1 and table2 in a Mysql database. Each table has a field
Table1: id - name 1 - john 2 - david 3 - dilio Table2:
Table1: ResourceID Name0 (STRING) NumberOfLongons0 (INT) LastLogon0 (DateTIME) Table2: ResourceID NetbiosName0 I am trying
Table1 ID Loc ----------- 001 null 002 null 003 PYD 004 null .... Table2
table1 | id | value -------------------- 1 | john 2 | frank 3 |

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.