Issue with result set of query

I have the following tables:
--soccer.soccer_optical_player_gm_stats
--This is only sample data
GAME_CODE    PLAYER_ID    NUMBER_OF_SPRINTS
88884               84646                    55              
88884               64646                    15  
88884               55551                    35
88884               88446                    10
etc...--soccer.soccer_optical_team_gm_stats
--This is only sample data
GAME_CODE    TEAM_ID
88884               13
88884               13
88884               15
88884               13
etc...--customer_data.cd_soccer_schedule
--sample data
GAME_DATE                     5/2/2009 7:30:00 PM
GAME_CODE                     88884              
GAME_CODE_1032                     2009050207
HOME_TEAM_ID_1032              13
HOME_TEAM_ID                     5360
HOME_TEAM_NAME                     Los Angeles
HOME_TEAM_NICKNAME             Galaxy
HOME_TEAM_ABBREV                LA
AWAY_TEAM_ID_1032              15
AWAY_TEAM_ID                     5362
AWAY_TEAM_NAME                     New York
AWAY_TEAM_NICKNAME          Red Bulls
AWAY_TEAM_ABBREV               RBSo using the tables above i'm trying to sum the number of sprints for each team and output it...
With the following code:
select          distinct
                 sch.game_date,
                 tm.team_id,
                 sch.game_code,
                 sch.game_code_1032,
                 sch.home_team_id_1032,
                 sch.home_team_id,
                 sch.home_team_name,
                 sch.home_team_nickname,
                 sch.home_team_abbrev,
                 sch.away_team_id_1032,
                 sch.away_team_id,
                 sch.away_team_name,
                 sch.away_team_nickname,
                 sch.away_team_abbrev,
                 home_tm_sprints,
                 away_tm_sprints
       -- bulk collect into distance_run_leaders
        from 
                 customer_data.cd_soccer_schedule sch,
                 soccer.soccer_optical_team_gm_stats tm,
                       select distinct
                              sum(plyr.number_of_sprints) as home_tm_sprints,
                              sch.game_code,
                              sch.home_team_name,
                              sch.away_Team_name,
                              sch.game_code,
                              rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_home
                       from
                              soccer.soccer_optical_player_gm_stats plyr,
                              soccer.soccer_optical_team_gm_stats tm,
                              customer_data.cd_soccer_schedule sch
                       where  sch.season_id = 200921
                       and    tm.team_id = sch.home_team_id
                       and    sch.game_code = plyr.game_code
                       group by
                              sch.game_code,
                              sch.home_team_name,
                              sch.away_Team_name,
                              sch.game_code
                       order by rankings_order_home asc
                  ) home_team,
                    select distinct
                           sum(plyr.number_of_sprints) as away_tm_sprints,
                           sch.game_code,
                           sch.home_team_name,
                           sch.away_Team_name,
                           sch.game_code,
                           rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_away
                    from
                           soccer.soccer_optical_player_gm_stats plyr,
                           soccer.soccer_optical_team_gm_stats tm,
                           customer_data.cd_soccer_schedule sch
                    where  sch.season_id = 200921
                    and    tm.team_id = sch.away_team_id
                    and    sch.game_code = plyr.game_code
                    group by
                           sch.game_code,
                           sch.home_team_name,
                           sch.away_Team_name,
                           sch.game_code
                   order by rankings_order_away asc
                ) away_team
        where    sch.game_code = tm.game_code
        and      sch.season_id = 200921Issues:
1. The output above returns multiple entries(like 30 or so) for each game_code (i only want two entries returned for each game_code).
--(Only difference between the two result sets is the team_id, which ultimatly lets me know if it a result for the home or away team)
Something like:
GAME_DATE                     5/2/2009 7:30:00 PM        5/2/2009 7:30:00 PM
TEAM_ID                                13                                  15 
GAME_CODE                     88884                             88884                  
GAME_CODE_1032                     2009050207                    2009050207
HOME_TEAM_ID_1032               13                                  13  
HOME_TEAM_ID                     5360                               5360
HOME_TEAM_NAME                     Los Angeles                      Los Angeles
HOME_TEAM_NICKNAME           Galaxy                              Galaxy
HOME_TEAM_ABBREV               LA                                   LA
AWAY_TEAM_ID_1032             15                                   15
AWAY_TEAM_ID                     5362                               5362
AWAY_TEAM_NAME                     New York                        New York
AWAY_TEAM_NICKNAME               Red Bulls                         Red Bulls
AWAY_TEAM_ABBREV                  RB                                  RB
HOME_TM_SPRINTS                    152                                152
AWAY_TM_SPRINTS                   452                                 4522. In addition to that, I'm also having an issue trying to figure out how to do a general ranking...in the from clause i'd so a seperate ranking for just the home teams and just the away the teams. I can't seem to figure out how to merge the rankings into one, and just have one general ranking.
Edited by: user652714 on May 7, 2009 4:18 PM
Edited by: user652714 on May 8, 2009 7:14 AM

