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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:11:58+00:00 2026-05-28T07:11:58+00:00

I want to do: select column1 from db1.table1 where db1.table1.column2 = db2.table2.column1. In this

  • 0

I want to do:

 select column1
 from db1.table1
 where db1.table1.column2 = db2.table2.column1.

In this case, the error message is:

unknown column: db2.table2.column1

My setting for the database 1 and 2 is correct, just don’t know how to write the query in this case.

  • 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-28T07:11:59+00:00Added an answer on May 28, 2026 at 7:11 am
    select t1.column1
    from db1.table1 t1
    join db2.table2 t2 on t1.column2 = t2.column1
    

    You’ll notice that this query uses the more modern, and preferable, join table on condition syntax

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

Sidebar

Related Questions

Select table1.column1, table2.column1, calcuate(table1.column2) as result from table1, table2 where table1.id = table2.fkid Say
For example I have this query select column1, column2, column3, column4, column5 from mytable
I have a sql statement like SELECT column1, column2,column3, column4 FROM table1 GROUP BY
In the query similar to this: SELECT COLUMN1, CASE WHEN 1=2 THEN COLUMN2 END
From my MongoDB I want the equivalent for SELECT column1, column2 FROM tbl With
I want to do something like this: INSERT INTO TABLEA ( COLUMN1, COLUMN2, COLUMN
In T-SQL you can do following SELECT SUBSTRING(COLUMN1, 1, 3), * FROM TABLE1 But
update tableA set tableA.column1 = 'someValue' where tableA.column2 in ( select column3 from tableB
I have the following query: SELECT COLUMN1, COLUMN2, COUNT(*) FROM TABLE WHERE COLUMN3 IS
A) My way so far: sqlCommand.CommandText = INSERT Table1 ([column1],[column2],[column3]) + SELECT [column1],[column2],[column3] +

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.