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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:37:56+00:00 2026-06-05T23:37:56+00:00

I am using the following query to select wait times from the table wait_times

  • 0

I am using the following query to select wait times from the table wait_times where the user id is 1 and then select the venue’s information that has the id of the wait time’s venue id.

SELECT w . * , v . *
FROM  `wait_times` AS  `w` 
INNER JOIN  `venues` AS  `v` ON  `v`.id =  `w`.venue_id
WHERE w.user_id =1
LIMIT 0 , 30

However, when I perform this query, as I have columns named user_id and id in both tables, I received two lots of values for each column name. Please can you tell me how I make these values distinguishable, and rename them to ‘table_name.columnname’ respectively so that they can be easily recognised?

  • 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-05T23:37:57+00:00Added an answer on June 5, 2026 at 11:37 pm

    One solution would be:

    SELECT w.colum1 as name1, w.colum2 as name2, w.*, v.colum1 as name3, v.colum2 as name4, v.*
    FROM  `wait_times` AS  `w` 
    INNER JOIN  `venues` AS  `v` ON  `v`.id =  `w`.venue_id
    WHERE w.user_id =1
    LIMIT 0 , 30
    

    Just allocate the colums which have the same name a (temporary) different name.

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

Sidebar

Related Questions

I'm using the following query to select users from my 'users' table with the
Using the following query to select data from a table in 15 minute intervals
I am getting random row from my table using the following query: SELECT value_id
I have a table I am using the following query select max(dblVersion),sName,fCompleted,ixLastModifiedBy,dtCreatedAt,dtLastModifiedAt,fStatus from tblechecklisttemplateversion
i've been using the following query: select LEN(columnname) as columnmame from dbo.amu_datastaging This works,
I'm using Oracle 10.2 and have the following query: select h.company, count(*) from history
I am using the following query in my database, SELECT b.sales_id,b.category_id,b.sale_starts,b.sale_ends FROM tbl_sales b
I am trying to code the following query using Zend_Db api's: select * from
Using phpMyAdmin and running the following query I get 19 registers: SELECT * FROM
I'm trying to do MySQL fulltext search using the following query: SELECT * FROM

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.