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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:41:20+00:00 2026-06-15T10:41:20+00:00

Database A contains table X Database B contains tables Y and Z A.X contains

  • 0

Database A contains table X

Database B contains tables Y and Z

A.X contains fields order_number and dude

B.Y contains fields order, dude_number
B.Z contains fields other_dude_number and dude_type

I want A.X.dude to update to B.Y.dude_number based on: (B.Y.order = A.X.order_number) AND ((B.Z.other_dude_number = B.Y.dude_number) AND (B.Z.dude_type = 6))

I’ve been pumping out mySQL queries for two hours to try and get this to work. I’m almost sure I need a UNION in there, somewhere, but I’m not familiar enough with UNION to use it.

  • 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-15T10:41:21+00:00Added an answer on June 15, 2026 at 10:41 am
    UPDATE A.X
      JOIN B.Y ON Y.`order` = X.order_number
      JOIN B.Z ON Z.other_dude_number = Y.dude_number
    SET      X.dude = Y.dude_number
    WHERE    Z.dude_type = 6
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created one app for database which contains a student table and 3 fields
Im trying to search two of the fields in my table. (Database table contains
The database table only contains the four fields that the query is attempting to
I have a table Person which contains 2 fields.In my another database i have
I have a database table TravelRequest that contains, amongst other things, the fields SignOffName
A legacy database contains a join table which links tables table1 and table2, and
So I have a database with a few tables. The first table contains the
What I have is two tables inside of a mysql database. One table contains
I a MSAccess database which contains the following table Table A # Column1    Column2    Amount =======    =======    ======
My application uses asp.net 4, C# and Entity Framework. My database contains a table

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.