×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
My desire is to update the OUTIME in benjunk2 for order 238,509 to
10:41:53 and order 238,566 to 10:42:43.
Here's the solution:
UPDATE benjunk2 b
SET outime =
(SELECT a.outime FROM benjunk1 a
WHERE a.ouord# = b.ouord# AND a.outime <> b.outime)
WHERE ouord# IN
(SELECT a.ouord# FROM benjunk1 a INNER JOIN benjunk2 b
ON a.ouord# = b.ouord# AND a.outime <> b.outime)
In the end, you do need to do the inner join, but in the WHERE clause
of the outer or primary SELECT not in the subselect or inner SELECT.
The reason the inner join is required is that you are not updating every
row in the table and the inner join
identifies those records to be updated.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.