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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:44:41+00:00 2026-06-14T04:44:41+00:00

A simple inner join select * from table1 a inner join dbo.table2 b on

  • 0

A simple inner join

select * from table1 a
inner join 
dbo.table2 b
on a.inventory_id = b.inventory_id

Wouldn’t it be nice and intuitive to put it like this?

select * from table1 a
inner join 
dbo.table2 b
on inventory_id

Are there any comparable succinct approaches?

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-06-14T04:44:43+00:00Added an answer on June 14, 2026 at 4:44 am

    How about a natural join:

    select *
    from table1 a
    natural join dbo.table2 b
    

    However, your RDBMS may not support it, and I would recommend always specifying the join type and conditions in your queries. It’s much more maintainable in the long run.

    I’m guessing from the dbo. that you’re using SQL Server though, and it’s not supported there. See here for more info.

    Edit:
    There’s another possibility that’s again not supported by SQL Server but is worth noting. This could actually be worth using, as your join condition is clearly specified. More info here.

    select *
    from table1
    inner join dbo.table2 using (inventory_id)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this query: SELECT * FROM sample INNER JOIN test ON sample.sample_number =
Consider a simple join: Select TableB.* From TableA Inner Join TableB On TableB.ID =
Following on from my previous question: Simple inner join in linq How would I
I have a simple select with one inner join query. However when I create
How could I do a simple join using LLBLGen? table1 - clientTable (address, phone,
how do i do this simple join either with hbm or fluently so i
Hi I don't understand this simple SQL query with JOIN . I want to
There are some different opinions about simple inner classes, so I was wondering if
Simple question, I would like to append text to the front of every print
Simple thing I'm doing is connecting to retrieving user's name from Facebook and passing

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.