left outer join in sql need values from two tables values not coming -


i need values 2 tables using left outer join. code

select rr.rrid,        rr.propertyid,        rr.roomtypeid,        rr.occid,        rr.rate,        rt.accountid,        rr.createdby,        rr.createddate,        rr.updatedby,        rr.updateddate,        (ot.occid) txoccid,        (ot.occupancy) textoccupancy,        (rt.roomtypeid) txroomtyprid,        (rt.typename) textroomtype  app_roomrate rr   right outer join tx_myroomtype rt on rt.roomtypeid = rr.roomtypeid  right outer  join tx_myoccupancytype ot on ot.occid=rr.occid    rt.accountid=2  

in getting last table tx_occpancy values, need tx_roomtype values 2 left outer join,

advance thanks

i see no left joins in query, right joins. try replacing them left joins , see happens.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -