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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:43:57+00:00 2026-05-23T02:43:57+00:00

First Query: Select * from table1 inner join table2 on table1.Id = table2.Id Second

  • 0

First Query:

Select * from table1 inner join table2 on table1.Id = table2.Id

Second Query:

Select * from table1, table2 where table1.Id = table2.Id

What is difference between these query regarding performance which should one use?

  • 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-23T02:43:58+00:00Added an answer on May 23, 2026 at 2:43 am

    The two statements you posted are logically identical. There isn’t really a
    practical reason to prefer one over the other, it’s largely a matter of
    personal style and readability. Some people prefer the INNER JOIN syntax and
    some prefer just to use WHERE.

    Refering to Using Inner Joins:

    In the ISO standard, inner joins can
    be specified in either the FROM or
    WHERE clause. This is the only type of
    join that ISO supports in the WHERE
    clause. Inner joins specified in the
    WHERE clause are known as old-style
    inner joins.

    Refering to Join Fundamentals:

    Specifying the join conditions in the
    FROM clause helps separate them from
    any other search conditions that may
    be specified in a WHERE clause, and is
    the recommended method for specifying
    joins.

    Personaly, I prefer using INNER JOIN. I find it much clearer, as I can separate the join conditions from the filter conditions and using a seperate join block for each joined table.

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

Sidebar

Related Questions

I have two queries serving the same purpose. SELECT * FROM #user INNER JOIN
can anybody explain me why this query takes 13 seconds: SELECT Table1.Location, Table2.SID, Table2.CID,
First, from BOL : Queries that modify table variables do not generate parallel query
I can't display the first entry from my query that returns multiple answers. For
I have a performance problem on a query. First table is a Customer table
Looking at the profiler I see a few differences. The second query which uses
I have a query that looks like the following SELECT t1.Name, t2.ID, t2.name FROM
first thing I want to know in between two algorithms which one is better
I'm JOINing the results of this query: SELECT twitter_personas.id , 'TwitterPersona' , twitter_personas.name FROM
I have a following oracle query: SELECT a.USER_ID, c.first_name, c.last_name, TO_CHAR( b.logon_date, 'MM/DD/YYYY HH:MI:SS

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.