ok maybe I just need to give you a better understanding of what i'm trying to ultimatly do, and maybe that will help clarify things.
In the original code I posted the following subquery in the from clause...
select distinct
                              sum(plyr.number_of_sprints) as home_tm_sprints,
                              sch.game_code,
                              sch.home_team_name as home_team_name,
                              sch.game_code,
                              rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_home
                       from
                              soccer.soccer_optical_player_gm_stats plyr,
                              soccer.soccer_optical_team_gm_stats tm,
                              customer_data.cd_soccer_schedule sch
                       where  sch.season_id = 200921
                       and    tm.team_id = sch.home_team_id
                       and    sch.game_code = plyr.game_code
                       group by
                              sch.game_code,
                              sch.home_team_name,
                              sch.away_Team_name,
                              sch.game_code
                       order by rankings_order_home asc the result set was this...
    HOME_TM_SPRINTS     GAME_CODE           HOME_TEAM_NAME                  GAME_CODE                  RANKINGS_ORDER_HOME
     576                 870988                New York                   870988                     1
     480                 870991                Chicago                 870991                     2
     435                 870945                 Chicago                 870945                     3
     416                 870983                 San Jose                 870983                     4
     402                 870961                 D.C.                 870961                     5
     322                 870972                 Columbus                 870972                     6
     236                 870957                 Columbus                 870957                     7
     215                 870986                 Kansas City                 870986                     8
     143                 870984                 Los Angeles                 870984                     9Here is the other subquery that i had originally posted:
  select distinct
                           sum(plyr.number_of_sprints) as away_tm_sprints,
                           sch.game_code,
                           sch.away_team_name away_team ,
                           sch.game_code,
                           rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_away
                    from
                           soccer.soccer_optical_player_gm_stats plyr,
                           soccer.soccer_optical_team_gm_stats tm,
                           customer_data.cd_soccer_schedule sch
                    where  sch.season_id = 200921
                    and    tm.team_id = sch.away_team_id
                    and    sch.game_code = plyr.game_code
                    group by
                           sch.game_code,
                           sch.home_team_name,
                           sch.away_Team_name,
                           sch.game_code
                   order by rankings_order_away ascResult rest:
   AWAY_TM_SPRINTS                    GAME_CODE                AWAY_TEAM        GAME_CODE           RANKINGS_ORDER_AWAY
     483                     870972                     Chicago                     870972                                1
     435                     870945                     New York                870945                           2
     430                     870986                     D.C.                     870986                                3
     429                     870984                     New York                870984                           4
     402                     870961                     New England            870961                             5
     384                     870988                     San Jose                870988                           6
     320                     870991                     New England            870991                             7
     208                     870983                     Chivas USA                870983                           8
     118                     870957                     Colorado                870957                           9Final output that I want/trying to get
