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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:41:44+00:00 2026-06-08T23:41:44+00:00

A. event_choices event_id | res_id | 4 | 10 | B. restaurants res_id |

  • 0
A. event_choices

event_id | res_id | 
4        | 10     | 

B. restaurants 

res_id     | res_name | 
10         | xyz      | 

C. event
event_id   | event_name | 
4          | birthday   | 

I’ve been trying inner join to try match the names to id but been unsuccessful

select event_id as id from event_choices inner join restaurants on res_id.id = res_name

any help would be greatly appreciated, very new to php/mysql

  • 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-08T23:41:48+00:00Added an answer on June 8, 2026 at 11:41 pm
    SELECT event.event_name, restaurants.res_name FROM event_choices 
        INNER JOIN restaurants ON event_choices.res_id = restaurants.res_id
        INNER JOIN event ON event_choices.event_id = event.event_id 
    

    could work.

    If you select * instead of event.event_name you should get all data and be able to pick from it. You can also select specific fields in the form of <table>.<field>.

    EDIT: added res_name

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

Sidebar

Related Questions

SELECT event.event_name, restaurants.res_name FROM event_choices INNER JOIN restaurants ON event_choices.res_id = restaurants.res_id INNER JOIN
Possible Duplicate: Passing a Int value to another class I have been trying to
All, I've got the following code: var site_url = 'http://localhost/website/'; jQuery(#cancel_song_choice).click(function(event){ cancel_url = site_url
Event-delegation must be used to make events work after inserting DOM elements (i.e Ajax
assumption: Event\Service\EventService is my personal object that works with Event\Entity\Event entities This code works
Why event.which doesn't return 13 (CR) or 10 (LF) depending on the operating system?
Some event handlers for the WinForm DataGridView have DataGridViewCellEventArgs as a parameter and a
What event is fired when Google Maps repaint itself? For example when you zoom
Which event fires when DataGrid's source is updating? I've tried DataContextChanged and SourceUpdated but
KeyDown Event is not responding till any user control is clicked or setFocus implicitly

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.