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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:30:28+00:00 2026-05-18T00:30:28+00:00

If I run the query: SELECT board.id, board.name FROM board INNER JOIN group_assoc ON

  • 0

If I run the query:

SELECT board.id, board.name
FROM board
INNER JOIN group_assoc ON group_id
IN (
"4,9,12,15,18,21,22,55,57,83,84,86,89,92,95,98,104,105"
)
AND group_assoc.board_id = board.id
INNER JOIN category ON category.id = board.category_id
AND category.forum_id =2

I get a different result than

SELECT board.id, board.name
FROM board
INNER JOIN group_assoc ON group_id = 9
AND group_assoc.board_id = board.id
INNER JOIN category ON category.id = board.category_id
AND category.forum_id =2

Is it only pulling boards that can be viewed by all groups?

  • 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-18T00:30:29+00:00Added an answer on May 18, 2026 at 12:30 am

    If the values in “IN” are integers, don’t use double quotation marks (” “), like this

    
    SELECT board.id, board.name
    FROM board
    INNER JOIN group_assoc ON group_id
    IN (
    4,9,12,15,18,21,22,55,57,83,84,86,89,92,95,98,104,105
    )
    AND group_assoc.board_id = board.id
    INNER JOIN category ON category.id = board.category_id
    AND category.forum_id =2
    

    And if the values are strings, use double quotation marks for each string.

    
    SELECT board.id, board.name
    FROM board
    INNER JOIN group_assoc ON group_id
    IN (
    "4121213","9434345443","12545454"
    )
    AND group_assoc.board_id = board.id
    INNER JOIN category ON category.id = board.category_id
    AND category.forum_id =2
    

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

Sidebar

Related Questions

If I run the following SQL query SELECT * FROM A LEFT JOIN B
If I run this query: SELECT `Manga`.`id`, `Manga`.`name` FROM `mangas` AS `Manga` WHERE `Manga`.`id`
When I run this query : select emp.emp_name as name from emp order by
Have follow query: SELECT tbl_yaca_sites.`id_site` FROM `tbl_yaca_sites` INNER JOIN `tbl_relation` ON tbl_relation.id_website = tbl_yaca_sites.id_site
I can't run a query like: SELECT table1.name FROM dataset1.table1 nor can I run
When I run the query : select count(*) from (select idCover from x90..dimCover group
If I run a query such as: SELECT COUNT(*) as num FROM table WHERE
I'm creating a small forum. Attempting to run SElECT... JOIN... query too pick up
When I run this query: SELECT m.tag_id, m.product_id, count(m.product_id) as dups FROM product_tag_map m
I am trying to run this query SELECT * FROM Student WHERE DIFFERENCE(FirstName,'Joe')>=2 .

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.