我想左外部连接与计费表的第一行,这有相同的关键字作为明细表。SELECT e.id,a.empid,CASE WHEN ISNULL(bill.key,0) <> 0 Then 'Yes'fromcustomer, accountid from employee e, account a where e.Id = a.empId) w,
detail d LEFT outer join
我正在从一个主详细信息表创建一个java bean。让我们调用主表A和明细表B。当我将其添加到java bean中时,我有BeanA和BeanB。BeanA将具有A表中的所有相关行,并且还将具有基于主键的BeanB列表集合(明细表B)。BeanB> lstpropery; //This is the data of detail table based on the primary key在这个场景中,