一丶例1
1 CREATE VIEW v_billonline 2 as 3 4 select rb.Area,rb.ProjectId,rb.ProjectName, 5 rb.FloorNumber,rb.FormatsName,rb.TwoFormatsName, 6 rb.BunkNo,rb.BrandAbbreviation,s.BusinessManager, 7 s.StoreManager,s.StoreManagerPhone, 8 rb.BillYear,rb.BillMonth,rb.ThisReceivable as RentReceivable, 9 rb.BillStatus as RentBillStatus,rb.F_ID as RentBilld, 10 pb.ThisReceivable as PropertReceivable,pb.BillStatus as PropertBillStatus, 11 pb.F_ID as PropertBillId 12 from he_finance_rentbill rb -- 1 13 LEFT JOIN he_finance_propertybill pb 14 on rb.PlanId=pb.PlanId and rb.BillYear = pb.BillYear and rb.BillMonth= pb.BillMonth -- 2 15 LEFT JOIN he_merchants_store s on rb.PlanId=s.PlanId;