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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:20:09+00:00 2026-05-23T04:20:09+00:00

Having the following SQL SELECT u.user_id AS user_id, u.user_name AS user_name, d.user_data AS user_data

  • 0

Having the following SQL

SELECT 
    u.user_id     AS user_id, 
    u.user_name   AS user_name,
    d.user_data   AS user_data 
FROM 
    tbl_users u, 
    tbl_data  d        
WHERE 
    d.user_id = u.user_id

Does this still produces a JOIN (as there’s no JOIN keyword in this sql)?
How does MySQL handle this query?

And is there any difference if the WHERE clause would be u.user_id = d.user_id instead of d.user_id = u.user_id ?

Thanks.

  • 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-23T04:20:10+00:00Added an answer on May 23, 2026 at 4:20 am

    What you’re writing is the old style SQL syntax before ANSI standardized the JOIN keywords back in 1992.

    With a simple query like what you’re writing above, most RDBMS’s will internally convert it to the same lookup method as an inner join.

    As for the order of the columns in the where clause, the only time it matters is when you have a derived column, or a function. Generally you would want to keep the non-derived or non-functional column first, in that case, so that the engine can figure out the correct index to use.

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

Sidebar

Related Questions

I'm having trouble trying to optimize the following query for sql server 2005. Does
I have the following SQL query: SELECT DISTINCT ProductNumber, PageNumber FROM table I am
I have the following SQL SELECT CNumber, MAX(FormSubmitted), Score FROM dbo.vw_MSA WHERE (Score IS
Consider the following SQL: SELECT mov FROM movie WHERE mov IN ( SELECT mov
I'm having trouble getting the following to work in SQL Server 2k, but it
I'm having a little problem with the following: When I execute this line: echo
Having following sql server coenfiguration. OS : Windows Server 2003 SQL Server 2005 Professional
I have a SQL query I'm having trouble creating using NHibernate Criteria: SELECT ID,
I'm having a bit of issue converting the following t-sql statement to Linq (using
I basically want the following sql query as a lambda expression: SELECT studentname, coursename,

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.