I am having one of those days when my brain is just not quite working;
probably anticipation for tomorrows KU-MU BBall game...Go Jayhawks...

I have a table that has unique locations (LocName) and a second table that
has work orders with a location column (WorkLocation)
For each location in the first table I want to upgrade the count with the
number of occurrences in the second table.

Table Location
LocName        LocCount
==================
LocA                  2
LocB                  3
LocC                  0

Table WorkOrder
WoNo              WorkLocation
==================
1                       LocA
2                       LocB
3                       LocB
4                       LocA
5                       LocB

I need to update table Location with the count of values in table WorkOrder.
I believe there should be an UPDATE statement that does this globally, but
somehow, anything I have tried either gives me a syntax error or does not
work...Any ideas??? TIA.

Javier,

Javier Valencia, PE
President
Valencia Technology Group, L.L.C.
14315 S. Twilight Ln., Suite #101
Phone: 913-829-0888
Fax: 913-649-2904
Cell: 913-915-3137

 
================================================
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material.  Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from all system and destroy all copies.
======================================================


Reply via email to