Advertisement

09.10.2008 at 04:17PM PDT, ID: 23721291 | Points: 500
[x]
Attachment Details

How to retrieve Detail info. using outerjoin

Asked by badtz7229 in Oracle 9.x, Oracle 10.x

Tags:

I have a sql that will retrieve data from columns belong to header and detail tables.
select o.formno, o.notes, l.lineno , l.createddate
from header o , details l
where o.order = l.order(+)

there is a filter window where user can select more conditions from  a checkbox which then get appended to the sql.

for instance,  a user has the option of retrieving data in which info. from header AND details appear or info. from header table ONLY appear.
Something like this

--this returns data from both tables.
select o.formno, o.notes, l.lineno , l.createddate
from header o , details l
where o.order = l.order(+)
and l.lineno >=0   --the appended condition from checkbox user selected


i don't know how to make it such that only data from header table will be returned- what do i add in the condition - so that even if there are details. do not display them ???Start Free Trial
[+][-]09.10.2008 at 05:02PM PDT, ID: 22444396

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 05:22PM PDT, ID: 22444606

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2008 at 09:19PM PDT, ID: 22446311

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 06:07AM PDT, ID: 22449316

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 09:00AM PDT, ID: 22451318

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 10:03AM PDT, ID: 22452038

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 05:55PM PDT, ID: 22456355

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 05:59PM PDT, ID: 22456386

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 06:01PM PDT, ID: 22456389

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 06:04PM PDT, ID: 22456402

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628