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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:19:41+00:00 2026-05-11T10:19:41+00:00

The effect of issuing an inner join is the same as stating a cross

  • 0

The effect of issuing an inner join is the same as stating a cross join with the join condition in the WHERE-clause. I noticed that many people in my company use cross joins, where I would use inner joins. I didn’t notice any significant performance gain after changing some of these queries and was wondering if it was just a coincidence or if the DBMS optimizes such issues transparently (MySql in our case). And here a concrete example for discussion:

SELECT User.* FROM User, Address WHERE User.addressId = Address.id;  SELECT User.* FROM User INNER JOIN Address ON (User.addressId = Address.id); 
  • 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. 2026-05-11T10:19:42+00:00Added an answer on May 11, 2026 at 10:19 am

    Cross Joins produce results that consist of every combination of rows from two or more tables. That means if table A has 6 rows and table B has 3 rows, a cross join will result in 18 rows. There is no relationship established between the two tables – you literally just produce every possible combination.

    With an inner join, column values from one row of a table are combined with column values from another row of another (or the same) table to form a single row of data.

    If a WHERE clause is added to a cross join, it behaves as an inner join as the WHERE imposes a limiting factor.

    As long as your queries abide by common sense and vendor specific performance guidelines (i), I like to think of the decision on which type of join to use to be a simple matter of taste.

    (i) Vendor Specific Performance Guidelines

    1. MySQL Performance Tuning and Optimization Resources
    2. PostgreSQL Performance Optimization
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I use that effect on my controls just like the BlurEffect? If it's
I like the effect used in many iPhone apps where a semi-transparent help screen
Is there any way to convert the warning that MySQL is issuing about an
I noticed a cool effect in Chrome at this site , which may or
I have a mouseover effect that when a client hovers a flag, a picture
Here is the effect that I need: http://www.agilepartners.com/blog/2005/12/07/iphoto-image-resizing-using-javascript/ Is there any jQuery plugin doing
I'm issuing a local notification alert (iOS 5) that will repeat its reminder periodically
I have a sound effect that I want to only play when the slider
I have in effect a string utility that returns a URL. I know that
Here is the effect I am after? Unfortunately, jQuery's slideDown() effect isn't the same.

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.