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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:30:04+00:00 2026-06-14T14:30:04+00:00

I am just a little confuse to how write the below query : I

  • 0

I am just a little confuse to how write the below query :

I have two tables

tbl_one
ID      TEXT
1       test1
2       test2
3       test3
4       test4
5       test5

and

tbl_two
ID      userID      tblone_ID
1       50          1
2       100         1
3       100         2

I am looking to get rows of tbl_one which are not appear in tbl_two but for the certain user .

for example by below select :

select * from tbl_one, tbl_two 
where (tbl_two.tblone_ID !=tbl_one.ID and tbl_two.userID==50) 

my desire resault will be

Desire resalt:
ID      TEXT
2       test2
3       test3
4       test4
5       test5
  • 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-14T14:30:05+00:00Added an answer on June 14, 2026 at 2:30 pm
    SELECT  a.*
    FROM    tableA a
            LEFT JOIN tableB b
              on a.ID = b.tblone_ID AND
                  b.userID = 50
    WHERE   b.tblone_ID IS NULL
    
    • SQLFiddle Demo
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just a little confused here... I have a function in postgres, and when I'm
Sorry for the noob question I'm just a little confused. If I have an
I'm little confuse because in some tutorials is just in h @property (readwrite,nonatomic) NSUInteger
I've just recently learned the PureMVC framework, and am a little confused as to
Just a little edit, in case it helps anyone out who happens to stumble
Just a little question for you... I'm currently trying to implement a role structure
This sounds funny..just a little experiment. i wanted to simulate a drag drop of
I am sure it's just a little mistake, but i can't find it. When
Just need a little bit of Javascript to warn people that press the back
I'm just realizing a little Web-Hangman where users can play the popular game. Now

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.