How get all record from master and matching record from detail

hi master
sir i have master detail table
i have many record in master table but some record in detail table how i get
all record from master and matching record from detail
such as
select m.accid,m.title,d.dr,d.cr from master m, detail d where m.accid=d.accid
this query not work that get only related record i need all record from master
please give me idea
thanking you
aamir

hi master
sir i have master detail table
i have many record in master table but some record in
detail table how i get
all record from master and matching record from
detail
such as
select m.accid,m.title,d.dr,d.cr from master m,
detail d where m.accid=d.accid
this query not work that get only related record i
need all record from master
please give me idea
thanking you
aamir
select m.accid,m.title,d.dr,d.cr
from master m, detail d
where m.accid=d.accid (+)The outer join operator (+) will get you all the details from master and any details from the detail if they exist, but the master details will still be got even if there are not details.
Note: Oracle 10g now supports ANSI standard outer joins as in:
select m.accid,m.title,d.dr,d.cr
from master m LEFT OUTER JOIN detail d on m.accid=d.accid

Similar Messages

Maybe you are looking for

  • Please remove remaining 255 character API limitations

    I develop a library for creating .xll add-ins using the Excel C API (as described in the Excel SDK: http://msdn.microsoft.com/en-us/library/office/bb687883(v=office.15).aspx ). However, this discussion also applies to the COM Automation interfaces, a

  • Proper video card to run a 23" display on a PC

    I am trying to set up a HP Media Center PC and G4 Mirror Door on a DVI KVM switch. My goal is to view the desktop of each on my 23" Cinema Display, but in order to do so I need a DVI video card that will push the widescreen format. Any recommendation

  • SQL Developer Database Copy truncates DATE columns

    Hope someone can help me. I want to copy all object from one schema to another schema in my Database. I have used the "tools - Database Copy" utility and it copies all of the objects and data however when I query the DATE columns in the destination s

  • GR non-valuated indicator controlled by the Account Assignment Category

    Dear Gurus, In standard customizing, is it possible to do a configuration so that the GR non-valuated indicator in the PO  is controlled by the Account Assignment Category. For example: 1. For Acct Assignment Category = A (Asset), the GR non-valuated

  • License Question - Adobe Edge Inspect

    Ok, here is the problem. We have 3 Creative Suite Cloud licenses for 3 members of our team to use at work. Awesome. We have now built a mobile testing station which is one computer connected to numerous mobile devices for testing purposes. We want to