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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:13:16+00:00 2026-06-11T12:13:16+00:00

ID Colour colour Size == Table 1 == ==== Table 2 ==== 1.** |

  • 0
ID      Colour           colour     Size
== Table 1 ==          ====   Table 2   ====
1.**  |  **Blue**     **Blue**    |     Big
2.    |    Red        **Blue**    |     Average
3.    |    Yellow     **Blue**    |   **Small**
4.    |    Orange       Purple    |     Big
5.    |    Pink         Grey      |     Average
6.    |    Green        Red       |     Big

Hi,

In the above table, in MySQL I need to return any ID that does not have a value of ‘Small’. I am having trouble as if I tell it to not include ‘Size’ as ‘Small’ is still returns ‘ID 1.’ because the colour blue still has a value that is allowed (Big + Average).
I need a statement that will ignore Blue entirely (therefore not return ID 1.) because it has small linked to a colour in table 2.

Apologies if ive made this more confusing than it is. Im new to cross referencing two tables.

Select Table1.ID
from Table1, Table2
where Table1.colour = Table2.colour
and table2.size != Small

I think I need an inner join query, or Not Exist statement?

Any help would be appreciated

  • 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-11T12:13:17+00:00Added an answer on June 11, 2026 at 12:13 pm

    No need for inner joins. You had syntax errors though:

    Select Table1.ID
    from Table1, Table2
    where Table1.colour = Table2.colour
    and NOT EXISTS 
    (SELECT T3.size FROM Table2 T3 WHERE 
      T3.size = 'Small' AND T3.colour = Table1.colour);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table Orders with (id,orderCode,productId,quantity,color,size) where I can have entries like: 1,O20100812,163,2,BLUE,Medium
I have a table in MYSQL, with the fields, id, size and color. An
i want to decrease the font-size and maybe even the colour (with a loop?).
I have a data set that resembles this: id product_id size color price created_date
I am wondering is there any way we can test the font size/color of
Can any body guide me to ruby gem that changes font-size and color of
properties = [color, font-size, font-family, width, height] inPath = style.css outPath = output.txt #Open
Given this CSS body { font-size: 62.5%; font-family: Arial,sans-serif; line-height: 2em; color:#333 } .post_text
i have this CSS code: h1 { font-size:22px; color:#341C12; font-weight:normal; font-style:italic; } .h1color h1{
body{ width:auto; color:white; font-size:15px; width:100%; max-width:1980px; min-width:334px; margin:0px auto; } This is my code.

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.