select 员工表.*,工资表.* from 员工表 inner join 工资表 on 员工表.员工号=工资表.员工号
where 员工表.性别='男' and 工资表.部门='人事部'执行该查询将返回记录集绑定到 msflexgrid 控件。