× 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.



SQL question. I have the pieces and I think the answer is in front of me
but can't figure this one out.

I know I can't do an update on a join but I was wondering if one could
be used in a subselect somehow to accomplish this. 

I have 2 temp tables...
 
Tbluserpt
        oboprce
        ifoth
        obdiv
        obcls
        
Tblusrp
        obdiv
        obcls
        okmark

How do I write a statement to...

Where tbluserpt.oboprce = 0

I want to update it to tbluserpt.ifoth/(1-(tblusrp.okmark))  

For the update I need to select tblusrp.okmark

Where

tbluserpt.obdiv = tblusrp.obdiv

And 

tbluserpt.obcls = tblusrp.obcls


Hope the question is clear.

Thanks,

Tim



        



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.