Successfactors (SBS)- Query

Hi Experts,
We are figuring out SuccessFactors integration mechanism called Side by Side (SBS) for our client, however we have certain queries for which we are struggling to get the answer.
What are the pre-requisites for using SBS?
We understand that ECC6 is required but do we also require EHP6 over this and if yes, which patch level and does it require HR Renewal also?
Can we call ABAP Webdynpro applications on EC using SBS?
Looking forward for your advice.
Thanks & Regards
Sahil Kohli

Hi Sahil,
This will be officially released in August (August 22nd) and technical information should be available then, or just before.
Best regards,
Luke

Similar Messages

  • SuccessFactors and DataServices: Query &UNSPECIFIED_NAME was not found in data flow

    Fellow Techies--
    How do I debug an error like this in data services? I am using the SuccessFactors adapter as the source and sql server tables as the target. The queries to bring the data over are straightforward. Validation claims there are no errors. What am I looking for in this case?

    Hi Paula and Manoj,
    Thanks for writing this post. I was facing similar issue and this was the only post on the subject. I was getting the same error while validating the job. I was not able to trace the reason for the same. Now, I know that the error occured due to CORRUPTION. I am current work, we are facing lots of performance issue due to limitations of the server hardware. We restart the server once a day to resolve performance issues. One such restart must have corrupted my work.
    What I did was:
    STEP 01: unckeck the box under FROM clause of Query transform and then validate the job. There were some new errors.
    STEP02: Check the box again and validate. BINGO !! The error was gone.
    Hope the post will help other is future too.

  • Sharepoint Foundation 2013 On a SBS 2011 Domain??

    I have an SBS 2011 domain with 2 servers(SBS2011 Premium) The SBS box acts as domain controller and the second server runs Server 2008R2 and has SQL 2008R2 on it for Dynamics GP and Dynamics CRM 2011 and hosts the Sharepoint Foundation 2010 Databases. Is
    there a way that I can setup a Sharepoint Foundation 2013 farm. Currently both boxes are farm members in the 2010 farm. I would like to keep the setup similar but if I have to can I just run the farm on the 2nd server. Will it live side by side with the Sharepoint
    2010 on the SBS box. What about Companyweb? Thanks in advance
        Joe Powers

    I guess SBS guys will be the right people to answer your query, please post you question on the below forum:
    http://social.technet.microsoft.com/Forums/en-US/home?category=sbsserver
    Please ensure that you mark a question as Answered once you receive a satisfactory response.

  • SBS 2011 DNS Resolution Slow

    I have a customer running SBS2011 Standard.  We've had problems with slow DNS resolute for a very long time.  When users on their workstations go to a web site in IE, it usually takes a couple of seconds to load the site.  The best example
    of the problem is on Yahoo!.  When users click a link there, IE will spin for a while and then time out.  If they click on the link again, it usually loads the second time.
    We recently switched internet providers and I was hoping that might resolve the issue, but it has not.  The server is up-to-date as of a month or so ago and I've run BPA and the only issue there is with WSUS Group Policy objects, which I don't care
    about.  I wouldn't think this would be related to that.  There are no errors in the DNS logs.  This server was originally a clean install of a new domain, not a migration.
    I have Forwarders configured and have tried using the DNS servers of the old ISP, the new ISP and OpenDNS.  No improvement with any of those changes.  On the Monitoring tab of the DNS server properites, "A simple query against this DNS server"
    and "A recursive query to other DNS server" both fail every time.  If I get rid of the Forwarders, those queries still fail and DNS resolute at the clients is still slow.
    I know there was a DNS issue that was reported by the BPA a while ago and I fixed that.  I think it was a registry setting that needed to be adjusted, but I can't recall the details right now.
    I ran DCDIAG last night and was receiving messages about running Chkdsk to fix errors.  I was hopeful that that would fix something, but I'm no longer getting that message.  Now, the only errors in DCDIAG are SystemLog errors about not being able
    to contact a machine that has been off the network for a while.
    Restarting the server or just the DNS server has never helped.
    My server has a PTR record in the reverse lookup zone and a static A record in the Forward Lookup Zone.
    When I run NSLookup, it only responds with
    Default Server:  UnKnown
    Address:  fe80::9fcf:d19d:a86e:46cd
    On another SBS server that I have, it has all of this information:
    x.x.2.0.3.x.8.6.x.x.x.2.0.d.f.d.0.0.0.0.0.0.0.0.0.0.0.0.0.8.x.x.ip6.arpa
            primary name server = localhost
            responsible mail addr = nobody.invalid
            serial  = 1
            refresh = 600 (10 mins)
            retry   = 1200 (20 mins)
            expire  = 604800 (7 days)
            default TTL = 10800 (3 hours)
    Default Server:  UnKnown
    Address:  fe80::dfd0:2dca:68f3:2cf
    Is that a helpful clue?  Where do I start with troubleshooting and/or checking settings?
    Any help would be appreciated.
    Thank,
    Mike

    I would certainly change the router, just to rule it out.
    Have you run the SBS BPA and fixed any issues it highlights?
    If pointing a client directly to an external DNS, improves, but does not fully resolve, i would be inclined to say the Server is 'ok' and that it may be the router at fault.
    It has been too long since i looked at a ProSafe router, but there may well be some firewall settings you can tweak.
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • I can't add my Widows 7 Professional to my SBS 2003 R2 Domain

    I am working on a Windows 2003 R2 Small Business Systems network, with 6 Windows Vista computers already attached to its domain. I am trying to add a Windows 7 Professional laptop to this domain, but have not been able to make that addition, even though
    I have tried several of the fixes I have found on different forums. I have run the KB926505 patch on the server, tried adding the computer through the sever addition process then tried to add it from the computer. All efforts have failed. When using the server
    set up, I am told that a script will run to complete the process, but that never happens. When I try to add the computer to the domain from the computer, I get an error that says it can't find the domain controller, even though I can ping the IP of the server. 
    The text from the "dcdiag.txt" file is -> DNS was successfully queried for the service location (SRV) resource record used to locate a domain controller for domain "pinnaclesalesinc.local":
    The query was for the SRV record for _ldap._tcp.dc._msdcs.pinnaclesalesinc.local
    The following domain controllers were identified by the query:
    (no Active Directory Domain Controllers found)
    However no domain controllers could be contacted.
    Common causes of this error include:
    - Host (A) or (AAAA) records that map the names of the domain controllers to their IP addresses are missing or contain incorrect addresses.
    - Domain controllers registered in DNS are not connected to the network or are not running.
    Any help would be greatly appreciated.

    On the laptop go to the command line and run ipconfig /all to make sure the laptop is getting its IP info from the SBS2003's DHCP and verify DNS is pointing to the SBS2003 server.  The DNS server on the laptop needs to point to the SBS server and
    not some other DNS in order to retrieve that record.  If it is OK then maybe check that the record exists in the SBS2003 DNS or run the SBS2003 BPA (http://www.microsoft.com/en-ca/download/details.aspx?id=5334) as I believe it will check for that.
    -- Al

  • Can I run a .bat, .cmd, or .ps1 on SBS 2011 server startup, without login.... like a service.

    Hi all,
    I'm running Windows SBS 2011.  I need to run a script at server startup, prior to login to any user account (like a service does...).  This short script will check the status of another service.  Because this
    service depends on Exchange & SQL, it sometimes fails to start at reboot if Exchange and or SQL Server haven't finished initializing.
    I was also thinking of using sc.exe to change the config of the service in question (adding dependencies), but this is a third-party software from Reuters, and I am somewhat reluctant to edit the configuration of someone else's code (and possibly break something). 
    This is a production server at a law firm.
    here's the script:
    start of listing
    =============================================
    @echo off
    rem Look for ProLaw Groupware Agent in running Services.
    rem check to see if ProLaw Groupware Agent is running. If it IS
    rem running, jump to exit-program label, else run the Agent after
    rem waiting for Microsoft Exchange & Microsoft SQL Server to start.
    rem =======================================
    :start
    C:\Windows\system32\sc query "ProLawGroupwareAgent" | find "RUNNING" >> c:\temp\plgwagentstatus.txt
    if errorlevel 0 goto :end
    rem wait 10 min after server startup,
    rem to (Allow Exchange & SQL to start)
    rem THEN, start ProLawGroupwareAgent
    rem ========================
    echo "Service not started.... Let's wait 10 minutes, and retry." >> c:\temp\plgwagentstatus.txt
    c:\
    timeout /t 600 > nul
    cd "\Program Files (x86)\ThomsonElite\ProLaw GroupwareAgent"
    net start AgentHostService.exe
    timeout /t 20 > nul
    goto :start
    :end
    =============================================
    end of listing

    What I do in this case (I don't have access to exact script I use) is a similar script scheduled via windows task scheduler every five minutes to check if service running, if not start it but you can have the IF-THEN-ELSE do whatever is required.
    http://gallery.technet.microsoft.com/scriptcenter/01fcf945-ad73-44e0-8cb5-152432bc6bcf
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Backup never finishes query

    I have a small business server 2011. On the console the backup keeps querying and never finishes while the other tabs [Security, Updates and Other Alerts] are Ok.
    If I try to backup, using the console it stacks at "Loading data. Please wait ..." and server backup, I get "Reading data;please wait..." message when tries to load the disk etc. In the event log all
    I see is event 753 & 754 in application source backup.
    What is causing this? How do I resolve this because I can't do backup?

    Hi,
    Regarding the current issue, have you tried to repair Windows Server Backup to see if it could resolve the issue?
    Repair Windows Server Backup
    http://technet.microsoft.com/en-us/library/gg697172.aspx
    In addition, maybe the SharePoint update stops the backup from working, please also refer to the article below for troubleshotting.
    You Must Manually Run PSCONFIG after Installing SharePoint 2010 Patches
    http://blogs.technet.com/b/sbs/archive/2011/05/24/you-must-manually-run-psconfig-after-installing-sharepoint-2010-patches.aspx
    Hope this helps.
    Best Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • XMLAttribute unable to handle multiple values returning from a query

    Hi Guys,
    I have to design the format of the data returning from a query in XML. For this i have used xmlelement and xmlattribute
    the query goes like this
    SELECT '<?xml version="1.0" ?>'||' '||XMLELEMENT("imageData",
    XMLATTRIBUTES(LI.GROUPNO as "imageName", 'PNG'as "imageType", '2.0' as "version", 'com.snapon.sbs' as "xmlns"),
    XMLELEMENT("callouts",
    XMLATTRIBUTES('roundedRectangle' as "shape"),
    XMLELEMENT("callout",
    XMLATTRIBUTES((SELECT IO.PNC_KEYNO FROM PFEALIOCR IO WHERE IO.BASECATALOGNO = LI.BASECATALOGNO AND LI.GROUPNO = IO.GROUPNO) as "label"),
    XMLELEMENT("point",
    XMLATTRIBUTES((SELECT IO.COORDINATESX1 FROM PFEALIOCR IO WHERE IO.BASECATALOGNO = LI.BASECATALOGNO AND LI.GROUPNO = IO.GROUPNO) as "x",(SELECT IO.COORDINATESY1 FROM PFEALIOCR IO WHERE IO.BASECATALOGNO = LI.BASECATALOGNO AND LI.GROUPNO = IO.GROUPNO) as "y")))))
    FROM PFEALIGIL LI
    WHERE LI.DELETEFLAG <> 'D'
    here he logic is the one groupno from pfealigil and the corresponding pnc_keyno that are related to groupno are fetched here. but here since multiple pnc_keyno are returning xmlattributes is unable to handle. I want to design the xml in this format
    <?xml version="1.0" ?>
    <imageData imageName="ISDH0001104"
    imageType="PNG" version="2.0" xmlns="com.snapon.sbs">
    <callouts shape="roundedRectangle">
    <callout label="182">
    <point x="289" y="68"/>
    </callout>
    <callout label="247"<point x="430" y="83"/>
    </callout>
    <callout label="122"><point x="546" y="331"/>
    </callout>
    <callout label="249"><point x="402" y="429"/>
    </callout>
    <callout label="248"><point x="392" y="463"/>
    </callout>
    <callout label="182"><point x="228" y="416"/>
    </callout>
    <callout label="1"><point x="364" y="737"/>
    </callout>
    <callout label="14"><point x="494" y="980"/>
    </callout>
    <callout label="168"><point x="671" y="910"/>
    </callout>
    <callout label="15"><point x="779" y="848"/>
    </callout>
    <callout label="1"><point x="805" y="343"/>
    </callout>
    </callouts>
    </imageData>
    like here one image name all those pnc_keyno that are valid should come in this way as above. Please let me know if anything is unclear to you

    apexStarter wrote:
    Data model goes like thisYou mentioned two tables in your first post, but I guess it's just a matter of joining them to get the above resultset?
    In this case you can do it like this :
    SQL> WITH sample_data AS (
      2    SELECT '91-921' groupno, '1125AE' pnc_keyno, 000000127 coordinatesx1, 000000730 coordinatesy1 FROM dual UNION ALL
      3    SELECT '91-921', '18642F', 000000513, 000000891 FROM dual UNION ALL
      4    SELECT '91-921', '18643D', 000000620, 000000844 FROM dual UNION ALL
      5    SELECT '91-921', '18649E', 000000561, 000000688 FROM dual UNION ALL
      6    SELECT '91-921', '18668B', 000000620, 000000864 FROM dual UNION ALL
      7    SELECT '91-921', '92101A', 000000587, 000000591 FROM dual UNION ALL
      8    SELECT '91-921', '92102A', 000000587, 000000571 FROM dual UNION ALL
      9    SELECT '91-924', '1243BD', 000000617, 000000889 FROM dual
    10  )
    11  SELECT XMLRoot(
    12           XMLElement("imageData",
    13             XMLAttributes(
    14               groupno as "imageName"
    15             , 'PNG'as "imageType"
    16             , '2.0' as "version"
    17             , 'com.snapon.sbs' as "xmlns"
    18             )
    19           , XMLElement("callouts",
    20               XMLAttributes('roundedRectangle' as "shape")
    21             , XMLAgg(
    22                 XMLElement("callout",
    23                   XMLAttributes(pnc_keyno as "label")
    24                 , XMLElement("point",
    25                     XMLAttributes(
    26                       coordinatesx1 as "x"
    27                     , coordinatesy1 as "y"
    28                     )
    29                   )
    30                 )
    31               )
    32             )
    33           )
    34         , version '1.0'
    35         )
    36  FROM sample_data
    37  GROUP BY groupno
    38  ;
    XMLROOT(XMLELEMENT("IMAGEDATA",XMLATTRIBUTES(GROUPNOAS"IMAGENAME",'PNG'AS"IMAGETYPE",'2.0'AS"VERSION",'COM.SNAPON.SBS'AS
    <?xml version="1.0"?>
    <imageData imageName="91-921" imageType="PNG" version="2.0" xmlns="com.snapon.sbs">
      <callouts shape="roundedRectangle">
        <callout label="1125AE">
          <point x="127" y="730"/>
        </callout>
        <callout label="92102A">
          <point x="587" y="571"/>
        </callout>
        <callout label="92101A">
          <point x="587" y="591"/>
        </callout>
        <callout label="18668B">
          <point x="620" y="864"/>
        </callout>
        <callout label="18649E">
          <point x="561" y="688"/>
        </callout>
        <callout label="18643D">
          <point x="620" y="844"/>
        </callout>
        <callout label="18642F">
          <point x="513" y="891"/>
        </callout>
      </callouts>
    </imageData>
    <?xml version="1.0"?>
    <imageData imageName="91-924" imageType="PNG" version="2.0" xmlns="com.snapon.sbs">
      <callouts shape="roundedRectangle">
        <callout label="1243BD">
          <point x="617" y="889"/>
        </callout>
      </callouts>
    </imageData>

  • SBS 2003 R2 premium (with ISA 2004) Exchange ActiveSync not working

    A client has a SBS 2003 R2 premium (with ISA 2004) and wants to sync iPhones and Android phones.
    When using the Microsoft Remote Connectivity Analyzer and selecting 'Exchange ActiveSync' we get 'The test of the FolderSync command failed. Exchange ActiveSync returned an HTTP
    500 response.'
    We tried every solution we could find on the internet, without success.
    This is what we tried and checked so far:
    - fixed IP, DNS, trusted SSL (comodo) seem all OK
    - Exchange 2003 SP2 and ISA 2004 SP3 installed.
    - RWW and OWA working fine.
    - tests with iPhone and Android -> 'cannot get mail. The connection to the server failed'.
    - event viewer reveals no further clues.
    - ran CEICW several times enabling and disabling most remote options (OWA OMA,...)
    - manually checked all vDir settings in IIS6
    - tested with different accounts, created a testaccount without any administrative privileges in Active Directory.
    - surfing to servername/microsoft-server-activesync from local network and to domain/microsoft-server-ActiveSync from external computer both give: HTTP 501/HTTP 505 error as expected.
    - reset the default virtual directories
    - on ISA a query by dest port (443) shows traffic reaching the ISA server ending in:
    Log   type:
    Web   Proxy (Reverse)
    Status:  
    500   Internal Server Error
    Rule:
    SBS OMA Web Publishing Rule
    Source:
    External ( XX.XX.XX.XX:0)
    Destination:
    ( XX.XX.XX.XX:443)
    Request:
    POST
    Filter information:
    Req ID: 1c6d0bea
    Protocol:  
    https
    User:  
    anonymous
    Could anyone give me any pointers on what I need to do to get this working please?
    Many thanks in advance for your assistance.
    Regards
    Jean-Paul Laffargue
    ARCOM BVBA

    I used to have a SBS2003 on ISA running activesync with no issues so I'll try and give you guidance although it's been a while.  I gather this is the first time use of this feature on this SBS?  If so make sure you follow the instructions here:
    http://technet.microsoft.com/en-us/library/cc182239.aspx
    Also make sure you've enabled all mobile services in exchange features and updated your users with the Mobile User profile (I think they need to be members of the Mobile and Remote Web Workplace groups in Manage Users IIRC).  Anything in the event logs?
     Also, for some phones you need to manually download the certificate if you use a self-signed type.
    Note that in the end it may be time to replace this soon to be unsupported ISA with a separate firewall (or a "free" Untangle box) and go to a one NIC solution.  It simplifies things and you need to do that anyway to transition off SBS2003 when it is
    unsupported next year.
    -- Al

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Logical database in adhoc query

    Hello All,
    Can anyone tell me what is the logical database in adhoc query?

    Hi
    When you create a query , you have to select an infoset. Infoset can be considered as a source from which data is populated in the Query Fields.
    Infosets are created from Transaction SQ02.
    There can be four methods through which an Infoset can become a source of data:
    1.  Table join ( By joining two or more tables from Data dictionary)
         example: Joining tables PA0001 and PA0006 on Pernr to get a one resultant dataset
    2. Direct read of Basis Table ( Like PA0001 as a source for data in Infoset )
    3. Logical Database ( A Pre-written Program by SAP that extract data from clusters, tables taking care of authorizations and validity periods)
    Example : Logical database PNP, PNPCE (Concurrent Employement),PCH ( LDB for Personnel Development Data)
    Custom Logical DBs can be created in T_Code SE-36.
    4. Data Retrieval by a Program ( Custom code written by ABAP developers which will collect and process data) . This program has a corresponding Structure in data dictionary and the fields of this structure will be used in query)
    Reward Points, if helpful.
    Regards
    Waseem Imran

  • Query help on Goods Receipt Query with AP Invoice

    Looking for a little help on a query.  I would like to list all the goods receipts for a given date range and then display the AP Invoice information (if its been copied to an AP Invoice).  I think my problem is in my where clause, I plagerized an SAP query to show GR and AP from a PO as a start.  SBO 2005 SP01.  Any help would be great appreciated.  Thanks
    SELECT distinct 'GR',
    D0.DocStatus,
    D0.DocNum ,
    D0.DocDate,
    D0.DocDueDate,
    D0.DocTotal,
    'AP',
    I0.DocStatus,
    I0.DocNum ,
    I0.DocDate,
    I0.DocDueDate,
    I0.DocTotal,
    I0.PaidToDate
    FROM
    ((OPDN  D0 inner Join PDN1 D1 on D0.DocEntry = D1.DocEntry)
    full outer join
    (OPCH I0 inner join PCH1 I1 on I0.DocEntry = I1.DocEntry)
    on (I1.BaseType=20 AND D1.DocEntry = I1.BaseEntry AND D1.LineNum=I1.BaseLine))
    WHERE
    (D1.BaseType=22 AND D1.DocDate>='[%0]' AND D1.DocDate<='[%1]')
    OR (I1.BaseType=20 AND I1.BaseEntry IN
    (SELECT Distinct DocEntry
    FROM PDN1 WHERE BaseType=22 AND DocDate>='[%0]' AND DocDate<='[%1]'))

    Hi Dalen ,
    I  believe it is because of the condition
    (D1.BaseType=22 AND D1.DocDate>='%0' AND D1.DocDate<='%1')
    OR (I1.BaseType=20 AND I1.BaseEntry IN
    (SELECT Distinct DocEntry FROM PDN1 WHERE PDN1.BaseType=22 AND DocDate>='%0' AND DocDate<='%1'))
    Try changing
    D1.BaseType=22 OR D1.DocDate>='%0' AND D1.DocDate<='%1
    PDN1.BaseType=22 OR DocDate>='%0' AND DocDate<='%1'))
    Lets see what would be the result . Lets have some fun with troubleshooting
    See what would be the difference in the result .
    Thank you
    Bishal

  • Can you check for data in one table or another but not both in one query?

    I have a situation where I need to link two tables together but the data may be in another (archive) table or different records are in both but I want the latest record from either table:
    ACCOUNT
    AccountID     Name   
    123               John Doe
    124               Jane Donaldson           
    125               Harold Douglas    
    MARKETER_ACCOUNT
    Key     AccountID     Marketer    StartDate     EndDate
    1001     123               10526          8/3/2008     9/27/2009
    1017     123               10987          9/28/2009     12/31/4712    (high date ~ which means currently with this marketer)
    1023     124               10541          12/03/2010     12/31/4712
    ARCHIVE
    Key     AccountID     Marketer    StartDate     EndDate
    1015     124               10526          8/3/2008     12/02/2010
    1033     125               10987         01/01/2011     01/31/2012  
    So my query needs to return the following:
    123     John Doe                        10526     8/3/2008     9/27/2009
    124     Jane Donaldson             10541     12/03/2010     12/31/4712     (this is the later of the two records for this account between archive and marketer_account tables)
    125     Harold Douglas               10987          01/01/2011     01/31/2012     (he is only in archive, so get this record)
    I'm unsure how to proceed in one query.  Note that I am reading in possibly multiple accounts at a time and returning a collection back to .net
    open CURSOR_ACCT
              select AccountID
              from
                     ACCOUNT A,
                     MARKETER_ACCOUNT M,
                     ARCHIVE R
               where A.AccountID = nvl((select max(M.EndDate) from Marketer_account M2
                                                    where M2.AccountID = A.AccountID),
                                                      (select max(R.EndDate) from Archive R2
                                                    where R2.AccountID = A.AccountID)
                   and upper(A.Name) like parameter || '%'
    <can you do a NVL like this?   probably not...   I want to be able to get the MAX record for that account off the MarketerACcount table OR the max record for that account off the Archive table, but not both>
    (parameter could be "DO", so I return all names starting with DO...)

    if I understand your description I would assume that for John Dow we would expect the second row from marketer_account  ("high date ~ which means currently with this marketer"). Here is a solution with analytic functions:
    drop table account;
    drop table marketer_account;
    drop table marketer_account_archive;
    create table account (
        id number
      , name varchar2(20)
    insert into account values (123, 'John Doe');
    insert into account values (124, 'Jane Donaldson');
    insert into account values (125, 'Harold Douglas');
    create table marketer_account (
        key number
      , AccountId number
      , MktKey number
      , FromDt date
      , ToDate date
    insert into marketer_account values (1001, 123, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('27.09.2009', 'dd.mm.yyyy'));
    insert into marketer_account values (1017, 123, 10987, to_date('28.09.2009', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
    insert into marketer_account values (1023, 124, 10541, to_date('03.12.2010', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
    create table marketer_account_archive (
        key number
      , AccountId number
      , MktKey number
      , FromDt date
      , ToDate date
    insert into marketer_account_archive values (1015, 124, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('02.12.2010', 'dd.mm.yyyy'));
    insert into marketer_account_archive values (1033, 125, 10987, to_date('01.01.2011', 'dd.mm.yyyy'), to_date('31.01.2012', 'dd.mm.yyyy'));
    select key, AccountId, MktKey, FromDt, ToDate
         , max(FromDt) over(partition by AccountId) max_FromDt
      from marketer_account
    union all
    select key, AccountId, MktKey, FromDt, ToDate
         , max(FromDt) over(partition by AccountId) max_FromDt
      from marketer_account_archive;
    with
    basedata as (
    select key, AccountId, MktKey, FromDt, ToDate
      from marketer_account
    union all
    select key, AccountId, MktKey, FromDt, ToDate
      from marketer_account_archive
    basedata_with_max_intervals as (
    select key, AccountId, MktKey, FromDt, ToDate
         , row_number() over(partition by AccountId order by FromDt desc) FromDt_Rank
      from basedata
    filtered_basedata as (
    select key, AccountId, MktKey, FromDt, ToDate from basedata_with_max_intervals where FromDt_Rank = 1
    select a.id
         , a.name
         , b.MktKey
         , b.FromDt
         , b.ToDate
      from account a
      join filtered_basedata b
        on (a.id = b.AccountId)
    ID NAME                     MKTKEY FROMDT     TODATE
    123 John Doe                  10987 28.09.2009 31.12.4712
    124 Jane Donaldson            10541 03.12.2010 31.12.4712
    125 Harold Douglas            10987 01.01.2011 31.01.2012
    If your tables are big it could be necessary to do the filtering (according to your condition) in an early step (the first CTE).
    Regards
    Martin

  • Query help : Query to get values SYSDATE-1 18:00 hrs to SYSDATE 08:00 hrs

    Hi Team
    I want the SQl query to get the data for the following comparison : -
    Order Created is a Date Column , and i want to find out all the values from (SYSDATE-1) 18:00 hours to SYSDATE 08:00 hours
    i.e.
    (SYSDATE-1) 18:00:00 < Order.Created < SYSDATE 08:00:00.
    Regards

    Hi, Rohit,
    942281 wrote:
    If i want the data in the below way i.e.
    from (SYSDATE-1) 18:00 hours to SYSDATE 17:59 hours ---> (SYSDATE-1) 18:00:00 < Order.Created < SYSDATE 07:59:00.If you want to include rows from exactly 18:00:00 yesterday (but no earlier), and exclude rows from exatly 08:00:00 today (or later), then use:
    WHERE   ord_dtl.submit_dt  >= TRUNC (SYSDATE) - (6 / 24)
    AND     ord_dtl.submit_dt  <  TRUNC (SYSDATE) + (8 / 24)
    So can i use the below format : -
    ord_dtl.submit_dt BETWEEN trunc(sysdate)-(6/24) and trunc(sysdate)+(7.59/24) . Please suggest . .59 hours is .59 * 60 * 60 = 2124 seconds (or .59 * 60 = 35.4 minutes), so the last time included in the range above is 07:35:24, not 07:59:59.
    If you really, really want to use BETWEEN (which includes both end points), then you could do it with date arithmentic:
    WHERE   ord_dtl.submit_dt  BETWEEN  TRUNC (SYSDATE) - (6 / 24)
                      AND         TRUNC (SYSDATE) + (8 / 24)
                                               - (1 / (24 * 60 * 60))but it would be simpler and less error prone to use INTERVALs, as Karthick suggested earlier:
    WHERE   ord_dtl.submit_dt  BETWEEN  TRUNC (SYSDATE) - INTERVAL '6' HOUR
                      AND         TRUNC (SYSDATE) + INTERVAL '8' HOUR
                                               - INTERVAL '1' SECONDEdited by: Frank Kulash on Apr 17, 2013 9:36 AM
    Edited by: Frank Kulash on Apr 17, 2013 11:56 AM
    Changed "- (8 /24)" to "+ (8 /24)" in first code fragment (after Blushadown, below)

  • Query help, subtract two query parts

    Hi,
    I am beginner of PL/SQL and have a problem I couldn’t solve:
    Table (op_list):
    Item     -     Amount -     Status
    Item1     -     10     -     in
    Item2     -     12     -     in
    Item3     -     7     -     in
    Item1     -     2     -     out
    Item2     -     3     -     out
    Item1     -     1     -     dmg
    Item3     -     3     -     out
    Item1     -     2     -     out
    Item2     -     5     -     out
    Item2     -     2     -     in
    Item3     -     1     -     exp
    Would like to get result of query (subtract amount of 'out/dmg/exp' from 'in' ):
    Item - Amount left
    Item1     -     5
    Item2     -     6
    Item3 -     3
    I wrote code that returns sum of all incoming items and sum all out/dmg/exp items, but couldn’t solve how to subtract one part of querry from another. Or maybe there is a better way. Also worried what happens if there is no 'out/dmg/exp' only 'in'
    select item.name, sum(op_list.item_amount)
    from op_list
    inner join item
    on op_list.item = item.item_id
    where op_list.status = 'in'
    group by item.name
    union
    select item.name, sum(op_list.item_amount)
    from op_list
    inner join item
    on op_list.item = item.item_id
    where op_list.status = 'out'
    or op_list.status = 'dmg'
    or op_list.status = 'exp'
    group by item.name
    Return:
    Item1     -     10      [10 in]
    Item1     -     5     [2+1+2]
    Item2     -     14     [12+2]
    Item3     -     7
    Item3     -     4     [3+1]
    Thanks in advance

    Hi,
    We can also use simple inline views to get what we need.
    select a.item,a.amount-b.amount Balance from
    (select item,sum(amount) Amount from op_list
    where status = 'in'
    group by item) a,
    (select item,sum(amount) Amount from op_list
    where status in ('out','dmg','exp')
    group by item) b
    where
    a.item=b.item
    order by item;
    ITEM       BALANCE
    Item1                      5
    Item2                      6
    Item3                      3Regards,
    Prazy

Maybe you are looking for

  • X-Raid question about adding more drives

    Hi Guys. I am running an X Server (10.3.8 dual 2GHZ PPC G5)with an X-Raid attached. Right now it is only half full with a RAID5 volume that is my main file server. My question is can i add three 500GB drives into the empty slots of my X-Raid and cong

  • How to create an iterator for a table?

    Hey I know this is a question for begginners- but maybe you could help me Im rtying to go over some table rows with an iterator I know the function "binding.findIteratorBinding(tablenameIterator) but it seems that I should do something more since I g

  • Appcrash on distribution

    I'm using Acrobat x pro in Windows 7 and every time I try to distribute a form, acrobat crashes. Under enhanced security I do not have enable enhanced security checked. (but it behaved this way too when that option was checked) Problem signature: Pro

  • Item Values Not Set - Dynamic SQL Fails to Parse.

    ** Think I've fixed this ** (By simply defining some page computations I was able to set the item values to some default. Please don't feel the need to reply :-)) I have a page consisting of 5 report parameters and a report, all in one region, 4 para

  • Video podcast doesn't download to ipod

    I recently downloaded a video podcast off of itunes. When i went to update my ipod, it said that it couldn't download that podcast...   Windows XP