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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:32:32+00:00 2026-05-31T08:32:32+00:00

I think the reason I can’t find what I’m looking for is because I’m

  • 0

I think the reason I can’t find what I’m looking for is because I’m asking the wrong question. I’m new to codeigniter and mysql and I’m hoping someone can make sense of what I’m looking to do.

I have 2 tables:

Products:
id | name | price | store#

Store:
store# | address | phone | etc..

How can I query the products along with the store information at the same time? Say I grab product id #42 and it give me store #21. Is there a way to run 1 single query to pull all the data at the same time from both tables by simply searching for the product id?

I think JOIN is what I need to use but I’m a little confused. I’m hoping someone can clarify and point me in the right direction.

  • 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-31T08:32:34+00:00Added an answer on May 31, 2026 at 8:32 am

    Something along these lines should do that. 🙂

    SELECT
        *
    FROM Products P
    INNER JOIN Store S
        ON S.StoreNumber = P.StoreNumber
    WHERE P.id = 42
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think it should be 01 but someone says its undefined, any reason for
I'm looking through several documents but for some reason I can't wrap my head
I find this as a funny little problem. I think the reason lies behind
About the only reason I can think of to distribute a python package as
This isn't a complicated problem, but I can't for whatever reason think of a
Is there ever reason to think the >> (signed) and >>> (unsigned) right bit-shift
I cant really think of a reason it wouldnt...it looks fine to me (if
for some reason (and I think I know why), when more than one row
For some reason, subversion is returning me error messages in what I think is
I think there is a simple answer to this, but for some reason I

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.