34,590
社区成员
发帖
与我相关
我的任务
分享
select * from a inner join b on a.ID=b.BID
select * from a,b where a.ID=b.BID
select issue.s_goodsid,issue.s_deptid,s_deptname,s_style,s_emplid,s_gdsname,f_saleqty,f_execpri,s_saledt,s_saletm,s_cashid from issue INNER join vip_cardlist on issue.s_saledt=vip_cardlist.s_date and issue.i_listid=vip_cardlist.i_listid and issue.s_posid=vip_cardlist.s_posid left outer join goods on issue.s_goodsid=goods.s_goodsid and dbo.issue.s_deptid = dbo.goods.s_deptid LEFT OUTER JOIN department on issue.s_deptid=department.s_deptid where s_saledt> ='2006/07/30' and s_saledt <='2006/07/31' and vip_cardlist.s_cardid='123456' order by s_saledt desc
select issue.s_goodsid
,issue.s_deptid
,s_deptname
,s_style
,s_emplid
,s_gdsname
,f_saleqty
,f_execpri
,s_saledt
,s_saletm
,s_cashid
from issue INNER join vip_cardlist on issue.s_saledt=vip_cardlist.s_date
and issue.i_listid=vip_cardlist.i_listid
and issue.s_posid=vip_cardlist.s_posid
left outer join goods on issue.s_goodsid=goods.s_goodsid
and dbo.issue.s_deptid = dbo.goods.s_deptid
LEFT OUTER JOIN department on issue.s_deptid=department.s_deptid
where s_saledt> ='2006/07/30'
and s_saledt <='2006/07/31'
and vip_cardlist.s_cardid='123456'
order by s_saledt desc