Please help me correct this

import java.util.*;
public class ThirteenCards
{//1
Card[] hand;
ArrayList<Card> deck;
Random rand;
     public ThirteenCards()
     {//2
          deck = Card.newDeck();
          rand = new Random();
          hand = makeHand();
          printHand();
     }//2
     Card[] makeHand()
     {//3
     Card[] deal = new Card[13];
     Arrays.fill(deal, null);
     for (int i = 0; i < deal.length; ++i)
     deal[i] = pickCard(deal);
     return deal;
     }//3
     Card pickCard(Card[] dealt)
     {//4
          int i = rand.nextInt(52);
          Card c = deck.get(i);
          if (! got(c, dealt))
               return c;
          else
               return pickCard(dealt);
     }//4
     boolean got(Card card, Card[] ca)
     {//5
          Card cc;
          int i = 0;
          while ((cc = ca[i++]) != null)
               if (cc.equals(card))
                    return true; // already got } } return false; }
               return false;
          }//5
     public void printHand()
     {//6
          Card[] spades = new Card[13];
          Card[] diamonds = new Card[13];
          Card[] clubs = new Card[13];
          Card[] hearts = new Card[13];
          Arrays.fill(spades, null);
          Arrays.fill(diamonds, null);
          Arrays.fill(clubs, null);
          Arrays.fill(hearts, null);
          int si, di, ci, hi;
          si = di = ci = hi = 0;
          for (Card c : hand)
          {//a
               System.out.print(c + ", ");
               switch(c.suit())
               {//b
                    case SPADES : spades[si++] = c;
                    break;
                    case DIAMONDS : diamonds[di++] = c;
                    break;
                    case CLUBS : clubs[ci++] = c;
                    break;
                    case HEARTS : hearts[hi++] = c;
               }//b
          }//a
                    System.out.println();
                    System.out.print("Spades : ");
                    for (Card c : spades)
                    {//c
                         if (c == null)
                         { break;
                         }//c
                         System.out.print(ra(c) + ", ");
     }//6
                    System.out.println();
                    System.out.print("Diamonds : ");
                    for (Card c : diamonds)
                         if (c == null)
                              break;
                         System.out.print(ra(c) + ", ");
                         System.out.println();
                         System.out.print("Clubs : ");
                         for (Card c : clubs)
                              if (c == null)
                                   break;
                              System.out.print(ra(c) + ", ");
                         System.out.println();
                         System.out.print("Hearts : ");
                         for (Card c : hearts)
                              if (c == null)
                              { break;
                              System.out.print(ra(c) + ", ");
                              System.out.println();
//                         System.out.println();
                         String ra(Card c)
                              String s = c.getString();
                              return s.substring(0, s.indexOf(" "));
                    public void printHandInShortForm()
                              Card[] spades = new Card[13];
                              Card[] diamonds = new Card[13];
                              Card[] clubs = new Card[13];
                              Card[] hearts = new Card[13];
                              Arrays.fill(spades, null);
                              Arrays.fill(diamonds, null);
                              Arrays.fill(clubs, null);
                              Arrays.fill(hearts, null);
                              int si, di, ci, hi;
                              si = di = ci = hi = 0;
                              for (Card c : hand)
                                   System.out.print(sf(c) + " ");
                                   switch(c.suit())
                                        case SPADES : spades[si++] = c;
                                        break;
                                        case DIAMONDS : diamonds[di++] = c;
                                        break;
                                        case CLUBS : clubs[ci++] = c;
                                        break;
                                        case HEARTS : hearts[hi++] = c;
                                        System.out.println();
                                        System.out.print("Spades : ");
                                        for (Card c : spades)
                                        if (c == null)
                                             { break;
                                             System.out.print(sfr(c) + " ");
                                             System.out.println();
                                             System.out.print("Diamonds : ");
                                             for (Card c : diamonds)
                                                  if (c == null)
                                                  break;
                                                  System.out.print(sfr(c) + " ");
                                             System.out.println();
                                             System.out.print("Clubs : ");
                                             for (Card c : clubs)
                                                  if (c == null)
                                                       break;
                                                  System.out.print(sfr(c) + " ");
                                                  System.out.println();
                                                  System.out.print("Hearts : ");
                                                  for (Card c : hearts)
                                                       if (c == null)
                                                            break;
                                                       System.out.print(sfr(c) + " ");
                                                       System.out.println();
                                                       String sf(Card c)
                                                            String s, r;
                                                            s = r = null;
                                                            switch (c.suit())
                                                                 case SPADES : s = "s";
                                                                 break;
                                                                 case DIAMONDS : s = "d";
                                                                 break;
                                                                 case CLUBS : s = "c";
                                                                 break;
                                                                 case HEARTS : s = "h";
                                                  switch (c.rank())
                                                       case DEUCE : r = "2";
                                                       break;
                                                       case THREE : r = "3";
                                                       break;
                                                       case FOUR : r = "4";
                                                       break;
                                                       case FIVE : r = "5";
                                                       break;
                                                       case SIX : r = "6";
                                                       break;
                                                       case SEVEN : r = "7";
                                                       break;
                                                       case EIGHT : r = "8";
                                                       break;
                                                       case NINE : r = "9";
                                                       break;
                                                       case TEN : r = "10";
                                                       break;
                                                       case JACK : r = "j";
                                                       break;
                                                       case QUEEN : r = "q";
                                                       break;
                                                       case KING : r = "k";
                                                       break;
                                                       case ACE : r = "a";
                                                       return r + s;
                                                       String sfr(Card c)
                                                       String sf = sf(c);
                                                       return sf.substring(0, sf.length() - 1);
public static void main(String[] args)
ThirteenCards tc = new ThirteenCards();
System.out.println();
System.out.println("[short forms]");
tc.printHandInShortForm();
}//1
I get the following error
ThirteenCards.java:133: 'class' or 'interface' expected
     String ra(Card c)
^
1 error

MULTI POST
http://forum.java.sun.com/thread.jspa?threadID=714652&tstart=0

Similar Messages

  • I have comcast internet. Now I cannot open any of my e-mails.Please help me correct this problem. Comast is not the problem.

    I upgraded to a newer version of firefox. My ISP is Comcast.
    I tried opening up my e-mails they will not open up.I contacted Comcast ,they told me there customers have no problems opening their e-mails.Please help me with this problem asap.
    The problem started after I upgraded to the higher version.
    Thank you,
    Arnold
    My phone is: 313 882-9785

    If it's a thin 1 pixel wide vertical line it's highly likely it could be caused by a defective LCD.
    One quick basic way to check is to note the position of the line. Then go to System Preferences, Displays, and lower the resolution. If ther line moves it's on the video and the logic board or video card if fitted is likely to be defective. If the line stays in the same position it's likely to be an LCD fault. Either way to have it repaired you'll need to visit an Apple store or AASP.
    The worst offender for this problem is the Late 2006 17" iMac. FOC replacement of the LCD used to be covered by a quality program, but it's now ended.
    Steve

  • The font for my yahoo log in is very very small anbd my email fonts are far too big and the words overlap, please help to correct this problem

    The font for sign into my yahoo mail is so small that I am unable to make out my ID and password and when I do get into my mailbox, the fonts are far too big and the words overlap. Tried going into tools /options to make changes but not successful, please help.thanks

    Reset the page zoom on pages that cause problems, make sure that the window is not maximized:
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you have increased the minimum font size then try the default setting "none" as a high value can cause such issues.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    You can use an extension to set a default font size and page zoom on web pages.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • Please help me correct this SQL query...

    hi, please consider following:
    create table test(col varchar2(255))
    insert into test values ('DURATION');
    insert into test values ('VOLUME');
    select col from test where col in ('DURATION','VOLUME');
    this returns the rows.
    but my input string is a comma separated list:
    DURATION,VOLUME
    so i try
    select col from test where col in (replace('DURATION,VOLUME',',',''','''));
    but no results. Or:
    select col from test where col in (''''||replace('DURATION,VOLUME',',',''',''')||'''');
    however
    select ''''||replace('DURATION,VOLUME',',',''',''')||'''' from dual
    gives 'DURATION','VOLUME'
    so why doesnt it work?
    hope you can help. Thanks

    Another solution will be:
    SQL> variable comma_sep_value VARCHAR2(100);
    SQL> exec :comma_sep_value := 'DURATION,VOLUME,ABCD'
    PL/SQL procedure successfully completed.
    SQL> SELECT *
      2    FROM TEST
      3   WHERE INSTR (:comma_sep_value, col) > 0
      4  /
    DURATION
    VOLUME
    2 rows selected.
    SQL>  exec :comma_sep_value := 'DURATION';
    PL/SQL procedure successfully completed.
    SQL>  SELECT *
      2     FROM TEST
      3    WHERE INSTR (:comma_sep_value, col) > 0
      4   /
    DURATION
    1 row selected.
    SQL>  exec :comma_sep_value := 'DURATION,VOLUME';
    PL/SQL procedure successfully completed.
    SQL> SELECT *
      2    FROM TEST
      3   WHERE INSTR (:comma_sep_value, col) > 0
      4  /
    DURATION
    VOLUME
    2 rows selected.Hope this helps.
    Regards,
    Jo

  • Please help me correct this code

    Hi, I have to develop a Java applications that converts a positive number from base 10 to another base. It has to prompt the user to enter the number to be converted an the base to be converted into. After conversion is completed, the program should ask for another conversion. The program would run in a loop until the user would decide to end it. In case of an error entry as a base less than 2, the program should warn the user about the type of error and ask the user to re-enter the values. At the nd of the program, provide a statistic with how many conversions the user has done.
    Please look at code below, and see where i went wrong, i can't seem to figure out the formula for conversions.
    import java.io.*;
    public class Class1
         public static void main (String[] args)throws IOException
              int num=0;
              int base=0;
              int result;
              int rem;
              int arr[]=new int[20];
              int count=0;
              boolean prompt= true;
              for(int i=0; i<arr.length; i++)
                             while(prompt)
              //int i=0     ;
              String s;
              int x;
              BufferedReader aa =
                             new BufferedReader(new InputStreamReader(System.in));
              System.out.println("Enter a positive number for the conversion:");
              s = aa.readLine();
              num = Integer.parseInt(s);
                   System.out.println("Enter the base number that you want to convert your number:");
                   s=aa.readLine();
                   base = Integer.parseInt(s);
                   if(base >= 2)
                        if(num > 0)
                        {   rem= num%base;
                             num=num/base;
                             arr=rem;
                             System.out.println("The converted number is: " + arr[i]);
                             System.out.print("Would you like to go on (yes/no)?");
                             s=aa.readLine();
                             prompt= s.equalsIgnoreCase("no");
                             count++;
                             //i++;     
                        else
                             System.out.println("The number must be greater that 0, please enter an other number!!");
                   else
                        System.out.println("The base number is not the appropriate,must be greater of two!!");
                   //promt the user if he/she wants to continiue or not
                   System.out.println("You have used the conversion thingy " count " times, You Freak!");
                   System.in.read();

    Since I have already started this I will try to make the conversion work. ( usually I do not like to to other people's homework ).
    import java.io.*;
    public class Class1
         static char[] theDigits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
         public static void main (String[] args)throws IOException
              int num=0;
              int base=0;
              int result;
              int rem;
              String arr[]=new String[20];
              int count=0;
              boolean prompt= true;
              for(int i=0; i<arr.length && prompt; i++)     {
                   while(prompt) {
                        String s;
                        int x;
                        BufferedReader aa =
                        new BufferedReader(new InputStreamReader(System.in));
                        System.out.println("Enter a positive number for the conversion:");
                        s = aa.readLine();
                        num = Integer.parseInt(s);
                        System.out.println("Enter the base number that you want to convert your number:");
                        s=aa.readLine();
                        base = Integer.parseInt(s);
                        if( base >= 2 && base < 17 ) {
                             if (num > 0)     {
                                  s = "";
                                  while ( num > 0 ) {
                                       rem= num%base;
                                       s = theDigits[rem] + s;
                                       num=num/base;
                                  arr[count] = new String(s);
                                  count++;
                                  //promt the user if he/she wants to continiue or not
                                  System.out.println("The converted number is: " + s + " base " + base );
                                  System.out.print("Would you like to go on (yes/no)?");
                                  s=aa.readLine();
                                  prompt= s.equalsIgnoreCase("yes");
                             else
                                  System.out.println("The number must be greater that 0, please enter an other number!!");
                        else
                             System.out.println("The base number is not the appropriate,must be greater of two and lower of 17!!");
              System.out.println("You have used the conversion thingy " +count +" times, You Freak!");
              System.in.read();
    }kurt

  • My icloud activation lock is ON my iphone, which requires an activation login to access the homescreen, but when i log in with the apple ID on the phone, it says the apple ID is not meant to unclock this iphone 5 ios 8.0.2. please help me solve this.

    My icloud activation lock is on my iphone, which requires an activation login to access the homescreen, but when i log in with the apple ID on the phone, it says the apple ID is not meant to unclock this iphone 5 ios 8.0.2. please help me solve this.

    Yes the phone belongs to me. It was purchased from United Kingdom Vodafone to West Africa, i had to factory unlock to use any sim in it. so it belongs to me. I did the activation myself, now after updating my iphone to the latest update, it required a user id and password to activate the phone, but anytime i enter the details, it tells me the user Id is not correct but the password is correct..

  • Upgrading OSX 10.6.8 to mavericks. please help me in this.

    Hello.. i am using OSX 10.6.8 and FCP 7.0.3. if i upgrade to mavericks. will anything happen to my fcp or projects. please help me in this.

    You need to reseach all the hardware and software you have not just FCP.
    Check your Mac as plenty of RAM and disk space and the correct CPU.
    Check any peripherals, printers scanners, external disk storage of any type.
    In fact anything you use requires checking for compatibility.
    You may get more answers in the FCP forums, I use FCE 4.01 and it works for me in Mavericks but I am not a power user.
    https://discussions.apple.com/community/professional_applications
    Have a good backup and restore options, which you should have any way, if the upgrade does not go as planned you can restore to the previous system.
    I run Mavericks on both my Macs, works well for me but you need to check all options.

  • Please help me with this

    please help me with this 
    i brought sony z3 dual last month
    since i brought i noticed that when typing there is problem with screen touch system ,as there is specific letters not typing correctly 
    first i thought its from screen sticker came with the phone ,, so i used with it ,, but after 2 weeks i remove the screen sticker ,and installed new one which came with the phone , but the problem with typing still there
    i did screen touch test  i found that there is longitudinal area not responding to the tough test correctly 
    here is the test
    https://youtu.be/CMxgGSIMBlo
    https://youtu.be/TS1UJefEQzg
    http://store2.up-00.com/2015-06/1434177638124.png
    http://store2.up-00.com/2015-06/1434177637893.png
    [url=http://www.up-00.com/?5aBg]http://www.up-00.com/?5aBg[/url][URL="http://www.up-00.com/"][/URL]
    [url=http://www.up-00.com/?8aBg]http://www.up-00.com/?8aBg[/url][URL="http://www.up-00.com/"][/URL]
    [url=http://www.up-00.com/][img]http://store2.up-00.com/2015-06/1434177637893.png[/img][/url][URL="http:/...
    [url=http://www.up-00.com/][img]http://store2.up-00.com/2015-06/1434177638124.png[/img][/url][URL="http:/...
    please any help
    its a new phone  age only a month 
    is it factory problem or software ???

    @Asef1
    here is the link
    http://support.sonymobile.com/global-en/contactUs/
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • HT5622 hey! i have a serious problem coming up which is that i am asked to enter my billing info even for free apps. why should i pay for apps which are free? please help me with this problem!

    hey! i have a serious problem coming up which is that i am asked to enter my billing info even for free apps. why should i pay for apps which are free? please help me with this problem! and in the billing info there is pop-up box saying i have accessed my account from didfferent computer but no i have been doing it from the same pc. please help me out.

    Tap Settings > General > International. Make sure the Region Format is correct.
    As for your Apple ID. Tap Settings > Store > Apple ID > iForgot
    Resetting your Apple ID may help.
    Congrats on your new iPad !!!

  • HT1349 The nice man Joseph Shen helped me with my google problem on my iPhone and worked for 2 days and now not working again please help me solve this problem were I can retrieve my messages on the I phone when I am not at home  on my wi Fi is the only t

    The nice man Joseph Shen helped me with my google problem on my iPhone and worked for 2 days and now not working again please help me solve this problem were I can retrieve my messages on the I phone when I am not at home  on my wi Fi is the only time it works correct. Bill. [email protected]  708 752  3667 

    http://lifehacker.com/5852948/what-to-do-if-youve-forgotten-your-iphones-passcod e

  • Please help me with this statement

    Hi gurus, glad to be back!
    Please help me with this XML processing statement. The XMl I get is like this,
    <EnumerationValue description="Motor Carriers-Operate w/o Certificate or Permit"
    effectiveDate="1859-01-01">
              <Text>26</Text>
              <AssociatedValue type="SeverityLevelText" code="MSD">
                   <Text>Misdemeanor</Text>
              </AssociatedValue>
              <AssociatedValue type="SeverityLevelText" code="PMD">
                   <Text>Petty Misdemeanor</Text>
              </AssociatedValue>
              <AssociatedValue type="StatuteOrdinanceRuleCite">
                   <Text>221.291.4</Text>
              </AssociatedValue>
    I need to get the number value from <Text>26</Text>, the attribute description and the text value of <Text>221.291.4</Text> inside one of those AssociatedValue node. The following is what I have, though I get the 26, I do not get the description and I get the Misdemeanor, Petty Misdemeanor concatenated with the text value of <Text>221.291.4</Text>. The output I get is this,
    26
    MisdemeanorPetty Misdemeanor221.291.4MisdemeanorPe
    4
    MisdemeanorPetty Misdemeanor221.291.4MisdemeanorPe
    My Code:
    declare
         v_xml sys.xmltype;
         v_sid     number;
         v_SText     varchar2(50);
    begin
         v_xml := sys.xmltype('<SimpleTypeCompanion>
              <EnumerationValue description="Motor Carriers-Operate w/o Certificate or Permit" effectiveDate="1859-01-01">
              <Text>26</Text>
              <AssociatedValue type="SeverityLevelText" code="MSD">
                   <Text>Misdemeanor</Text>
              </AssociatedValue>
              <AssociatedValue type="SeverityLevelText" code="PMD">
                   <Text>Petty Misdemeanor</Text>
              </AssociatedValue>
              <AssociatedValue type="StatuteOrdinanceRuleCite">
                   <Text>221.291.4</Text>
              </AssociatedValue>
         </EnumerationValue>
         <EnumerationValue description="Police Communication Equipment-Possession, Use-First Offense-M" effectiveDate="1859-01-01">
         <Text>4</Text>
         <AssociatedValue type="SeverityLevelText" code="MSD">
              <Text>Misdemeanor</Text>
         </AssociatedValue>
         <AssociatedValue type="SeverityLevelText" code="PMD">
              <Text>Petty Misdemeanor</Text>
         </AssociatedValue>
         <AssociatedValue type="StatuteOrdinanceRuleCite">
              <Text>299C.37.1(b)</Text>
         </AssociatedValue>
         </EnumerationValue>
         </SimpleTypeCompanion>');
         ---dbms_output.put_line(v_xml.getStringVal());
         declare
              cursor c_statutes is
              select ms.* from
              xmltable('for $s in /SimpleTypeCompanion/EnumerationValue/Text
                   let $sa := /SimpleTypeCompanion/EnumerationValue/AssociatedValue
                   let $sd := /SimpleTypeCompanion/EnumerationValue/@description
                   where $sa/@type = "StatuteOrdinanceRuleCite"
                   return
                        <MyStatutes>
                             <TextID>{$s}</TextID>
                             <SDesc>{$sd/@description}</SDesc>
                             <StatuteNumber>{$sa/Text}</StatuteNumber>
                        </MyStatutes>'
                   passing v_xml
                   columns
                   myTextID     number path '/MyStatutes/TextID',
                   mySDesc          varchar2(150) path '/MyStatutes/SDesc',     
                   myStatute     varchar2(50)     path '/MyStatutes/StatuteNumber'
              ) ms;
         begin
              for v_s in c_statutes loop
                   dbms_output.put_line(v_s.myTextID);
                   dbms_output.put_line(v_s.MySDesc);
                   dbms_output.put_line(v_s.myStatute);
              end loop;
         end;
    end;
    Please show me the correct way to get the result I want.
    Thanks a lot!
    Ben

    SQL>  var xmltext varchar2(4000)
    SQL> --
    SQL> begin
      2    :xmltext :=
      3  '<SimpleTypeCompanion>
      4     <EnumerationValue description="Motor Carriers-Operate w/o Certificate or Permit" effectiveDate="1859-01-01">
      5             <Text>26</Text>
      6             <AssociatedValue type="SeverityLevelText" code="MSD">
      7                     <Text>Misdemeanor</Text>
      8             </AssociatedValue>
      9             <AssociatedValue type="SeverityLevelText" code="PMD">
    10                     <Text>Petty Misdemeanor</Text>
    11             </AssociatedValue>
    12             <AssociatedValue type="StatuteOrdinanceRuleCite">
    13                     <Text>221.291.4</Text>
    14             </AssociatedValue>
    15     </EnumerationValue>
    16     <EnumerationValue description="Police Communication Equipment-Possession, Use-First Offense-M" effectiveDate="1859-01-01">
    17             <Text>4</Text>
    18             <AssociatedValue type="SeverityLevelText" code="MSD">
    19                     <Text>Misdemeanor</Text>
    20             </AssociatedValue>
    21             <AssociatedValue type="SeverityLevelText" code="PMD">
    22                     <Text>Petty Misdemeanor</Text>
    23             </AssociatedValue>
    24             <AssociatedValue type="StatuteOrdinanceRuleCite">
    25                     <Text>299C.37.1(b)</Text>
    26             </AssociatedValue>
    27     </EnumerationValue>
    28  </SimpleTypeCompanion>';
    29  end;
    30  /
    PL/SQL procedure successfully completed.
    SQL> set lines 150
    SQL> --
    SQL> select ms.*
      2    from xmltable
      3         (
      4           '/SimpleTypeCompanion/EnumerationValue'
      5           passing xmltype(:xmltext)
      6           columns
      7           DESCRIPTION            varchar2(32) path '@description',
      8           STATUTE_ID             number(2) path 'Text/text()',
      9           STATUTE_RULE_CITE      varchar2(16) path 'AssociatedValue[@type="StatuteOrdinanceRuleCite"]/Text/text()',
    10           MSD_TEXT               varchar2(10) path 'AssociatedValue[@code="MSD"]/Text/text()',
    11           PMD_TEXT               varchar2(10) path 'AssociatedValue[@code="PMD"]/Text/text()'
    12        ) ms
    13  /
    DESCRIPTION                      STATUTE_ID STATUTE_RULE_CIT MSD_TEXT   PMD_TEXT
    Motor Carriers-Operate w/o Certi         26 221.291.4        Misdemeano Petty Misd
    Police Communication Equipment-P          4 299C.37.1(b)     Misdemeano Petty Misd
    SQL>
    SQL>

  • Could you please help me make this query less complicated

    could you please help me make this query less complicated
    select t1.R_OBJECT_ID
    from dm_relation_sp a, ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID
    union all
    select t3.R_OBJECT_ID
    from ddt_resolution_sp t3
    where t3.R_OBJECT_ID in (select t2.child_id
    from dm_relation_sp t2
    where t2.parent_id in (select a.child_id
    from asud_fsk.dm_relation_sp a, asud_fsk.ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID))
    union all
    select t4.R_OBJECT_ID
    from ddt_resolution_sp t4
    where t4.R_OBJECT_ID in(
    select t3.child_id from dm_relation_sp t3
    where t3.parent_id in (
    select t2.child_id
    from asud_fsk.dm_relation_sp t2
    where t2.parent_id in (select a.child_id
    from asud_fsk.dm_relation_sp a, asud_fsk.ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID))
    and t3.relation_name = 'RESOLUTION_RELATION')
    union all
    select t5.R_OBJECT_ID
    from ddt_resolution_sp t5
    where t5.R_OBJECT_ID in
    (select t4.child_id
    from dm_relation_sp t4
    where t4.parent_id in(
    select t3.child_id from dm_relation_sp t3
    where t3.parent_id in (
    select t2.child_id
    from asud_fsk.dm_relation_sp t2
    where t2.parent_id in (select a.child_id
    from asud_fsk.dm_relation_sp a, asud_fsk.ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID))
    and t3.relation_name = 'RESOLUTION_RELATION')
    and t4.relation_name = 'RESOLUTION_RELATION')
    Edited by: user13025450 on 29.04.2010 16:23

    Hi,
    Welcome to the forum! You'll find that there are many qualified people (such as Tubby) willing to help you. Will you do what you can to help them? In order to simplify the query you posted,someone will first have to understand what it does, what the tables that it uses are like, and what tools you have to work with (that is, what version of Oracle, and any other software you are using). To actually test their ideas, people will need versions of your tables.
    Many people, if they spent enough time, might be able to figure out roughly what you are doing, make some tables themselves and test a solution. You can help with all of that. I assume you already know what the appliction is, and what this particular query is supposed to do: you don't have to figure out any of that, you just have to say it. You know what all your tables are, what the datatypes of all the columns are, and what kinds of data are in the tables: you don't have to guess at any of that.
    Describe what you're doing. Think about it: how do we know that
    SELECT  NULL
    FROM    dual;doesn't do what you want?
    Post CREATE TABLE and INSERT statements for a little sample data.
    Post the results that this query is supposed to produce from those results. (Is it producing the right output now? Then it should be easy to post the correct results.)
    Describe, as well as you can, how the present query is doing it.
    Format your existing code, so it's easy to see what the different branches of the UNION are, and what the main clauses are in each one.
    When posting formatted text (code or results) type these 6 characters
    \(all small letters, inside curly brackets) before and after each formatted section, to keep this site from compressing the spaces.
    Say what versions of Oracle (e.g. 10.2.0.3.0) and any other relevant software you are using.
    I know it's a lot of work, but it really helps. You can do it as well (probably better) than anyone else, and if you're unwilling to do it, why should anyone else be willing?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • IOS 7 very slow, i have many problem , exemple  download documents , typing doc to go .   Very slow, sometime no response , please help us for this error

    IOS 7 very slow, i have many problem , exemple  download documents , typing doc to go .   Very slow, sometime no response , please help us for this error,

    spacepilot wrote:
    i live in the WS10 / 0121 area and have been having similar problems. i have an up to 20mb services, but up to a month ago connected at 4800, then my line went dead for 6 days, and all indis could do was send me  new router, which came the day after my line was restored, but had dropped to 2418 and remained so for the past 3 to 4 weeks, then i dropped to 1963 yesterday, and 729 today.
    all speeds are far lower on my upto 20mb than they where on my upto 8mb link.
    foegot to add, i reported the problem via the report a problem link, which hopefully will be red by someone with  a firmer grasp of english that the normal call centre staff
    welcome to the forum    why don't you start your own subject and post the adsl stats from your router and also run btspeedtester and post the results and someone may be able to offer assistance
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Hello, i restored and updated my iphone 4 to the latest version of 5.1.1 and after that when i connect my mobile to i tunes all i see is a big rectangle and a apple logo on left and a small lock on right side please help me fix this problem.

    hello,
    i restored and updated my iphone 4 to the latest version of 5.1.1 and after that when i connect my mobile to i tunes all i see is a big rectangle and a apple logo on left and a small lock on right side please help me fix this problem.

    I sloved this issue by resting my phone from settings>general>reset>reset all settings...the problem will be fixed

Maybe you are looking for

  • HTML special characters in form input

    In my site I store form input in my database. Before I store the data, I parse out smart quotes, en dashes, and other extended special characters and convert them into HTHML quivalents such as ’ All is well and good until the user goes to edit their

  • Transfer photos from one iPhoto library to another

    I created a second iPhoto library and I want to copy photos from the original iPhoto library to the new iPhoto library.  Not sure how to do it.  Seems like I should be able to use "export" from the file menu, but when I get to where I select where th

  • Is there a way to download apps that require ios 7 on my ios 6 iPod Touch?

    So I came across this forum as many others, just trying to find some answers as to why I can't or how I could get ios 7 on my 4th gen ipod touch... So I guess the answer is no, not possible and I suppose I can understand the reason as someone stated

  • Asset Documnet neet to be reversed

    Hi All, Tranasaction Retirement without revenue has been posted agaisnt an Asset using tranasction type 20A. The posting had taken place only in Asset subledger and there is no posting happened in General ledger. Now we want to reverse the posting. W

  • Forums in iWeb?

    I would like to create my site but have people reply back through forums. Is that possible?