Join IBY_DOCS_PAYABLE_ALL and AP_INVOICE_PAYMENTS_ALL

I am currently pulling information from these two tables but need to join them to get unique records. I am currently getting duplicates with my current method. Is there an additional join that I am missing or do I need to fill this in with paramters? We are on 12.1.3
My query:
SELECT *
FROM IBY_DOCS_PAYABLE_ALL p,
AP_INVOICE_PAYMENTS_all i
WHERE p.payment_service_request_id = p_payment_batch_id
AND p.payment_id =p_payment_id
AND p.calling_app_doc_unique_ref1 = i.check_id
ORDER BY p.document_payable_id;

plz look at seeded view AP_DOCUMENTS_PAYABLE
FROM
ap_invoices_all ai,
        ap_invoice_payments_all aip,
        ap_payment_schedules_all aps,
WHERE
AND aip.invoice_id = ai.invoice_id
AND ai.invoice_id = aps.invoice_id
      AND aps.payment_num = aip.payment_num
...your code a bit different by
AND aip.invoice_id = aps.invoice_idbut it's ok
>
AND aip.payment_num = aps.payment_num
Is this correct?
>
yes

Similar Messages

  • Prob in joining Query1 and Query2 in Data Model

    Hi,
    I m facing a prob. in joining Multiple queries
    Under data model I've created 2-3 queries which I've to join internally and in my Query1 only 1 bind variable is there, for which i've created a parameter
    but for Query2 and Query3 I m going to user one column value of Query1 as parameter.
    When i m doing this the Xml formed returns only Query1 value and Query2 and Query3 comes as blank.
    Eg.
    Query1 : select deptno,dname from dept where deptno=:p_deptno <:p_deptno is a parameter created in parameter list>
    Query2 : select empno,ename,mgr from emp where deptno=:deptno <where :deptno, i m expecting to come from Query1>
    but it not happening
    whereas my Xml comes as display below:
    <DATA>
    <Q2>
    <Q2_ROW>
    <DEPTNO>10</DEPTNO>
    <DNAME>ACCOUNTING</DNAME>
    </Q2_ROW>
    </Q2>
    <Q1 />
    </DATA>
    tanks in advance for replying
    Regards/goutam

    Personally, I have had a hard time doing what you are asking for using netui tags. I have had the same case, and asked the person in my team to just return a collection of value objects and then iterate through it without the repeater tag. To use the checkbox, I have had to use a String[].
              Kunal

  • Just joined bt and have a real big problem!!!!

    hello there i was very happy untill this morning with my new bt infinity package which was installed last tuesday.i have only just realised with horror that i have taken delivery of the wrong tv box.we have chosen a humax youview box when we should have opted for a bt vision+ box so we could receive the extra 18 channels and sport.we ordered over the phone and i was told it was just a matter of paying a £10 fee to get espn and i didnt realise the extra channels i was paying an additional £12.50 for was the six packs add on which is completely different.anyway i rang up this morning and was told it would cost £199 to change boxes!!!!!!.is this correct??.if so ive got a year with a useless box with next to nothing i want to watch!!.what are my options please.
    on the plus side i am delighted with the phone and broadband!!

    jezstatham
    Visitor
    Posts: 3
    Registered: ‎14-04-2013
    Re: just joined bt and have a real big problem!!!!
    on ‎14-04-2013 22h57
    stuart can you give me a bit more info about the schedule for the humax box being enabled?
    It is scheduled for the summer but lime all schedules it could slip. It requires an update to the software
    They are currently working on delivering this service to those who have the existing boxes ie the Black Vision Box. The two separate platforms will disappear in time with YouView being the future. Have you checked to see if your exchange is multicast enabled
    Life | 1967 Plus Radio | 1000 Classical Hits | Kafka's World
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Helpful Post?
    If a post has been helpful, say thanks by clicking the ratings star.

  • ANSI SQL Syntax - What belongs to join-clause and what to where-clause

    Hello,
    we currently have a discussion about the ANSI SQL Syntax where we do not agree what belongs to the join clause and what belongs to the where clause in an ANSI Sytnax SQL Query.
    Lets say there is a query like this:
    +SELECT *+
    FROM employees emp, departments dept
    WHERE emp.dept_country = dept.dept_country
    AND emp.dept_name = dept.dept_name
    AND dept.dept_type = 'HQ'
    AND emp.emp_lastname = 'Smith'
    Primary key of the departments table is on the columns dept_country, dept_name and dept_type. We have a Oracle database 10g.
    Now I have rewritten the query to Ansi Syntax:
    +SELECT *+
    FROM employees emp
    JOIN departments dept
    ON emp.dept_country = dept.dept_country AND emp.dept_name = dept.dept_name
    WHERE dept.dept_type = 'HQ'
    AND emp.emp_lastname = 'Smith'
    Another developer says that this is not completely correct, every filter on a column that belongs to the primary-key of the joined table has to be in the join clause, like this:
    +SELECT *+
    FROM employees emp
    JOIN departments dept
    +ON emp.dept_country = dept.dept_country AND emp.dept_name = dept.dept_name AND dept.dept_type = 'HQ'
    WHERE emp.emp_lastname = 'Smith'
    Can somebody tell me which on is correct?
    Is there any definition for that? I couldn't find it in the Oracle Database definition.
    I just found out the names of the ANSI documents here: http://docs.oracle.com/cd/B19306_01/server.102/b14200/ap_standard_sql001.htm#i11939
    I had a look at the ANSI webstore but there you have to buy the PDF files. In my case thats exaggerated because both of the Queries work and i am just interessted if there is one correct way.
    Thank you in advance
    Marco

    Hi,
    As i guideline i would say, answer the question: should the result of the join be filtered or should only filtered rows be joined from a particular table?
    This is helpful in the case of outer joins also, for inner joins it doesnt matters as said already be former posters, where there may be hughe semantical differences depending of where the predicates are placed.
    From performance view, if we talk about oracle, take a look a the execution plans. You will see that there is (probably) no difference in case of inner joins. Even in case of outer joins the optimizer pushes the predicate as a filter towards the table if it semantically possible.
    Regards

  • Joining Requisition and Purchase Orders

    Hi I need to join requisitions and purchase orders.
    I know that the PO_DISTRIBUTIONS_ALL has the REQ_DISTRIBUTION_ID column which joins with PO_REQ_DISTRIBUTIONS_ALL column DISTRIBUTION_ID. But the REQ_DISTRIBUTION_ID is not null only in the first distribution line. In all other lines it is null. In this scenario only one shipment line( the first line ) is joined with requisitions. How can I join all the lines of the PO to the requisition ?
    I will explain the exact scenario below:
    A single line requisition which is auto-created into a Purchase order having one line and three shipment lines. Each shipment line has 1 distribution. Therefore there are 3 distribution lines.
    However the distribution line which corresponds to the first shipment line has REQ_DISTRIBUTION_ID populated for the other 2 distribution lines it is NULL. In this case how can I join all the lines of the PO to the requisition ?

    First Set the Message 076 into error..at
    Go to SPRO - MM - Purchaisng -Environment -Define Attributes for System Messages
    Then Go to ME21N trxn and there is a Purchase Requisition field at Item Level..( You can see at the Right side )
    Enter the PR Number and Item No and Press Enter..
    the PR data will be copied to PO & Select Vendor & SAVE the PO

  • Difference between oracle join syntaxes and ANSI join syntaxes

    What is difference between oracle join syntaxes and ANSI join syntaxes ?
    why oracle is having different syntaxes for joins than ANSI syntaxes ?
    Also Join syntaxes are different in some oracle vesrions ?

    BluShadow wrote:
    3360 wrote:
    Yes it is. The Oracle database wasn't initially designed to be ANSI compliant. As you correctly state the ANSI standards weren't around when it was initially designed, so the statement is perfectly correct. ;)Ok, in one sense it may be correct but it is a completely misleading statement. Not sure why you think it's misleading.Because there was no ANSI standard, so making it sound like a design choice The Oracle database wasn't initially designed to be ANSI compliant. would suggest to most readers that there was a standard to be compliant to.
    Like saying Ford originally did not design their cars to incorporate safety features such as ABS, seat belts and air bags.
    The OP asked "why oracle is having different syntaxes for joins than ANSI syntaxes ?" and the answer is that Oracle wasn't initially designed with ANSI compliance, so it has it's old non-ANSI syntax,As shown above, the old syntax was ANSI compliant at the time and to call it non-ANSI is either incorrect or misleading dependent on your point of view.
    and since ANSI syntax became the standard it now supports that. And since ANSI switched to a new standard, Oracle had to implement the new standard as well as the previous ANSI standard would be more accurate in my opinion.
    Nothing misleading as far as I'm aware in that.I find the whole discussion about ANSI and Oracle's supposed non-compliance, reads like it was Oracle's choice to deviate from the standards, when it was ANSI's bullheaded decisions to pointlessly change standards that left Oracle and other vendors out of compliance, and that was a decision made solely by ANSI.
    This is probably the reason ANSI no longer produces SQL standards, the endless syntax fiddling would eventually have made forward left under outer joins a reality.
    {message:id=1785128}

  • I just joined CC and downloaded PS. Since I live in Belgium, it is installed in Dutch, but I would like to get it in English. Anyone knows how I can change this? Thanks!

    HI all,
    I just joined CC and downloaded PS and LR.
    Since I live in Belgium, PS is installed in Dutch, but I would like to get it in English. Anyone knows how I can change this?
    LR is immediately in English so that one is ok.
    Thanks!

    Look at this thread for step by step screenshots on how to do this.
    Photoshop CC / Wrong UI language / How to change? | Adobe Community
    First you add the language, then next you go into Photoshop's Preferences > Interface > UI Language and English should now be an option.
    Change to it and Restart Photoshop

  • When i turn my location service my network is lost and joins again and it is lost again ? in iphone 3gs any idea ?

    when i turn my location service my network is lost and joins again and it is lost again it happens again and again
    in iphone 3gs
    any idea how to resolve it ?

    OK - more details/info now.
    When I use terminal and type this:
    drutil eject
    I believe the DVD drives makes the odd noise I heard when I booted the laptop up.
    Any thoughts?
    I'm guessing that means my fan/hardrive are actually OK then, and it's probably the mechanism in the DVD drive that is causing problems?
    I'm almost certain there's no DVD stuck in there?

  • How  to join OE_ORDER_HEADERS_ALL  and HZ_PARTY_SITES,HZ_PARTIES in R12

    Hi all,
    Please Clarify.
    How to join OE_ORDER_HEADERS_ALL and HZ_PARTY_SITES,HZ_PARTIES in R12

    how can i make a join to get the Customer_Name and Customer_Number from RA_Customer table and oe_order_headers_all and oe_order_lines_all......thanks in advancePlease see these docs for examples on how to join those three tables.
    Multiple Language Request For Sales Order Acknowledgment Has Performance Issue [ID 1275133.1]
    Shipment History Data Are Not Populated In Dp [ID 889057.1]
    Disc0unt Did Not Apply To Sales Order Line With Volume Offer As Modifier [ID 1415593.1]
    Thanks,
    Hussein

  • How to join BKPF and BSEG

    Hi Experts,
    how to join BKPF and BSEG
    Thanks
    nagini

    Hi,
    BKPF is Transparent table but BSEG is cluster table.  We can't create views by joining cluster tables.
    hope it helps...
    regards,
    Raju

  • How to join ce_200_transactions_v and ce_statement_lines in Cash Management?

    Hi all ,
    how to join ce_200_transactions_v and ce_statement_lines in Cash Management?
    Please suggest.

    Did you check eTRM website? -- http://etrm.oracle.com/
    Thanks,
    Hussein

  • Does anyone know how to set up a macbook pro so that other computers can join me and use my internet connection?

    Does anyone know how to set up a macbook pro so that other computers can join me and use my internet connection?

    Have you set up any security on the Mac Connection Sharing?
    Sorry but I don't use that so I'm not familiar with the settings.
    But if you haven't setup and security the iPhone might not mind but I know most Windows computers do not like to connect to Open WiFi. and make sure it is WPA or WPA2.
    Then again it may be a setting in the connection sharing like some type of MAC filtering or it may simply be that Mac OS X connection sharing only allows one connection at a time. Try disconnecting your phone and then connect the PC.
    As to Linc's response about Windows.
    Windows basically does care about connecting to open, unsecured, WiFi. But it will normally pop up a windows asking "Are myou sure you want to connect to this open network". And a simple click on yes will get you connected and an IP address.
    So this is clearly a Mac OS X problem.

  • Allow join domain and user AD authentication through WatchGuard UTM

    The question you have, suggests me, that you are not using WSM to manage your firewall?
    You should use the traffic monitor in the Firebox system Manager, zhat is part of the WSM install and watch the traffic between your DC and a test computer. Therefor you can set a filter in the traffic monitor, so you will be shown only the traffic of your test computer. If some kind of traffic is blocked from or to your test computer, it will be shown as a red line. If you analyze this line, you will see exactly what port it was, that was denied.
    In general tho I think, that all you need is to appoint your clients the use of a DNS server, that is 'AD aware' (has the needed A records you need for AD) and a SMB rule, that will allow SMB traffic to you MS subnet.

    hi all,
    I am configuring new WatchGuard UTM to have 3 different VLANs, for server, staff and students. My target is to allow computers from staff and students to connect DCs on server VLAN and join domain; and staff/student to logon successfully. 
    I found the link below and successfully configured to allow DC replication. 
    https://support.microsoft.com/en-us/kb/832017
    However for computer to join domain and user AD authentication, I could not come up with a list of ports to open on WatchGuard.
    Any suggestions on this would be much appreciated.
    Peter 
    This topic first appeared in the Spiceworks Community

  • Best application to join audio and video?

    So I've got video I've stitched together in imovie and the soundtrack I've done with Logic. Anyone help me figure out the best place to join them and print my movie? imovie seems a little clumsy - can't figure out how to completely ditch the audio from the original movie and add the whole soundtrack. Much thanks for any help!

    QuickTime Pro.
    Copy-All of the audio and then go to the video and Add to Selection.

  • Joining Actuals and Planned Work from Project Server

    Hi,
    I have an SQL based query which returns Actuals and Planned work from Project Server; however a number of records (generally generic resources based on the ResourceIsGeneric column) are excluded. I believe this is because my Actuals query does not return
    generic resources as we are joining both sides of the query on ResourceUID. I have included a snippet below - is there a way to join Actuals and Planned work so I can return all Resource data?
    Thanks
    SELECT tl.ResourceUID
    ,tl.ProjectUID
    ,tl.ResourceName AS [ResourceName]
    ,CASE
    WHEN tl.ProjectName = 'Administrative'
    THEN tl.TaskName
    ELSE tl.ProjectName
    END ProjectName
    ,ruv.RBS AS [RBS]
    ,Sum(ta.ActualWorkBillable) ActualWorkBillable
    ,Sum(ta.ActualWorkNonBillable) ActualWorkNonBillable
    ,Sum(ta.ActualOvertimeWorkBillable) ActualOvertimeWorkBillable
    ,Sum(ta.ActualOvertimeWorkNonBillable) ActualOvertimeWorkNonBillable
    ,CASE
    WHEN Sum(ta.ActualOvertimeWorkBillable) > 0
    THEN Sum(ta.ActualOvertimeWorkBillable)
    END [HOURS]
    ,DATEPART(year, ta.TimeByDay) AS [Year]
    ,DATEPART(month, ta.TimeByDay) AS [Month]
    ,DATENAME(month, DATEADD(month, DATEPART(month, ta.TimeByDay), - 1)) AS [MonthName]
    ,puv.[Project Status] AS [ProjectStatus]
    ,ruv.[Primary Role] AS [PrimaryRole]
    ,ruv.[Resource Department] AS [Department]
    ,ruv.ResourceIsGeneric
    ,ruv.[Cost Category] AS [ResourceType]
    ,puv.[SAP Project Code] AS [SAPProjectCode]
    ,CASE
    WHEN tl.ProjectName <> 'Administrative'
    THEN NULL
    ELSE tl.TaskName
    END TaskName
    ,puv.[Project Plan Type] AS [ProjectPlanType]
    ,puv.[GEM Project Manager] AS [GemPM]
    ,ruv.[Rate Code] AS [RateCode]
    ,ruv.[Cost Centre] AS [CostCentre]
    ,ept.EnterpriseProjectTypeName AS [EPT]
    ,puv.[I DO Phase]
    ,puv.ProjectOwnerName AS [ProjectOwner]
    FROM dbo.MSP_TimesheetActual_OlapView ta
    INNER JOIN dbo.MSP_TimesheetLine_UserView tl
    ON ta.TimesheetLineUID = tl.TimesheetLineUID
    INNER JOIN dbo.MSP_EpmResource_UserView ruv
    ON ruv.ResourceUID = tl.ResourceUID
    LEFT JOIN dbo.MSP_EpmProject_UserView puv
    ON puv.ProjectUID = tl.ProjectUID
    LEFT JOIN dbo.MSP_EpmEnterpriseProjectType ept
    ON ept.EnterpriseProjectTypeUID = puv.EnterpriseProjectTypeUID
    WHERE ta.TimeByDay >= @xDate1
    AND ta.TimeByDay < @xDate2
    AND tl.TimesheetStatus IN (
    SELECT ParamValues
    FROM @ParamTable
    AND ta.ActualWorkBillable > 0
    GROUP BY ...
    ) TimesheetActual
    FULL JOIN (
    SELECT ruv.ResourceUID
    ,puv.ProjectUID
    ,ruv.ResourceName
    ,puv.projectname AS ProjectName
    ,ruv.RBS AS [RBS]
    ,Sum(abduv.AssignmentWork) AS [PlannedWork]
    ,DATEPART(year, abduv.TimeByDay) AS [Year]
    ,DATEPART(month, abduv.TimeByDay) AS [Month]
    ,DATENAME(month, DATEADD(month, DATEPART(month, abduv.TimeByDay), - 1)) AS [MonthName]
    ,ruv.ResourceIsGeneric
    ,puv.[Project Status] AS [ProjectStatus]
    FROM dbo.MSP_EpmResource_UserView ruv
    INNER JOIN dbo.MSP_EpmAssignment_UserView auv
    INNER JOIN dbo.MSP_EpmAssignmentByDay_UserView abduv
    ON auv.AssignmentUID = abduv.AssignmentUID
    AND auv.ProjectUID = abduv.ProjectUID
    ON ruv.ResourceUID = auv.ResourceUID INNER JOIN dbo.MSP_EpmProject_UserView puv
    ON auv.ProjectUID = puv.ProjectUID
    AND abduv.ProjectUID = puv.ProjectUID INNER JOIN dbo.MSP_TimeByDay_OlapView tbdov
    ON abduv.TimeByDay = tbdov.TimeByDay WHERE abduv.TimeByDay >= @xDate1
    AND abduv.TimeByDay < @xDate2
    AND ruv.ResourceName <> 'Unassigned Resource'
    AND ruv.ResourceName IS NOT NULL
    AND abduv.AssignmentWork > 0
    GROUP BY ruv.ResourceUID
    ,puv.ProjectUID
    ,ruv.ResourceName
    ,puv.projectname
    ,ruv.RBS
    ,DATEPART(year, abduv.TimeByDay)
    ,DATEPART(month, abduv.TimeByDay)
    ,ruv.ResourceIsGeneric
    ,puv.[Project Status]
    ) TimesheetPlanned
    ON TimesheetActual.ResourceUID = TimesheetPlanned.ResourceUID
    AND TimesheetActual.[Year] = TimesheetPlanned.[Year]
    AND TimesheetActual.[MonthName] = TimesheetPlanned.[MonthName]

    Hi,
    you pasted just part of your query, e.g. is declaration of @ParamTable missing. Without complete query, it is difficult to see, what you are trying to do.
    Could you please provide complete query?
    Barbara
    To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
    an appropriate solution faster. Thanks for your support!

Maybe you are looking for