我正在使用postresql,但我真的不擅长构造sql查询。我有一个查询,它可以工作:JOIN pokerhands using (pokerhand_id) RIGHT OUTER JOIN playerhandscashkeycolumns using (pokerhand_id) AND pokerhands.numberofplayers>=5 a
AND movto-estoq.dt-trans <= pd-data2 EACH item OUTER-JOINWHERE movto-estoq.it-codigo = item.it-codigo, WHERE item-cli.item-do-cliitem-cli.it-codigo
AND movto-estoq.un = item-cli