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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:34:49+00:00 2026-06-06T14:34:49+00:00

Can I use the USING clause to join more than 2 tables? i.e. can

  • 0

Can I use the USING clause to join more than 2 tables? i.e. can I do this

SELECT * FROM (a, b, c) USING(date)

or something similar instead of

SELECT * FROM a, b USING(date), c USING(date)

?

I am using MySQL.

EDIT
I see from the answers that I am misunderstood. The second example works fine, but just gets very long and verbose for many tables. I am looking for a cleaner syntax, not even more complicated ways to achieve this.

  • 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-06T14:34:51+00:00Added an answer on June 6, 2026 at 2:34 pm

    There is no such syntax to achieve what you want, however there is one thing that comes close:

    It’s kind of looked down upon, but you could look into using is the NATURAL JOIN syntax, where the condition(s) used for the join are implicit in that you don’t need to specify the columns to join on. The implicit condition happens on columns that have the same name across the tables you’re joining.

    If date is the only column that has the same name across all of your tables, then you could do something like this:

    SELECT *
    FROM a
    NATURAL JOIN b
    NATURAL JOIN c
    

    This will implicitly join the tables on the column date because the field name is the same in the tables.

    The downside of this approach is of course the fact that you can’t have any other columns with the same name in another table or else your joins will break as those columns will also be factored into the join condition unintentionally.

    More on NATURAL JOIN

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

Sidebar

Related Questions

Is there any tools using which I can use to create Windows forms from
I've heard that using an IN Clause can hurt performance because it doesn't use
Can you use 2 'using' statements like: using (SqlConnection ..) { using(SqlDataReader reader =
Using EF we can use LINQ to read data which is rather simple (especially
I know that we can use onPause() event to stop the MediaPlayer using reset()
Why I can use setcookie without any preparation while need a session_start() before using
I am wondering if you can use Linq to SQL using a .mdf file
Using PHP's Image and GD functions you can use the following method to finally
I want to use using statement purely for scope management. Can I omit holding
I am using the SSHJ library ( https://github.com/shikhar/sshj ). I can use sshClient.newSCPFileTransfer(); to

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.