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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:35:27+00:00 2026-06-16T00:35:27+00:00

Here what I would like to pull date from this three table. Table users

  • 0

Here what I would like to pull date from this three table.

Table users has three columns

uid, username , data(text) 

Table users_order has three columns

uid, orders_id , users_email

Table order_products has three columns

orders_id, product_id, product_name

I would like to use product_id as the ref/search to pull the user info from those three tables.

If product_id = 5

The query will display

uid; username; users_email; orders_id; product_name; data (text)

What is the right sql query for this situation.

  • 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-16T00:35:28+00:00Added an answer on June 16, 2026 at 12:35 am
    select a.uid,a.username,b.user_email, b.orders_is, c. product_name
    from users a, users_orders b, order_products c
    where a.uid = b.uid and b.order_id = c.order_id and product_id = 5
    

    this should give what you need

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

Sidebar

Related Questions

Here I have data on five tables I would like to pull. Table 1
I am using jquery uploader from here and I would like to know how
Here's the situation: I would like to iterate through a table with input controls,
I would like to be able to pull back 15 or so records from
I would like to access profiles table from my Profile model which belongs_to :user
I have these two table with some data sample in them. I would like
I would like to pull from database multiple rows, according to a list of
I'm building a program that would allow me to pull data from by selecting
$('#selector').click(function() { // here I would like to load a javascript file // let's
A bit of a complex problem to describe here: I would like to have

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.