View Single Post
  #5 (permalink)  
Old 05-25-2008, 08:00 AM
sriramna sriramna is offline
Junior Member
 
Join Date: May 2008
Posts: 2
sriramna is on a distinguished road
Default ANY answer. Re: "Condition table" query

Shouldn't something along the following lines work?
[sql]
select t.*
from trans_table t join lookup_table l
on l.plant in ('*', t.plant)
and l.group in ('*', t.group)
and l.workcentre in ('*', t.workcentre)
and l.wagetype in ('*', t.wagetype)
where t.calctype = [SomeCalcType_Value][/sql]
Reply With Quote