Need solution to solve this query

i want solution for shape & append query as run in access for oracle
RS.Open "SHAPE {select ID,MAX(Module_Name) AS MainMenu from USER_MODULE GROUP BY ID} APPEND ({select ID,NAME,USER_module.srno,iif(right(param_str,1)='P','ü','') as Allow,iif(left(param_str,1)='A','ü','') as Ins,iif(MID(param_str,2,1)='E','ü','') as Edit,iif(MID(param_str,3,1) = 'D','ü','') as Del,flag,CODE,NAME from USER_MODULE left join user1 on user1.srno=USER_module.srno where user_name='" & Master_Rst!USER_NAME & "' or user_name is null} RELATE ID TO ID) AS AA", G_CompCn, adOpenDynamic, adLockOptimistic

This forum is for JHeadstart related questions/suggestions. This problem seems to be related to other products. Please ask this question in the appropriate discussion forum.
kind regards,
Sandra Muller
JHeadstart Team
Oracle Consulting

Similar Messages

  • Cann't install up to date update Lion 10.7 cancel during install error: damaged by download but it's download without errors 1,34 GB. What can I do has anyone a solution to solve this issue?

    cann't install up to date update Lion 10.7 cancel during install error: damaged by download but it's download without errors 1,34 GB. What can I do has anyone a solution to solve this issue?

    I wish I fully understood your post, but perhaps you should try re-downloading. Are you trying to download the 10.7.3 update? If so, then try downloading OS X Lion Update 10.7.3 (Client Combo).

  • I give up! I need help to solve this problem.

    Just a heads up you will need coffee.
    Please this is driving me mad and I cannot solve it I really, really can't! So here it is in a nutshell because I'm done! With trying to solve this by myself because clearly I'm not getting it.
    So here is my understanding in short say 101 of networking put simply just as a base of understanding..... you get a IP from your ISP with a gateway IP in a subnet range and within that range you ARP to send from your IP to another IP in that range for the MAC (technically this MAC can still be the ISP gateway MAC and route by IP without knowing MAC for that other IP in your subnet but....works either way) and to send from your IP to an IP out side the subnet your in you send to the ISP gateway MAC where it will be routed.
    This is from windows 7 and when you ARP that MAC e6-1f-6d-6c-db-da is my ISP for all of 10. for all of 172.16. to 172.31. for all of 192.168. and 169.254. replys with that MAC every-single-one! From a request by ARP IP sender like 77.96.238.3 (if that was my IP) in 255.255.254.0 for them target IP's! (except the ones in the subnet of the subnet your in) The reply comes from my ISP gateway basically saying for sending to IP's in 10. for all of 172.16. to 172.31. for all of 192.168. and 169.254. is over where my ISP gateway IS! ITS NOT!
    C:\Windows\system32>arp -a
    Interface: 77.96.238.3 --- 0x13
    Internet Address    Physical Address      Type
    10.0.0.1                e6-1f-6d-6c-db-da      dynamic ]< NOT
    10.0.0.2                e6-1f-6d-6c-db-da      dynamic ]<-NOT
    10.0.0.3                e6-1f-6d-6c-db-da      dynamic ]<-NOT
    10.0.0.4                e6-1f-6d-6c-db-da      dynamic ]<-NOT
    77.96.238.1           e6-1f-6d-6c-db-da      dynamic      }-OK
    77.96.238.2           9d-d3-6d-4d-ad-c5      dynamic     }-OK
    77.96.238.4           20-8e-f2-0a-ef-c1      dynamic       }-OK
    77.96.238.5           4c-d3-3d-cd-7f-cd      dynamic      }-OK
    77.96.238.6           80-e5-2a-c4-7e-31      dynamic     }-OK
    77.96.239.0           0c-b0-5d-09-d5-01      dynamic     }-OK
    77.96.239.2           50-1f-33-4b-bd-05      dynamic      }-OK
    77.96.239.3           8c-b0-5d-15-d0-79      dynamic     }-OK
    77.96.239.4           1c-d3-6d-ea-5c-0d      dynamic     }-OK
    77.96.239.5           60-e5-2a-c8-94-59      dynamic     }-OK
    172.16.0.0           e6-1f-6d-6c-db-da      dynamic ]< NOT
    172.16.0.1           e6-1f-6d-6c-db-da      dynamic ]<-NOT
    172.16.0.2           e6-1f-6d-6c-db-da      dynamic ]<-NOT
    172.16.0.3           e6-1f-6d-6c-db-da      dynamic ]<-NOT
    192.168.0.0         e6-1f-6d-6c-db-da      dynamic ]<-NOT
    192.168.0.1         e6-1f-6d-6c-db-da      dynamic ]<-NOT
    192.168.0.2         e6-1f-6d-6c-db-da      dynamic ]<-NOT
    192.168.0.3         e6-1f-6d-6c-db-da      dynamic ]<-NOT
    224.0.0.22           01-00-5e-00-00-16     static
    224.0.0.252         01-00-5e-00-00-fc      static
    224.1.1.1             01-00-5e-01-01-01     static
    255.255.255.255   ff-ff-ff-ff-ff-ff                static
    The XP TCP/IP stack does not do this and you might think that my windows 7 has a problem it does not because the TCP/IP stack in windows 7 is a rebuild of what the TCP/IP stack was like in XP but whats done is done and that how the windows 7 TCP/IP stack is and that should be a eye opener as to why nothing has been done about this but thats just me saying that but its not really a TCP/IP stack problem. So is that my ISP problem? The answer is no because even if my ISP did not reply you still can send requests from a valid IP like 77.96.238.3 to your ISP a ARP with a target IP that does not and should not exist out to your ISP gateway like 192.168.0.1 yet you can.
    The simple fact is this there is no, none and nothing to make a ACL for ARP to drop the target/sender IP's for the 0806 Ethertype.
    And I have tried this Dynamic ARP Inspection with both DHCP Snooping/Relay and ARP Inspection in a two port VLAN on the right port for this Trusted Interface to be on and Enabled VLANs for ARP Inspection is set with ARP Inspection Status & ARP Packet Validation enabled and in DHCP Snooping/Relay with DHCP Snooping Status & Verify MAC Address enabled and VLAN set for DHCP Snooping. Does not stop this.
    Maybe just maybe if the DHCP Snooping looked at the Option 1 & 3 for the Subnet Mask & Router to know the range that the ARP Inspection can drop ARP for target IP's outside that range because like I said to send from your IP to an IP outside the subnet your in you send to the ISP gateway MAC where it will be routed only then would that Dynamic ARP Inspection work as I was hoping for but sadly no.
    So please tell me why I can't simply drop ARP for given target/sender IP's is their another way (and NAT is not a solution) that ideally makes ARP for from 77.96.238.3 as the sender for a request for a target IP of 10. for all of 172.16. to 172.31. for all of 192.168 and 169.254. NOT reach my ISP BUT allows ARP from 77.96.238.3 as the sender for a request for a target IP within the given subnet to my ISP for a reply.
    A million THANK YOU to anyone for helping me with this

    I really do not get why providing a config would help because if you have a config that does what I need should it not be you to provide a config or tell me how? Why not tell me how if you know how? because I need to understand how if you know what I need to do.
    But here is how its setup:
    Administration
    System Mode L3
    VLAN Management
    Default VLAN Settings 20
    GE1-GE7 and GE10 VLAN 20 Trunk Untagged with GE8-GE9 Forbidden
    GE8-GE9 VLAN 10 Trunk Untagged with GE1-GE7 and GE10 Forbidden
    IP Configuration
    IPv4 Interface VLAN 20 Static 192.168.1.254 255.255.255.0 Valid
    DHCP Snooping/Relay
    DHCP Snooping Status: Enable - ticked
    Verify MAC Address: Enable - ticked
    Interface Settings
    VLAN 10 DHCP with Snooping Enable - ticked
    DHCP Snooping Trusted Interfaces
    GE9 Trusted Interface Yes
    GE1-GE8 and GE10 Trusted Interface No
    ARP Inspection
    ARP Inspection Status: Enable - ticked
    ARP Packet Validation: Enable- ticked
    Interface Settings
    GE9 Trusted Interface Yes
    GE1-GE8 and GE10 Trusted Interface No
    VLAN Settings
    Enabled VLANs VLAN 10
    Access Control
    IPv4-Based ACL – note this is based on Ethertype 0800 it will not help me drop ARP which is Ethertype 0806 this really does not help it really does not but works for 0800 not for 0806 Ethertype.
    Dropsetin
    Dropsetintoout
    IPv4-Based ACE for Dropsetin
    Priority---------Action--Protocol------Source IP Address----------Destination IP Address
    100--------------Deny---Any (IP)------Any-----------Any --------------192.168.0.0--0.0.255.255
    101--------------Deny---Any (IP)------192.168.0.0--0.0.255.255-------Any----------Any
    102--------------Deny---Any (IP) -----Any------------Any--------------10.0.0.0-------0.255.255.255
    104--------------Deny---Any (IP)------Any------------Any--------------172.16.0.0----0.15.255.255
    105--------------Deny---Any (IP)------172.16.0.0----0.15.255.255----Any------------Any
    106--------------Deny---Any (IP)------Any------------Any--------------169.254.0.0---0.0.255.255
    107--------------Deny---Any (IP)------169.254.0.0---0.0.255.255-----Any------------Any
    2147483647---Permit--Any (IP) -----Any------------Any---------------Any-----------Any
    IPv4-Based ACE for Dropsetintoout
    Priority---------Action--Protocol------Source IP Address----------Destination IP Address
    100--------------Deny---Any (IP)------Any-----------Any --------------192.168.0.0--0.0.255.255
    101--------------Deny---Any (IP)------192.168.0.0--0.0.255.255-------Any----------Any
    102--------------Deny---Any (IP) -----Any------------Any--------------10.0.0.0-------0.255.255.255
    103--------------Deny---Any (IP) -----10.0.0.0-------0.255.255.255---Any------------Any
    104--------------Deny---Any (IP)------Any------------Any--------------172.16.0.0----0.15.255.255
    105--------------Deny---Any (IP)------172.16.0.0----0.15.255.255----Any------------Any
    106--------------Deny---Any (IP)------Any------------Any--------------169.254.0.0---0.0.255.255
    107--------------Deny---Any (IP)------169.254.0.0---0.0.255.255-----Any------------Any
    2147483647---Permit--Any (IP) -----Any------------Any---------------Any-----------Any
    ACL Binding for Dropsetin
    GE9
    ACL Binding for Dropsetintoout
    GE8
    And added a IPv6-Based ACL not that thiers any piont yet.
    And added rules for modem status Source IP 192.168.100.1 0.0.0.0 Source port 80 Dropsetin before 192.168.0.0 drop and Destination IP 192.168.100.1 0.0.0.0 Destination port 80 before 192.168.0.0 drop in Dropsetintoout 
    Message was edited by: Peter __

  • Can anyone solve this query requirement

    Would like to know if anyone solved this situation in the query before. If yes, or If you have any ideas, could you please share it with me.
    Below is the scenario.
    Cube data: We have a number of 'FACILIIES'. 'Surveys' are conducted for each facility once in every six to 18 months. No fixed time intervals though. And surveys are numbered sequencially, always in the increasing order with respect to time. each survey has a 'survey date'. and a keyfigure 'Count'.                                                  
    DATA IN THE CUBE AS OF 4/30/2005               
    FACILITY...SURVEYID...SURVEYDATE...COUNTKEYFIGURE     
    525...         121...  1/6/2004...         6     
    624...         132...  2/20/2004...    7     
    525...         138...  10/1/2004...    5     
    624...         140...  9/15/2004...    4     
    525...         157...  3/10/2005...    8     
    624...         245...  4/15/2005...    6     
    If the query is run for the above data, is shouls be displayed like this.               
    REPORT AS OF 04/30/2005                    
    FACILITY...LATESTSURVEY...LATESTCOUNT...PREVIOUSSURVEY PRECOUNT
    525... 157... 8... 138... 5
    624... 245... 6... 140... 4
    Once the data is updated further, this is the data in the Cube as of 10/30/2005
    DATA IN THE CUBE AS OF 10/30/2005          
    FACILITY...SURVEYID...SURVEYDATE...COUNTKEYFIGURE     
    525...          121...     1/6/2004...     6     
    624...          132...     2/20/2004...     7     
    525...          138...     10/1/2004...     5     
    624...          140...     9/15/2004...     4     
    525...          157...     3/10/2005...     8     
    624...          245...     4/15/2005...     6     
    525...       290...     8/20/2005...     9     
    624...          312...     10/15/2005...     4     
    REPORT AS OF 04/30/2005                         
    FACILITY LATESTSUREY LATESTCOUNT PREVIOUSSURVEY PRECOUNT
    525...          290...     9...          157...     8     
    624...          312...     4...          245...     6     
    Dynamically, the latest survey and previous survey has to be determined. Any ideas on how to solve... We alrady thought of making changes to the Survey Master data. Any thing that can be done in the query itself?
    thanks
    Gova
    (I could not improve the display format, so I used '...' to separate the fields. may be SDN should look into improving the display format)

    Hi Gova..
    We too had a similar requirement..to get the previous records..
    We had to end up having to populate the Previous record in a seperate field on the same line..
    I think you are on the right path to modify the master data and have the previous survey and previous count populated on every line..
    Good Luck
    Ashish..

  • Need solution for solving TIME_WAIT in TCP/IP ports in Windows Server 2008 Standard Service Pack 2

    In one of our windows machine( OS : Windows Server 2008 Standard (Service Pack 2)-32bit), we are facing TIME_WAIT in all the TCP/IP ports and it is not getting closed.
    On analyzing the issue, we found solution for this from the below link,
    https://support.microsoft.com/en-us/kb/2553549
    In this page, we are able to get the hotfix for Windows Server2008 R2 SP1 but i can't able to get for  Windows Server 2008 Standard SP2(32bit). If we try to apply the hotfix vailable for SP1, it is showing "The update does not apply to your System".
    Kindly provide us the solution for solving TIME_WAIT issue in the machine. 
    OS Details : Microsoft Windows Server 2008 Standard
    Version : 6.0.6002 SP2 Build 6002
    System Type : 32 bit(x86-based PC)
    Awaiting for the response.
    Thank you,
    Pushpalatha.A

    Download correct version from Microsoft Update Catalog. Run it with elevated rights.
    M.

  • To solve this query

    i want solution for shape & append query as run in access for oracle
    RS.Open "SHAPE {select ID,MAX(Module_Name) AS MainMenu from USER_MODULE GROUP BY ID} APPEND ({select ID,NAME,USER_module.srno,iif(right(param_str,1)='P','ü','') as Allow,iif(left(param_str,1)='A','ü','') as Ins,iif(MID(param_str,2,1)='E','ü','') as Edit,iif(MID(param_str,3,1) = 'D','ü','') as Del,flag,CODE,NAME from USER_MODULE left join user1 on user1.srno=USER_module.srno where user_name='" & Master_Rst!USER_NAME & "' or user_name is null} RELATE ID TO ID) AS AA", G_CompCn, adOpenDynamic, adLockOptimistic

    Hi ,
    Let the Oracle transform this query and the whole Access application using the Oracle Migration Workbench...
    You can download and test it in http://www.oracle.com/technology/software/index.html
    at the bottom of this page....!!!!!!!!!!
    To find out how to use ..., visit the link:
    http://www.oracle.com/technology/documentation/migration.html
    Regards,
    Simon

  • Need better alternative to this query

    I have a table A.
    Table A
    X Y
    1 R
    2 R
    3 R
    3 S
    4 R
    4 S
    5 P
    5 S
    I want the result as follows ( record which has Y equals to R or S but if it has both R and S then just get the one with Y equals to R)
    X Y
    1 R
    2 R
    3 R
    4 R
    5 S
    So my query is
    Select * From A
    Where Y = 'R'
    UNION
    SELECT * FROM TEST WHERE X IN(
    Select X From Test
    Minus
    Select X From Test
    Where Y = 'R'
    AND Y = 'S';
    It will get me the correct result but I feel there must be some other way that is much better than this query.
    Thanks,
    Sam

    with sample_data as (
         select 1 x, 'R' y from dual union all
         select 1, 'R' from dual union all
         select 2, 'R' from dual union all
         select 3, 'R' from dual union all
         select 3, 'S' from dual union all
         select 4, 'R' from dual union all
         select 4, 'S' from dual union all
         select 5, 'P' from dual union all
         select 5, 'S' from dual)
    select
    x
    ,max(y) keep (dense_rank first order by y) y
    from sample_data
    where
    y in ('R','S')
    group by
    x
    order by
    x
    X Y
    1 R
    2 R
    3 R
    4 R
    5 S It slightly more verbose than blue's solution, but gives you some more possibilites to influence the order than the simple max if necessary (e.g. NLS_SORT)
    You want an example, wont you;-)
    with sample_data as (
         select 1 x, 'R' y from dual union all
         select 1, 'R' from dual union all
         select 2, 'R' from dual union all
         select 3, 'r' from dual union all
         select 3, 'S' from dual union all
         select 4, 'R' from dual union all
         select 4, 'S' from dual union all
         select 5, 'P' from dual union all
         select 5, 'S' from dual)
    select
    x
    ,min(y) my
    ,max(y) keep (dense_rank first order by nlssort(y,'NLS_SORT=LATIN')) y
    from sample_data
    where
    y in ('R','S','r')
    group by
    x
    order by
    x
    X MY Y
    1 R R
    2 R R
    3 S r
    4 R R
    5 S S Edited by: chris227 on 14.09.2012 07:10

  • How to solve this query

    hi,
    i have a product table like
    product month1 month2 month3 .................
    soap 1200 1256 1895 ............
    i want use a query where i can select column name with a parameter.
    like
    select month||:num from product;
    in num variable it cud be 1 to 10 of value that is dependent on my program.
    so how to make this query .
    thxs

    Hi,
    Here is an example that i am helpful.
    In the example , I am using a table 'table_name' which contains columns like
    assign_attribute1
    assign_attribute2
    assign_attribute15
    Now I will pass any number from 1 to 15 to the function.
    create or replace procedure pass_col_number(v_number varchar2) as
    v_sql varchar2(2000);
    v_assign_attribute1   varchar2(150);
    begin
    v_sql := 'select  assign_attribute'||v_number||'  from  table_name where person_id = 1345';
    execute immediate v_sql into v_assign_attribute1;
    dbms_output.put_line('v_assign_attribute1='||v_assign_attribute1);
    end;Edited by: Sreekanth Munagala on Dec 18, 2008 1:18 AM

  • solved need help in tuning this Query

    hi frs,
    i have created a query like this
    pls help
    Regards
    Rajesh
    Message was edited by:
    Rajesh.mani
    Message was edited by:
    Rajesh.mani

    Code and explain plan should be between [pre] and [/pre] or [code] and [/code] tags like this.
    [pre]Code[/pre]An now explain plan
    [code]Execution plan
    [/code]
    Cheers
    Sarma.

  • Help me to solve this Query

    Hi All,
    This is Sindhu..
    Here i got an error while excuting the following query related to BLOB data types in Oracle 11g.
    I have to compare two blobs, because my report needs that.
    for this..1st i ran the following package..
    @ORACLE_HOME/rdbms/admin/dbmslob.sql
    then i did this...
    declare
    src_lob BFILE := &src_lob;
    amount INTEGER := &amount;
    dest_offset INTEGER :=1;
    src_offset INTEGER :=1;
    dest_lob BLOB := &dest_lob;
    BEGIN
    dbms_lob.loadfromfile
    dest_lob,
    amount,
    src_lob,
    src_offset,
    dest_offset
    end;
    SQL> /
    Enter value for src_lob: 0820303623ECCFF8DCD9E0DFF11FDF1E1E7C3E6450E444E2E683A3D
    B03FF7B7CFF34FC24244724CF07CBDBC8EB80C034000436007E018801016B01FEFFFEFEFEFE0F7F0
    D07891FF198F1E9E1F304730C
    old 2: 2 src_lob BFILE := &src_lob;
    new 2: 2 src_lob BFILE := 0820303623ECCFF8DCD9E0DFF11FDF1E1E7C3E6450E444E2E
    683A3DB03FF7B7CFF34FC24244724CF07CBDBC8EB80C034000436007E018801016B01FEFFFEFEFEF
    E0F7F0D07891FF198F1E9E1F304730C;
    Enter value for amount: 18446744073709551615
    old 3: 3 amount INTEGER := &amount;
    new 3: 3 amount INTEGER := 18446744073709551615;
    Enter value for dest_lob: 8F2F1FE032E0E0C8C00CF91E2E1F0EDBDDF2D13292203E61614161
    80C0E689FFAEFFD7FEDF38FC3818013941F1C7C4C74FF3FF90F218000D1CAD9F89ED00E000024404
    D76DDFD6DF935F5B0E5C868E87
    old 6: 6 dest_lob BLOB := &dest_lob;
    new 6: 6 dest_lob BLOB := 8F2F1FE032E0E0C8C00CF91E2E1F0EDBDDF2D13292203E616
    1416180C0E689FFAEFFD7FEDF38FC3818013941F1C7C4C74FF3FF90F218000D1CAD9F89ED00E0000
    24404D76DDFD6DF935F5B0E5C868E87;
    ERROR:
    ORA-00972: identifier is too long
    SQL> declare
    2 lob_1 BLOB := &lob_1;
    3 lob_2 BLOB := &lob_2;
    4 amount INTEGER := 18446744073709551615;
    5 offset1 INTEGER :=1;
    6 offset2 INTEGER :=1;
    7 templob INTEGER;
    8 BEGIN
    9 templob :=dbms_lob.compare(lob_1,lob_2,amount,offset1,offset2);
    10 if (templob !=0 ) then
    11 dbms_output.put_line('Files Are Different');
    12 else
    13 dbms_output.put_line('Files Are Same');
    14 end if;
    15 end;
    16 /
    Enter value for lob_1: 0820303623ECCFF8DCD9E0DFF11FDF1E1E7C3E6450E444E2E683A3DB0
    3FF7B7CFF34FC24244724CF07CBDBC8EB80C034000436007E018801016B01FEFFFEFEFEFE0F7F0D0
    7891FF198F1E9E1F304730C
    old 2: lob_1 BLOB := &lob_1;
    new 2: lob_1 BLOB := 0820303623ECCFF8DCD9E0DFF11FDF1E1E7C3E6450E444E2E683A3DB0
    3FF7B7CFF34FC24244724CF07CBDBC8EB80C034000436007E018801016B01FEFFFEFEFEFE0F7F0D0
    7891FF198F1E9E1F304730C;
    Enter value for lob_2: 8F2F1FE032E0E0C8C00CF91E2E1F0EDBDDF2D13292203E6161416180C
    0E689FFAEFFD7FEDF38FC3818013941F1C7C4C74FF3FF90F218000D1CAD9F89ED00E000024404D76
    DDFD6DF935F5B0E5C868E87
    old 3: lob_2 BLOB := &lob_2;
    new 3: lob_2 BLOB := 8F2F1FE032E0E0C8C00CF91E2E1F0EDBDDF2D13292203E6161416180C
    0E689FFAEFFD7FEDF38FC3818013941F1C7C4C74FF3FF90F218000D1CAD9F89ED00E000024404D76
    DDFD6DF935F5B0E5C868E87;
    ERROR:
    ORA-00972: identifier is too long
    i do not know why i got this problem.. is there any error in my program..
    lobmaxsize=4GB
    how to increase the size of the data type.
    Please Help me.
    Thank You.

    Hi Sindhu,
    Your problem has not to with lob size.
    The error ORA-00972: identifier is too long
    tells you that
    0820303623ECCFF8DCD9E0DFF11FDF1E1E7C3E6450E444E2E683A3D
    B03FF7B7CFF34FC24244724CF07CBDBC8EB80C034000436007E018801016B01FEFFFEFEFEFE0F7F0
    D07891FF198F1E9E1F304730C
    becomes an identifier.
    Look into this for how to use substitution variables
    http://www.oracle.com/technology/support/tech/sql_plus/htdocs/sub_var.html
    If you don't have time to go through it all, I suggest you at least read section 2.
    This won't solve all your problems, but it should explain yur current ORA-00972.
    Regards
    Peter

  • I need help to solve this method

    public interface ObstacleCourseInterface {
      /* THE RECURSIVE-BACKTRACKING method which exhaustively searches
       * the maze for an exit.
       * Returns: TRUE to the caller if at the current level, it found an
       * exit OR false, if it cant go anywhere else from the current position
      public boolean findTheExit(int row, int col);
      /*  Used to determine whether you can move into array[row][col].
       *  It can only move into that cell if it is not a wall and it is
       *  not already in the current path.
       *  Returns true if you can move in, false if you cannot.
      public boolean possible(int row, int col);
      /* Returns the start row for the pacman. Determined
       * by reading in the input file and searching for the 'S'
      /* Return a textual representation of the maze */
      public String toString();
      // Some getter methods needed by the GUI
      public int getStartRow();
      /* Returns the start column for the pacman. Determined
       * by reading in the input file and searching for the 'S'
      public int getStartColumn();
      /* This method returns a reference to the 2D char-array used by YOU
       * to represent the obstacle course(which is constructed from a filename
       * specified during the construction of a new ObstacleCourse object).
       * Returns: Reference to YOUR 2D char-array instance variable
      public char[][] getArray();
    }how do I solve for the possible method??
    so far this is how I have created it:
    public boolean possible(int row, int col) {
              boolean result = false;
              char [][] array = this.getArray();
              if (array[row][col] != '+' && ???? )
                   result = true;
              return result;
         }I don't know how to solve for the current path

    What sort of visa card is it, debit or credit ? If it's a debit card then I don't think that they are still accepted as a valid payment method in all countries - from this page :
    You may be able to use other payment types in your country, like debit and Maestro cards.
    which implies that they are not accepted in all countries, and there have been a number of posts about them being declined.
    You haven't changed the address on your iTunes account (a card needs to be registered to exactly the same name and address, including format and spacing etc, that you have on your iTunes account) and you are still in the country where the card was issued ? You could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes support and see if they know why it's being declined : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management

  • HI could you solve this query

    Ex: Table : inputval
    Column: inputvalue VARCHAR2(100)
    DATA for above column are
    TCC=0471/12345/0999/8548/4321,VT=15,PRIMDX=false,DUR=365,VISITS=0
    values termination are '/'
    Q: i need to after TCC value from the inputvalue column
    i need 6 values output are below
    1. 471
    2. 12345
    3. 0999
    4. 8548
    5. 4321
    6. null
    i written query but i am not able to get these output
    i am giving sample query which i tried for one value
    SELECT
    case when inputvalue like '%TCC=%' then
    substr(substr(inputvalue,to_number(instr(inputvalue,'TCC=')+4),
    to_number(instr(inputvalue,',',instr(inputvalue,'TCC=')+4))
    -to_number(instr(inputvalue,'TCC=')+4)),1,
    instr(substr(inputvalue,to_number(instr(inputvalue,'TCC=')+4),
    to_number(instr(inputvalue,',',instr(inputvalue,'TCC=')+4))
    -to_number(instr(inputvalue,'TCC=')+4)),'/')-1) end tcc1,
    case when inputvalue like '%TCC=%' then
    substr(substr(inputvalue,to_number(instr(inputvalue,'TCC=')+4),
    to_number(instr(inputvalue,',',instr(inputvalue,'TCC=')+4))
    -to_number(instr(inputvalue,'TCC=')+4)),
    instr(substr(inputvalue,to_number(instr(inputvalue,'TCC=')+4),
    to_number(instr(inputvalue,',',instr(inputvalue,'TCC=')+4))
    -to_number(instr(inputvalue,'TCC=')+4)),'/')+1,
    instr(substr(inputvalue,to_number(instr(inputvalue,'TCC=')+4),
    to_number(instr(inputvalue,',',instr(inputvalue,'TCC=')+4))
    -to_number(instr(inputvalue,'TCC=')+4)),'/',2)-1) end tcc2
    FROM inputval
    please solve me as early as possible
    Thanks,
    krish

    Hi,
    REGEXP_SUBSTR ( s
                  , '[^,]+'
                  , 1
                  , n
                  )returns the nth item in a comma-delimited list s. (It retuirns NULL if there are not that many items.)
    Cross-join with a counter table to get the values for n, and test if the nth item is the one that starts with 'TCC='.
    Depending on you data, it might be easier to use REGEXP_SUBSTR or REGEXP_REPLACE to find the part of the string between 'TCC=' and the next comma. (I can't tell from the one row of sample data.)
    Once you have the TCC-substring, use REGEXP_SUBSTR again to get the m-th item from the /-delimited list. (Use a different counter table.)
    If you need more help, post some more test data and desired results, testing any special cases, such as:
    two or more 'TCC=' items in one string
    NULL entries ('TCC=1///4')
    Misplaced label ('1/2/TCC=3/4/5')
    malformed numbers ('TCC=1.0.0/4')
    REGEXP_ function only work in Oracle 10 and up.

  • Need help in tune this query.

    Hi All,
    The below query is taking nearly one hour to give the output.
      2  select sku.VK_UNIT
      3       , sku.MODEL
      4       , sku.DESCRIPTION
      5       , slt.GEO
      6       , slt.LEAD_TIME
      7       , slt.REV_LEAD_TIME
      8       , aud.LEAD_TIME        as PREV_LEAD_TIME_GEO
      9       , aud.REV_LEAD_TIME    as PREV_REV_LEAD_TIME_GEO
    10       , slt.COUNTDOWN
    11       , aud.CREATION_DATE    as EDD_CREATION_DATE_GEO
    12       , aud.CREATED_BY       as EDD_CREATED_BY_GEO
    13    from LTC_GLOBAL.LTC_SKU sku
    14       , LTC_GLOBAL.LTC_SKU_LEAD_TIME slt
    15       , (select VK_UNIT
    16               , MODEL
    17               , substr(ACTION_TYPE, 9) as GEO
    18               , max(case when substr(ACTION_TYPE, 1, 8) = 'SKU EDD ' then ACTION_VALUE  else null end) as LEAD_TIME
    19               , max(case when substr(ACTION_TYPE, 1, 8) = 'SKU EDD ' then CREATION_DATE else null end) as CREATION_DATE
    20               , max(case when substr(ACTION_TYPE, 1, 8) = 'SKU EDD ' then CREATED_BY    else null end) as CREATED_BY
    21               , max(case when substr(ACTION_TYPE, 1, 8) = 'SKU RDD ' then ACTION_VALUE  else null end) as REV_LEAD_TIME
    22               , max(case when substr(ACTION_TYPE, 1, 8) = 'SKU RDD ' then CREATION_DATE else null end) as REV_CREATION_DATE
    23               , max(case when substr(ACTION_TYPE, 1, 8) = 'SKU RDD ' then CREATED_BY    else null end) as REV_CREATED_BY
    24            from (select VK_UNIT
    25                       , MODEL
    26                       , ACTION_TYPE
    27                       , ACTION_VALUE
    28                       , CREATION_DATE
    29                       , CREATED_BY
    30                       , PREV_ACTION_VALUE
    31                       , PREV_CREATION_DATE
    32                       , PREV_CREATED_BY
    33                    from (select
    34                                 NOTE         as VK_UNIT
    35                               , NOTE2        as MODEL
    36                               , ACTION_TYPE
    37                               , ACTION_VALUE
    38                               , CREATION_DATE
    39                               , CREATED_BY
    40                               , row_number()        over(partition by NOTE, NOTE2, ACTION_TYPE order by CREATION_DATE desc) as DEPTH
    41                               , lead(CREATION_DATE) over(partition by NOTE, NOTE2, ACTION_TYPE order by CREATION_DATE desc) as PREV_CREATION_DATE
    42                               , lead(CREATED_BY   ) over(partition by NOTE, NOTE2, ACTION_TYPE order by CREATION_DATE desc) as PREV_CREATED_BY
    43                               , lead(ACTION_VALUE ) over(partition by NOTE, NOTE2, ACTION_TYPE order by CREATION_DATE desc) as PREV_ACTION_VALUE
    44                            from LTC_GLOBAL.LTC_AUDIT
    45                           where NOTE is not null
    46                             and NOTE2 is not null
    47                             and ACTION_TYPE is not null
    48                         )
    49                   where DEPTH = 2
    50                     and substr(ACTION_TYPE, 1, 8) in ('SKU EDD ', 'SKU RDD ')
    51                 )
    52           group by VK_UNIT, MODEL, substr(ACTION_TYPE, 9)
    53         ) aud
    54  where slt.VK_UNIT = sku.VK_UNIT
    55     and slt.MODEL   = sku.MODEL
    56     and slt.CLASS   = sku.CLASS
    57     and nvl(slt.LEAD_TIME, slt.REV_LEAD_TIME) is not null
    58     and aud.VK_UNIT (+)= slt.VK_UNIT
    59     and aud.MODEL   (+)= slt.MODEL
    60     and aud.GEO     (+)= slt.GEO;
    PLAN_TABLE_OUTPUT
    Plan hash value: 2687821083
    | Id  | Operation                   | Name              | Rows  | Bytes |TempSpc| Cost (%CPU)| Time  |
    |   0 | SELECT STATEMENT            |                   |   539K|   902M|       |  1005K  (1)| 03:21:05 |
    |*  1 |  HASH JOIN OUTER            |                   |   539K|   902M|    62M|  1005K  (1)| 03:21:05 |
    |*  2 |   HASH JOIN                 |                   |   539K|    56M|    27M| 66402   (1)| 00:13:17 |
    |*  3 |    TABLE ACCESS FULL        | LTC_SKU_LEAD_TIME |   559K|    20M|       | 23201   (2)| 00:04:39 |
    |   4 |    TABLE ACCESS FULL        | LTC_SKU_UNIT      |  5726K|   382M|       | 19570   (1)| 00:03:55 |
    |   5 |   VIEW                      |                   |  4157K|  6522M|       |   610K  (2)| 02:02:02 |
    PLAN_TABLE_OUTPUT
    |   6 |    HASH GROUP BY            |                   |  4157K|   229M|   303M|   610K  (2)| 02:02:02 |
    |*  7 |     VIEW                    |                   |  4157K|   229M|       |   551K  (2)| 01:50:21 |
    |*  8 |      WINDOW SORT PUSHED RANK|                   |  4157K|   229M|   303M|   551K  (2)| 01:50:21 |
    |*  9 |       TABLE ACCESS FULL     | LTC_AUDIT         |  4157K|   229M|       |   493K  (2)| 01:38:41 |
    Predicate Information (identified by operation id):
       1 - access("AUD"."VK_UNIT"(+)="SLT"."VK_UNIT" AND "AUD"."MODEL"(+)="SLT"."MODEL" AND
                  "AUD"."GEO"(+)="SLT"."GEO")
    PLAN_TABLE_OUTPUT
       2 - access("SLT"."VK_UNIT"="UNIT"."VK_UNIT" AND "SLT"."MODEL"="UNIT"."MODEL" AND
                  "SLT"."CLASS"="UNIT"."CLASS")
       3 - filter(NVL("SLT"."LEAD_TIME","SLT"."REV_LEAD_TIME") IS NOT NULL)
       7 - filter("DEPTH"=2)
       8 - filter(ROW_NUMBER() OVER ( PARTITION BY "NOTE","NOTE2","ACTION_TYPE" ORDER BY
                  INTERNAL_FUNCTION("CREATION_DATE") DESC )<=2)
       9 - filter((SUBSTR("ACTION_TYPE",1,8)='SKU EDD ' OR SUBSTR("ACTION_TYPE",1,8)='SKU RDD ') AND
                  "NOTE2" IS NOT NULL AND "ACTION_TYPE" IS NOT NULL)
    30 rows selected.
    SELECT COUNT(*) FROM LTC_GLOBAL.LTC_SKU--5012335
    SELECT COUNT(*) FROM  LTC_GLOBAL.LTC_SKU_LEAD_TIME--8060956
    SELECT COUNT(*) FROM  LTC_GLOBAL.LTC_AUDIT--58309887
    CREATE UNIQUE INDEX LTC_GLOBAL.LTC_SKU_LEAD_TIME_PK ON LTC_GLOBAL.LTC_SKU_LEAD_TIME(VK_UNIT, MODEL, CLASS, GEO)
    CREATE INDEX LTC_GLOBAL.LTC_AUDIT_LEAD_TIME ON LTC_GLOBAL.LTC_AUDIT(ACTION_TYPE)
    CREATE INDEX LTC_GLOBAL.LTC_AUDIT_LEAD_TIME_DOM ON LTC_GLOBAL.LTC_AUDIT(NOTE, NOTE2, ACTION_TYPE)
    CREATE INDEX LTC_GLOBAL.LTC_AUDIT_LEAD_TIME_DOM1 ON LTC_GLOBAL.LTC_AUDIT("CREATION_DATE" DESC)
    Please help me.
    Thanks in advance.

    Thanks for your response.
    Sorry for violating formatting. Since I am not aware of the format options in new environment.
    I have created functional based index on SUBSTR(ACTION_TYPE, 1, 8).
    The cost got reduced some what.But still the query is taking 40 minutes.
    The following predicate it is returning 58296618 rows.
    NOTE is not null  
    and NOTE2 is not null 
    and ACTION_TYPE is not null 
    LTC_SKU_UNIT is a view.
    The following query is used for creating this view.
       SELECT   unit.VK_UNIT,
                unit.MODEL,
                unit.CLASS,
                unit.LOB,
                unit.LAST_UPDATE_DATE,
                unit.DESCRIPTION
         FROM   LTC_GLOBAL.LTC_SKU_UNIT unit;
    The following indexes are created on the LTC_GLOBAL.LTC_SKU_UNIT table.
    CREATE INDEX LTC_GLOBAL.LTC_SKU_UNIT_IDX_CLASS ON LTC_GLOBAL.LTC_SKU_UNIT(CLASS)
    CREATE INDEX LTC_GLOBAL.LTC_SKU_UNIT_IDX_MODEL ON LTC_GLOBAL.LTC_SKU_UNIT(MODEL)
    CREATE INDEX LTC_GLOBAL.LTC_SKU_UNIT_IDX_UPDATE_DATE ON LTC_GLOBAL.LTC_SKU_UNIT(LAST_UPDATE_DATE)
    CREATE UNIQUE INDEX LTC_GLOBAL.LTC_SKU_UNIT_PK ON LTC_GLOBAL.LTC_SKU_UNIT(VK_UNIT, MODEL, CLASS)
    Is there any way to rewrite the query to improve the performance. Any suggestions to improve the performance.
    Please help me.
    Thanks in advance.

  • Need sugestions to solve this annoying problem

    Hey everyone, after many hours i decided to ask for your help.
    Here's the problem.
    I have two txt. files one of them has :
    1st txt:
    Barcelona 14 20 // Airport , x and y (coord.)
    Caliornia 30 40
    Paris 2 15
    Fiji 20 23
    and the 2nd txt file has:
    40 // number of flights for exemple
    C 0025 Barcelona California // type, number, Start point , destiny
    A 0045 California fiji
    C 0032 Barcelona Paris
    C 0047 Paris Barcelona
    A 0078 fiji Paris
    C 0065 California Barcelona
    So what im trying to do is if the type is "C" (Comercial) catch the coordenates from the start point and the arrived point...to do that i think we must compare (don't know how) those strings with the other strings from the 1st txt file, because the coordenates are inside the first txt. file. I need to catch the coordenates from the start point and from the destiny point, so we can't give a line , beacause it must be a dynamic way , this operation must result to any txt. file (2nd one) it can has 5 flights or 50 flights, just has to
    return all the coordenates ( x1 y1 ) and (x2 y2) .
    Any sugestion?
    What i already did, was to insert all the names into a String [ ] , and then inserted into a LinckedList , so its like: e.g String word [ ] :
    word[0] has all the names word [1] has all the xx's , word[2] the yy's this for the 1st txt file.
    For the 2nd , i did the same thing but this one has four columns.
    another String [ ] ...words [0] has all the types , words[ 2] the start points and words [3] the destiny point.
    Need a serious help with this thing.
    [[]] thanks everyone!!

    loop through file 2 adn check if first word[0] is a C
    if it is a C get file2.word[2] and lopp through file1 and check if file2.word[2] is equal to file1.word[0]
    if equal save file1.word[1] in a new arrary or something
    then get file2.word[3] and lopp through file1 and check if file2.word[3] is equal to file1.word[0]
    if equal save file1.word[1] in a new arrary or something
    i guess thats someting you are looking for

  • Solve this query

    hi,
    i have a number that including number's 20 percent & i want to get that number without 20 percent
    for example
    600+(600's 20%)=720 ( i hav this number)
    and i want 600 as a result
    so try to provide me formula to get 600 from 720 and it shuld work on any number.
    thks

    In the first post, look at the first line: x+x/5=720
    It equals x+x*100/20=720
    change 20 and go step by step my algoritm and build your query based on it

Maybe you are looking for

  • Black Bars in Encore

    Hi, so I have a video in premiere in 1440x1080 (set it up with square pixels) When it comes over to encore (720x480) I have thin black bars on the left and right.  Anyway to get rid of these?

  • Report Results

    I am comparing the query designer with the report. Both the KF and char. All rows and coloums match. Expect that on report there is another column called Total. Where in the Query designer is there a reference to this as I can not see how it was adde

  • Data Warehouse Archive logging questions

    Hi all, I'd like some opinions/advice on archive logging and OWB 10.2 with a 10.2 database. Do you use archive logging on your non-production OWB instances? I have a development system that only has "on demand" backups done and the archive logs fill

  • I own LR5 and just signed up for CC, do I need to unistall LR5?

    Im curious, I've been using LR5 for about 2 months and I just signed up for creative cloud.  I want to make sure that I get all new product updates as they come available.  Should I uninstall my current version of LR5 and reinstall it from Creative C

  • Upgraded to 10.4.6-Can't connect to server

    I just upgraded two of the ibooks in our small office network to 10.4.6. Now when I try to connect to our server they bring up the correct dialog box and show the correct ip address but the "connect" button won't click. Nothing happens. The same thin