[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

update query

Posted on 2011-02-22
2
Medium Priority
?
260 Views
Last Modified: 2012-05-11
I have table TUBEDATA where each record has fields PartNumber and SerialNumber.

I have a second table CURRENT LOCATION with fields PartNumber and SerialNumber.  The records all have the SerialNumber but none the PartNumber

I need an update query to update all the records in table CURRENT LOCATION with PartNumber from table TUBEDATA.

Thanks,
Brooks
0
Comment
Question by:gbnorton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 34953329
try this update query

update [CURRENT LOCATION] as CL
Inner join TUBEDATA as TD
on CL.SerialNumber= TD.SerialNumber
set CL.Partnumber=TD.PartNumber
where CL.PartNumber is null
0
 

Author Closing Comment

by:gbnorton
ID: 34954748
Perfect.  Thanks!
Brooks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question