Select wd.WorkGroupID from sd_workgroupdetails wd where wd.WorkGroupID = ? and (if((Select wd1.WorkGroupValue from sd_workgroupdetails wd1 where wd1.WorkGroupID = wd.WorkGroupID and wd1.WorkGroupType = ? limit 1) is NULL,1,(if((wd.WorkGroupType = ? and wd.WorkGroupValue = ? ),1,0)))) limit ? |
1
|
492
|
9
|
|
0.00
|