TM_SPRINTS  GAME_CODE    TEAM           GAME_CODE       RANKINGS_ORDER
576          870988          New York          870988          1
483          870972          Chicago          870972          2
480          870991          Chicago          870991          3
435          870945          Chicago          870945          4
435          870945          New York     870945          4
430          870986          D.C.          870986          6
429          870984          New York     870984          7
416          870983          San Jose     870983          8
402          870961          D.C.          870961          9
402          870961          New England     870961          9
384          870988          San Jose     870988          11
322          870972          Columbus     870972          12
320          870991          New England     870991          13
236          870957          Columbus     870957          14
215          870986          Kansas City     870986          15
208          870983          Chivas USA     870983          16
143          870984          Los Angeles     870984          17
118          870957          Colorado     870957          18The above is what i'm going for...but if it's to difficult to merge the columns into one (instead of having a seprate column for home_team_* and away_team_* that's fine to.
Edited by: user652714 on May 11, 2009 9:04 AM

Similar Messages

  • Issue with Results from Another Query (Error on Null value)

    Hi All,
    We have a WebI report using "Result from Another Query" option of BO XI R3.1. The report was running fine till recently the dimension object using result from another query had a null value. Report suddenly throwed error as the query filters are invalid.
    Is there a way to make this filter optional if no data/null value is there ? Because we need those null values in report as well.
    Thank you for your time.
    Thanks & Regards
    LN

    Hi Vivek,
    It was not directly solved but I applied alternate logic to over come the issue.
    Here's what I did to overcome:
    I used a sub query in place of the whole result from another query.
    For Ex:
    Dim1 inlist result from another query1
    I made it as
    Dim1 inlist (Dim0)
    where Conditions.
    Here Dim0 is the object which we use for Result from another query and Conditions will be the necessary filter conditions to arrive proper Dim0.  Make sure proper context is formed for the sub query.
    Even though it resolved my problem, It introduces an new issue. It causes increase in query run time when huge set of data is returned from sub query.
    Please let me know if i haven't explained clearly.
    Hi Aris_BO,
    Sorry for not responding earlier.  The logic would probably make more queries null & not null. Thats why I was not advised to use it.
    Thanks
    LN

  • I am exporting a 2 min video, using a custom compressor setting. i have not had issues with this setting in the past, but recently its taking upwards of 4 hours to process. Any idea what is going on?

    I am exporting a 2 min video, using a custom compressor setting. I have not had issues with this setting in the past, but recently its taking upwards of 4 hours to process. Any idea what is going on?

    Name: Vimeo HD Encode
    Description: No description
    File Extension: mov
    Estimated size: 2.3 GB/hour of source
    Audio Encoder
              AAC, Stereo (L R), 44.100 kHz
    Video Encoder
              Width: 1920
              Height: 1080
              Pixel aspect ratio: Square
              Crop: None
              Padding: None
              Frame rate: (100% of source)
              Frame Controls On:
                        Retiming: (Best) High quality Motion Compensated
                        Resize Filter: Statistical Prediction
                        Deinterlace Filter: Best (Motion Compensated)
                        Adaptive Details: On
                        Antialias: 0
                        Detail Level: 0
                        Field Output: Progressive
              Codec Type: H.264
              Multi-pass: On, frame reorder: On
              Pixel depth: 24
              Spatial quality: 75
              Min. Spatial quality: 25
              Key frame interval: 30
              Temporal quality: 50
              Min. temporal quality: 25
              Average data rate: 5.12 (Mbps)
    Compatible with Mac
    My video in the timeline is 1920 x 1080 / 23.98 fps
    I've installed Toast and photoshop elements recently, i also updated my apps the other day.
    I have had this problem before the updates of the apps though

  • Multiple OS issues with Email set up; "People" ; Synching phone not working as advertised

    Nokia Lumia 822
    Purchased yesterday (2/10/13)
    So far I have spent 14 hours attempting to resolve what feel like endless errors and bugs. If I can;t get these resolved in the next 48 hours the phone goes back. I am so disappointed  I waited especially for this phone - heard great stuff. My experience is it sucks. Worst phone ever.
    1) POP3 email accounts are non functional. I have attempted to set up and delete and re-set up now multiple times. Each time presents a fresh new nightmare.
    Issue 1 - Email account  receives email but will not send. Error message goes something like  <" Problem sending message. Message failed to send. Problem with Files or Data on your device." >
    Issue 2 - Tapping email + accounts sends me back to start screen cannot even set up account
    Issue 3 - I  get to add email account I enter my information but no account is created
    Issue 4 - I set up an account and I get an error message stating my information cannot be found.
    Issue 5 - trying to open email from start screen just resets to start screen  over and over and over NEVER opens the account.
    These are deal breaker issues. I have multiple email accounts on different platforms. If I cannot access my various emails AND send from those accounts this is NOT the phone for me.
    2) PEOPLE does not function. ALSO multiple various issues and never the same one twice.
    Issue 1 - I tap on a contact and get sent to the start screen over and over and over  and over again.
    Issue 2 I tap on a contact and the phone freezes and wont respond unless I pull the battery
    Issue 3 I open a contact and make an edit, save the contact but the change is never reflected in the list
    Issue 4 I try and search for a contact and the search freezes - only option is to return to start screen
    3) Scrolling thru any APP randomly takes me back to start screen.
    I dread attempting to synch Outlook calendar and contacts on my PC to hotmail - especially if I can't even set up email. And it seems like even holding it will jettison me out of anything I'm doing and back to start screen.
    If I can't get these issues resolved.  look like I'll be going  back to my 3 year old Blackberry Bold which performed flawlessly. It may not be the most impressive phone out there but it did what I needed it to do with out any issues.

    Interesting Twitter conversation VZWSupport on Twitter.  It was suggested to try a HARD reset - and if that doesn't work take the phone back.
    Since I don;t have anything set up yet  that's my solution.
    I see a BlackBerry Z10 in my future

  • RDBMS Event Generator Issue - JDBC Result Set Already Closed

    All -
    I am having a problem with an RDBMS event generator that has been exposed by our Load Testing. It seems that after the database is under load I get the following exception trace:
    <Aug 7, 2007 4:33:06 PM EDT> <Info> <EJB> <BEA-010213> <Message-Driven EJB: PollerMDB_SessionRqt_1186515408009's transaction was rolledback. The transact ion details are: Xid=BEA1-7F8C65474500D80A5B94(218826722),Status=Rolled back. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],numRepli esOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=60,XAServerResourceInfo[JMS_Affinity_cgJMSStore_auto_1]=(ServerResourceInfo[JMS_Affi    nity_cgJMSStore_auto_1]=(state=rolledback,assigned=wli_int_1),xar=JMS_Affinity_cgJMSStore_auto_1,re-Registered = false),XAServerResourceInfo[ACS.Telcordi    a.XA.Pool]=(ServerResourceInfo[ACS.Telcordia.XA.Pool]=(state=rolledback,assigned=wli_int_1),xar=ACS.Telcordia.XA.Pool,re-Registered = false),XAServerReso urceInfo[JMS_Affinity_cgJMSStore_auto_2]=(ServerResourceInfo[JMS_Affinity_cgJMSStore_auto_2]=(state=rolledback,assigned=wli_int_2),xar=null,re-Registered = false),SCInfo[wli_int_domain+wli_int_2]=(state=rolledback),SCInfo[wli_int_domain+wli_int_1]=(state=rolledback),properties=({START_AND_END_THREAD_EQUAL    =false}),local properties=({weblogic.jdbc.jta.ACS.Telcordia.XA.Pool=weblogic.jdbc.wrapper.TxInfo@d0b2687}),OwnerTransactionManager=ServerTM[ServerCoordin    atorDescriptor=(CoordinatorURL=wli_int_1+128.241.233.85:8101+wli_int_domain+t3+, XAResources={weblogic.jdbc.wrapper.JTSXAResourceImpl, Affinity_cgPool, J    MS_Affinity_cgJMSStore_auto_1, ACSDispatcherCP_XA, ACS.Dispatcher.RDBMS.Pool, ACS.Telcordia.XA.Pool},NonXAResources={})],CoordinatorURL=wli_int_1+128.241 .233.85:8101+wli_int_domain+t3+).>
    <Aug 7, 2007 4:33:06 PM EDT> <Warning> <EJB> <BEA-010065> <MessageDrivenBean threw an Exception in onMessage(). The exception was:
    javax.ejb.EJBException: Error occurred while processing message received by this MDB. This MDB instance will be discarded after cleanup; nested exceptio n is: java.lang.Exception: Error occurred while preparing messages for Publication or while Publishing messages.
    javax.ejb.EJBException: Error occurred while processing message received by this MDB. This MDB instance will be discarded after cleanup; nested exception is: java.lang.Exception: Error occurred while preparing messages for Publication or while Publishing messages
    java.lang.Exception: Error occurred while preparing messages for Publication or while Publishing messages
    at com.bea.wli.mbconnector.rdbms.intrusive.RDBMSIntrusiveQryMDB.fetchUsingResultSet(RDBMSIntrusiveQryMDB.java:561)
    at com.bea.wli.mbconnector.rdbms.intrusive.RDBMSIntrusiveQryMDB.onMessage(RDBMSIntrusiveQryMDB.java:310)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:400)
    at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:333)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:298)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2698)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2523)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Caused by: java.sql.SQLException: Result set already closed
    at weblogic.jdbc.wrapper.ResultSet.checkResultSet(ResultSet.java:105)
    at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:67)
    at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.next()Z(Unknown Source)
    at com.bea.wli.mbconnector.rdbms.intrusive.RDBMSIntrusiveQryMDB.handleResultSet(RDBMSIntrusiveQryMDB.java:611)
    at com.bea.wli.mbconnector.rdbms.intrusive.RDBMSIntrusiveQryMDB.fetchUsingResultSet(RDBMSIntrusiveQryMDB.java:514)
    ... 8 more
    javax.ejb.EJBException: Error occurred while processing message received by this MDB. This MDB instance will be discarded after cleanup; nested exception is: java.lang.Exception: Error occurred while preparing messages for Publication or while Publishing messages
    at com.bea.wli.mbconnector.rdbms.intrusive.RDBMSIntrusiveQryMDB.onMessage(RDBMSIntrusiveQryMDB.java:346)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:400)
    at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:333)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:298)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2698)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2523)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >
    I have tried several things and had my team do research but we have not been able to find an answer to the problem.
    If anyone can offer any insight as to why we might be getting this error it would be greatly appreciated. Thanks!

    i also have same error during load testing, mainly this error
    "Unexpected exception while enlisting XAConnection java.sql.SQLException"
    i tried rerunning after increasing connection pool sizes, transaction timeout, but no luck, marginal improvement in performance though
    also tried changing the default tracking levl to none, but no luck.
    i am with 8.1SP5, how about you ?
    do share if you are able to bypass these errors
    cheers

  • Issues with result data display on ADF page from a Webservice data control

    Hi,
    I created a Webservice Data control and created a JSF to display the webservice response to the screen.
    I dragged and dropped the input paramater to the JSF form.Also i did the same for the output result also.i drag & drop the result tag to the JSF(selected the read only form).
    This webservice is a complex input and output params.
    After supplying the input param to the jsf and clicked on submit, the request is going and hitting the webservice and getting proper result set also.
    But the issue is , the result is not displayed on the JSF screen.
    Is there any configuration needed to diaply the content on ths screen?
    Version - JDev 11.1.1.4.0
    Regards,
    JJ

    Dear Vinod,
    Thanks for the reply.
    How to refresh the data container ..just to press the refresh button(F5) or is there any configuration needed to auto refresh the data container?
    The following is my table definition
    <af:table rows="#{bindings.LookListRow.rangeSize}"
    fetchSize="#{bindings.LookListRow.rangeSize}"
    emptyText="#{bindings.LookListRow.viewable ? 'No data to display.' : 'Access Denied.'}"
    var="row"
    value="#{bindings.LookListRow.collectionModel}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.LookListRow.collectionModel.selectedRow}"
    selectionListener="#{bindings.LookListRow.collectionModel.makeCurrent}"
    rowSelection="single"
    binding="#{backingBeanScope.backing_lkUp.t1}"
    id="t1" columnSelection="single">
    <af:column headerText="#{bindings.LookListRow.hints.rowAction.label}"
    sortProperty="rowAction" sortable="false"
    id="c5">
    <af:outputText value="#{row.rowAction}" id="ot4"/>
    </af:column>
    <af:column headerText="#{bindings.LookListRow.hints.FieldValue.label}"
    sortProperty="FieldValue" sortable="false"
    id="c8">
    <af:outputText value="#{row.FieldValue}" id="ot8"/>
    </af:column>
    <af:column headerText="#{bindings.LookListRow.hints.FieldName.label}"
    sortProperty="FieldName" sortable="false"
    id="c2">
    <af:outputText value="#{row.FieldName}" id="ot7"/>
    </af:column>
    <af:column headerText="#{bindings.LookListRow.hints.Description.label}"
    sortProperty="Description" sortable="false"
    id="c1">
    <af:outputText value="#{row.Description}" id="ot2"/>
    </af:column>
    <af:column headerText="#{bindings.LookListRow.hints.StatusasofEffectiveDate.label}"
    sortProperty="StatusasofEffectiveDate"
    sortable="false" id="c4">
    <af:outputText value="#{row.StatusasofEffectiveDate}"
    id="ot5"/>
    </af:column>
    <af:column headerText="#{bindings.LookListRow.hints.LanguageCode.label}"
    sortProperty="LanguageCode" sortable="false"
    id="c6">
    <af:outputText value="#{row.LanguageCode}" id="ot6"/>
    </af:column>
    <af:column headerText="#{bindings.LookListRow.hints.Version.label}"
    sortProperty="Version" sortable="false" id="c3">
    <af:outputText value="#{row.Version}" id="ot3">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.LookListRow.hints.Version.format}"/>
    </af:outputText>
    </af:column>
    Regards,
    -JJ
    Edited by: user13117752 on Jun 14, 2011 11:20 PM

  • Issue with Policy set in AIA installation

    Hi All,
    when I access EM console, and navigate to WebLogic Domain and expand it
    Right click the domain name and select Web Services and then Policies
    by default i could see all the policies got selected .
    By at run time got the error response as
    "javax.xml.ws.soap.SOAPFaultException: SOAP must understand error:{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security, {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security"
    If I manually go and disable the below mentioned policies , then am able to invoke the service
    Service Endpoints
    oracle/aia_wss_saml_or_username_or_http_token_service_policy_OPT_ON
    oracle/aia_wss_saml_or_username_token_service_policy_OPT_ON
    Service Clients
    oracle/aia_wss10_saml_token_client_policy_OPT_ON.
    Can anyone Please clarify the issue .

    Issue with Output Device and assiged Device type. Output device need to pass CONVERT_OTF ot Smartform FM to correctly get characters set in German as well as East European Characters

  • Working with result set i need a solution..... plz treat it as urgent

    i have a query which returns 12 records so the result set contains 12...
    now i want to display in the set of 5 rows... so
    out put must me
    Name Rate Name Rate Name Rate
    1 6 11
    2 7 12
    3 8
    4 9
    5 10
    how can i achieve this output...
    I guess this will clear the question......

    You create a for loop that indexes from 1 to 5. You get a row(item) from the result each time through the loop. You all check next() and break out of the loop when it returns false.

  • Table with some columns with result of a query

    Hi:
    I would like to show the result of a query in some colums. For example, if I have a table of cities and I get 6 cities in my query, show them in two rows of 3 columns.
    I had thought use a forEach component of ADF, but I have no get nothing.... ;(
    Any ideas???
    Thanks
    Message was edited by:
    ALF

    Hi again:
    My idea is, for example show 3 columns of a query. Let´s suposse that we have 9 rows in the result of a query. I know how to show them in the same colum but... How to separate them in diferent colums?
    Result of the query = 1,2,3,4,5,6,7,8,9
    I would like to show the results so that:
    Col1 Col2 Col3
    1--------2--------3
    4--------5--------6
    7--------8--------9
    Thanks
    Message was edited by:
    ALF

  • Issue with Read only VO Query bind parameters

    Hi Experts,
    Working in Jdev 11.1.1.3.0
    I am face one issue, probably its very common to all of us, bcoz i to do the same thing in N number of times.
    Issue:
    select count(*) as cnt from emp
    where
    ((:BindEmpId is NOT NULL AND EMP_ID = :BindEmpId) AND
    (DEPT_ID IS NULL OR DEPT_ID =: BindDeptId));
    when i run this query its giving correct result(count is 0) but usually i written like
    select count(*) as cnt from emp
    where
    ((:BindEmpId is NOT NULL AND EMP_ID = :BindEmpId) AND
    (BindDeptId IS NULL OR DEPT_ID =: BindDeptId));
    this time its giving count is 1, which is wrong.
    Data in data base:
    ID     DeptID     value EmpID
    226     1519     jh 601     
    So which one is correct?

    Well, the two select statements are for different use cases and we can't decide which is the correct one as we don't know the use case.
    Your data looks like
    ID   DeptID value EmpID
    226  1519   jh    601 There are some decisions we can't make with only one row in the table. We don't know if DepIt can be null in the table and/or EmpId can be null. This information is vital for your select statements.
    Next we don't know how you want to handle the query if one or both bind parameters are null.
    Should the query return 0 in this case or should the query just omit the part of the query if the bind variable is null (and then return the result found with the remaining query)?
    We can't possible answer this.
    You need to provide more information...
    Timo

  • Issue with Broadcasting and Publish query to Portal from query Designer

    Dear all,
    I have created a standard template ZWT_STANDARD_TEMPLATE in WAD and I have added this for Adhoc Analysis in 'Set Standard Web templated' RSCUSTV27.
    For Broadcasting I have added 0BROADCASTING_TEMPLATE70.
    I have problems with my broadcasting as well as publishing the Query in Portal.
    When I use a Broadcast to Email - it opens a new window with my standard template(ZWT_STANDARD_TEMPLATE ) I have added. No data though.
    Same thing happens for publishing too...When I publish the query to portal from Query Designer or WAD it takes me to the same window with my standard web template. No data though.
    I think both are related to the same issue. Its with broadcasting.
    What is the default template for Broadcasting in NW2004s? Below is the url I have included when I do it from Query designer. Its actually starting the Command - START_BROADCASTER70 but I dont know if it has to do a SOURCE_QUERY=ZCOPA_C03_FAST_PAYABLES. Could anyone compare it with your urls
    http://pgdep00:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex3x?system=SAP_BW&CMD=START_BROADCASTER70&SOURCE_QUERY=ZCOPA_C03_FAST_PAYABLES&START_WIZARD=X&DISTRIBUTION_TYPE=PCD_EXPORT
    This is the url for publishing from WAD
    http://fndef00:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex3x?system=SAP_BW&CMD=START_BROADCASTER70&SOURCE_TEMPLATE=ZWT_FAST_PAYABLES&START_WIZARD=X&DISTRIBUTION_TYPE=PCD_EXPORT
    Any help would be highly appreciated.
    Thanks,
    KK

    Hi KK,
    Did you solve your problem, i am also having the same issue. Please let me know if you have solved this issue.
    Thanks,
    Kumar

  • Creating JTree with results from SQL Query

    I have the following source in SQLJ:
    String temp=null;
    iter1 it1;
    iter2 it2;
    #sql it1={select id,fdn,level from groups connect by prior fdn=parent_fdn start with fdn='/' };
    while(it1.next())
    System.out.println(it1.id()); // Display Parent
    temp=it1.fdn();
    #sql it2= {select clli from nes where parent_fdn=:temp order by clli };
    while(it2.next())
    System.out.println(it2.clli());//Display Child of above Parent if any
    My problem is to construct a Tree GUI using JTree from the above
    code with the same hierarchy of parent-child relationship.
    I have tried every possible solution using Vectors,Hashtables,String Arrays etc but have not come up with a successful solution so far
    IF ANYONE HAS A SOLUTION PLEASE HELP ME WITH AN EXAMPLE.
    Thank You
    Sharath

    sharathkv,
    Your issue seems to be in figuring out an algorithm to convert row-based SQL resultsets to a hierarchical data structure suitable for display in a tree.
    Run the jython (www.jython.org) app below: it simulates doing just that. jython is indentation-sensitive, so you'll need to exercise care when copying. If copy-paste to a text editor doesn't work, copy-paste to a HTML-aware editor (even Outlook Express, if on Windows), then copy from there and paste in a text editor.
    --A
    This is a jython (www.jython.org) app that illustrates
    converting row-based data (eg. a SQL resultset) to a custom
    hierarchical data structure, and displaying it in a JTree.
    from javax.swing import *
    from javax.swing.tree import *
    import java
    def getSQLRows():
        Simulates a SQL resultset.
        Columns fdn and parent-fdn indicate parent/child relationships.
        rows = [
            # id, fdn, parent-fdn, level
              [1, '/', None, 1]
            , [2, '/fruits', '/', 2]
            , [3, '/colors', '/', 2]
            , [4, '/sports', '/', 2]
            , [5, '/fruits/apples', '/fruits', 3]
            , [6, '/fruits/oranges', '/fruits', 3]
            , [7, '/colors/red', '/colors', 3]
            , [8, '/colors/blue', '/colors', 3]
            , [9, '/sports/petanc', '/sports', 3]
            , [10, '/sports/rugby', '/sports', 3]
        return rows
    def convertRowsToHierarchy(rows):
        Converts row-based results to hierarchical structure.
        Uses known parent/child relations present in rows.
        root = None
        for row in rows:
            fdn, parentfdn = row[1], row[2]
            node = SQLTreeNode(fdn, parentfdn)
            if root:
                root.addEx(node)
            else:
                root = node
        return root
    class SQLTreeNode(java.lang.Object):
        '''Custom tree node; displayed in JTree'''
        def __init__(self, fdn, parentfdn):
            self.fdn = fdn
            self.parentfdn = parentfdn
            self.nodes = []
        def add(self, node):
            '''Adds node as immediate child'''
            self.nodes.append(node)
        def addEx(self, node):
            '''Adds-with-search.  NOTE: naive implementation'''
            if self.fdn == node.parentfdn:
                self.add(node)
            else:
                for child in self.nodes:
                    child.addEx(node)
        def toString(self):
            return self.fdn
        def dump(self):
            '''Debug routine to dump hierarchy'''
            print 'fdn=%s, parentfdn=%s' % (self.fdn, self.parentfdn)
            for node in self.nodes:
                node.dump()
    class SQLTreeModelAdapter(TreeModel):
        '''Tree model adapter: adapts custom data structure to TreeModel'''
        def __init__(self, root):
            self.__root = root
        def getChild(self, parent, index):
            return parent.nodes[index]
        def getChildCount(self, parent) :
            return len(parent.nodes)
        def getIndexOfChild(self, parent, child):
            return parent.nodes.index(child)
        def getRoot(self) :
            return self.__root
        def isLeaf(self, node):
            return len(node.nodes) == 0
        def addTreeModelListener(self, l):
            pass
        def removeTreeModelListener(self, l):
            pass
        def valueForPathChanged(self, path, newValue):
            pass
    class SQLTreeDemo(JFrame):
        Tree demo UI
        Displays a tree displaying [hierarchical] results
        of a BOM-type SQL query
        def __init__(self):
            # Get matrix simulating SQL resultset
            rows = getSQLRows()
            # Convert to custom hierarchical data structure
            root = convertRowsToHierarchy(rows)
            model = SQLTreeModelAdapter(root)
            tree = JTree(model)
            sp = JScrollPane(tree)
            self.contentPane.add(sp)
            self.size = 200, 300
    if __name__ == '__main__':
        s = SQLTreeDemo()
        s.visible = 1

  • [ Solved ] Issue with Partitioning (setting the boot flag)

    I've tried to install Arch a few times. I always seem to run into this issue which affects me later on.
    fdisk (fdisk /dev/sda) doesn't provide me with the ability to set the boot flag on any of the partitions. Therefore I have issues when I get to the bootloader bit. (intend to use grub)
    When I use cfdisk (cfdisk /dev/sda), while its help does say pressing 'b' will toggle the flag, in all images I've seen of what cfdisk should look like there has been a column marked 'Flags'  - that isn't present for me. So, I have no way of knowing if it actually gets set, though I doubt it does.
    Partition Table is GPT.
    Though,
    fdisk -l gives
    Disk /dev/sda ~465.8 GiB
    Disk /dev/loop0 ~278.2 MiB //Not entirely sure what loop0 and loop1 are...
    Disk /dev/loop1 ~32 GiB
    Disk /dev/mapper... //the live image.
    I'm probably just making a simple mistake - though I have no idea what. Help?
    (Ruling out other errors, using latest dual architecture image, (using 86_64 UEFI) on this system; Asus X99 Pro, Core  i7 5820k, 16GB RAM, ~500GB SSD, generic video card).
    Last edited by AndyWM (2015-06-10 17:21:20)

    It's okay - I just decided to follow the beginner's guide again. It recommend the use of parted for GPT  when using UEFI. So I just did that,  I also went for gummiboot as the bootloader. Never used it before, but it seems to do the job...
    Did forget to create a user though, so I'll have to log in as root and do that.
    Anyway, I'll mark this as solved.

  • Custom Master Page issue with Document Set Libraries

    Details: Publishing site using SharePoint 2013.  The SharePoint is on my company's servers.
    Have a custom Master page that has a navigation banner (built with HTML/CSS/javascript).  The site has it applied successfully to the "Site Master Page" but when I also apply it to the "System Master Page", the libraries that have
    Document Set type content do not show the files within.   We'd like to be successful in applying to the "System Master Page" as that allows the banner to show when an actual library is accessed.    Any suggestions, please?

    Thanks. I've been experimenting with this for a few days now, and there's lots I don't understand about why and such, but your process above works. That's a big load off me right now and I really appreciate it. I'm going to be able to survive the initial
    roll-out and implementation of the new site. Going forward, I've got lots to learn and find out, I've already heard that there's a desire to really redesign the master page for the site and subsites, way beyond the little CSS customization I did. Fun.
    If you've got a little time though, perhaps you can provide some explanation. If not, no problem.
    On step 6, when I do as you detail, click the System Master Page and reset all the subsites, it seems to work fine with my custom master page. If I do that with the Site Master Page settings, my custom page causes the redirect issue in the subsites again.
    This is whether I do the Site Master Page by itself, or in conjunction with the System Master Page settings. If I revert back to the Seattle master page in the Site Master Page settings and my custom pate in the System Master Page, the issue goes away again.
    It is completely messing with my head, trying to figure out why that would be, and this is all beside trying to figure out why adding the one little CSS reference to the Seattle master to create my master page breaks things (sometimes!).
    Just fyi, what I've ended up with for now is pulling my custom master page out of the system and using the Alternate CSS URL to add my custom CSS to the Seattle master page on the sites. As I thought about all this, I decided I didn't want to leave the breakable
    custom page out there for some unsuspecting site manager to accidentally pick and get everyone screaming about the broken sites.
    Thanks again,
    Steven

  • BW Report  - Issue with Results.

    I have a characteristic with hierarchy attached. When displaying the report, I am not able to create results (totals) for this characteristic. I have set 'Suppress Results Row' for this field as 'Never', but still my report doesn't display the results at this level.
    Is it a limitation or is there any work around for this?
    Thanks.

    Hi
    You can get result rows at each control break of charaterstics values and if you r showing the attributes with char there should not be problem. it should show attribute and show result row on char value change.
    And if you are using Hier u have to go to char level of hier to see those result rows
    right click on your report and chose "Expand Hierarchy" to lowest level
    Thanks
    YSS

Maybe you are looking for

  • File replication problem - gone worse!

    Hi all! I'm in a real pinch and could use some assistance. Backstory: Small Business Server 2003 running on Hyper-V 2008 (non-R2). Been running fine for years. Two months ago we decided to upgrade to Exchange 2010, so I set up a new Hyper-v Server &

  • Dissapointing Customer Service, Please Pass This On

    Pretty upset right now.  I have switched from Aperture to Lightroom this year.  I have used Version 2 and LR3 Beta for 6 months now.  I have been looking forward to the full release like everyone else. Needless to say I was extactic when Terry White

  • IS  XE  BETTER

    Hi, am wondering if express edition is preferbale to enterprise edition. And how can I increase the size of the space. Message was edited by: user539979

  • I cant put my iphone to the silent level the key of silent level dont work even if i press it up or down

    hello i live in Sweden and i bought my iphone 3gs from iraq. my iphone cant be to the silent level even if i press the key up or down. also the screen dont respond very well it take between 30 sec till 60 to be respond.can you help me? thank you

  • Authorization Wars on iTunes account

    I've Googled and checked archives here on this issue but haven't found an answer. I restored my iTunes library from dvds burned from the previous mac when I began to set up this new computer. But the older purchased iTunes music requires a password f