Odd compilation result

I have two files in a directory : SomeFrame.java and MvcTester.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class SomeFrame extends JPanel {
     JFrame myFrame;
     public void SomeFrame() {
          myFrame = new JFrame();
          myFrame.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
          myFrame.addWindowFocusListener(new WindowFocusListener() {
               public void windowGainedFocus(WindowEvent evt) {
                    // DO CODE WHEN WINDOW GAINS FOCUS
                    // BUT HOW MUCH CODE SHOULD GO HERE?
                    // JUST ENOUGH TO CALL A METHOD OF ANOTHER CLASS
                    // WHICH IS OUTSIDE THE 'VIEW' PART OF MVC
               public void windowLostFocus(WindowEvent evt) {
                    // DITTO ABOVE
}and
import javax.swing.*;
import java.awt.*;
public class MvcTester {
     public static void main(String args[]) {
          SomeFrame myFrame = new SomeFrame();
          myFrame.setSize(200,200);
          myFrame.setVisible(true);          
}when I then run "javac *.java" from the command line the result is that I get SomeFrame.class , MvcTester.class and SomeFrame$1.class
What is SomeFrame$1.class and how did it get there?
Thanks

hi all
i have a java program where in i try to retrieve
eve data from my database on the basis of the date .Use a PreparedStatement or be fscked as soon as a String contains a single quote.
here p_date is a column in data base of type
dd/mm/yyyy . i do not want to compare the time n
stuff . just would like to retrieve data on the basis
of date . also date variable is a string at the
moment do i need to convert it to somthing else . i
tried using LIKE but still no records are fetched .I have no idea what you're trying to do. And I'm not sure I want to know, this sounds like really horrible database design.
Look at PreparedStatement and SimpleDateFormat, that might help you.

Similar Messages

  • Odd compiler behavior (re: generics)

    Greetings, I am encountering a rather odd compiler generated error/warning with some code. The issue involves using an "independent" generic method of a raw-typed class. That is, the class has a variable T (call it Test<T> and has an instance method that returns ArrayList<String>. The problem: when a raw typed Test is used, the ArrayList returned is also raw. Here is some code to illustrate:
    import java.util.ArrayList;
    class Test<T>{
      ArrayList<String> getChildren(){
        return null;
      static void test1( Test t ){
        ArrayList<String> children = t.getChildren();
    // WARNING:                      ^^^^^^^^^^^^^^^^
    //Test.java:26: warning: [unchecked] unchecked conversion
    //found   : java.util.ArrayList
    //required: java.util.ArrayList<java.lang.String>
      static void test2( Test<?> t ){
        // OK, since we have the type variable set.
        ArrayList<String> children = t.getChildren();
      }If the type variable is specified as anything but raw, then it works fine.
    Is there some explantation for this behavior? My argument: since the return type of getChildren doesn't use the wildcard, why does the type argument of the implicit instance matter? Is this a compiler bug or just a "sharp edge" in the specification (perhaps even reasonable or necessary).
    I know the solution (or workaround). I am just seeking an explanation.
    Thanks,
    - Tim

    I found a bug evaluation (6358084) that was closed as not a bug where
    the evaluator wrote:
    All members, regardless of their dependence of type parameters, are erased.
    So the compiler is correct, the method call is unchecked.
    Still, I am ignorant of the reasoning for independent or fully described types.

  • [svn] 1625: Avoiding an NPE instead of blindly instantiating a new localization manager here when encoding the compilation result of a CSS file to a SWF to unblock QE .

    Revision: 1625
    Author: [email protected]
    Date: 2008-05-08 13:53:33 -0700 (Thu, 08 May 2008)
    Log Message:
    Avoiding an NPE instead of blindly instantiating a new localization manager here when encoding the compilation result of a CSS file to a SWF to unblock QE.
    Doc: No
    QE: Yes
    Bugs: SDK-15490 - Compiler gives nullpointer in encode of incremental compile if benchmark is set to true
    Reviewer: Paul
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15490
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • Odd Compiler Error in JSPs

    I found a really odd compiler problem today in my JSPs. When I tried to do a rebuild on my JSPs, all of them came up with the exact same error. Basicall it said that I could not have a -- within a comment. This error was reported on three lines and the editor showed three sections as having problems (using a squiggly yellow line). However, none of the pages had anything like what was mentioned on those lines.
    It turned out that the real problem was that the web.xml file had the error. I had put some '--' in a comment section and when the compiler parsed the web.xml file and found the problem, it failed to tag that file as the source but rather ended up showing the JP as being the source.
    Took a bit if time to figure that one out.
    Bill Berks

    You can file a bug at http://bugs.sun.com/services/bugreport/index.jsp

  • Odd compile errors using a struct in a vector

    I am following Accelerated C++ by Koenig and Moo to learn C++, using Eclipse as my IDE and the MinGW tool chain. Chapter 4 teaches about the struct concept using a pretty simple multi-file example program which emulates reading in a series of student grades and outputs the averages. The struct it defines is called Student_info. Here is Student_info.h:
    #ifndef STUDENT_INFO_H_GUARD
    #define STUDENT_INFO_H_GUARD
    #include <iostream>
    #include <string>
    #include <vector>
    struct Student_info {
    std::string name;
    double midterm, final;
    std::vector<double> homework;
    bool compare(const Student_info&, const Student_info&);
    std::istream& read(std::istream&, Student_info);
    std::istream& read_hw(std::istream&, std::vector<double>&);
    #endif /* STUDENT_INFO_H_GUARD */
    There are no errors associated with compare, read or read_hw.
    The problem I am having is that even though the simple variable declaration below seems to work,
    #include "Student_info.h"
    int main() {
    vector<Student_info> students;
    Student_info record;
    string::size_type maxlen = 0;
    in the sense that the Eclipse code editor signals via i) its color coding that it has found the data type; ii) when I mouseover, it shows me the underlying Student_info definition in the hover box; and iii) the code associated with the variable "record" doesn't generate errors.
    However, when I try to use the students vector within main(), I get 'could not be resolved' errors on the property names or 'invalid arguments' for functions which try to pass the variables. For example,
    for(vector<Student_info>::size_type i=0; i!=students.size(); ++i) {
    cout << students[i].name
    << string(maxlen+1 - students[i].name.size(), ' ');
    produces a "Method 'size' could not be resolved" error and a "Field 'name' could be resolved" error.
    It's very odd to me, as I said, because mouseover of the vector students declaration at the beginning of main() produces a hover box with the correct struct definition, indicating the include file is being found and contains the intended definition with the 'name' property defined as a string.
    I've been trying to solve this for a couple of days and have searched the web and this site, as well as going over all the code many times. The code seems to be exactly what is in the book and it's not too difficult to figure out what it is supposed to be doing. I haven't been able to find a similar error description here or elsewhere by Googling. These errors prevent the project from compiling and so I can't precede. I'm hoping someone can describe what might possibly cause such a thing.
    Here's a shortened version of the file with main in it:
    #include <algorithm>
    #include <iomanip>
    #include <ios>
    #include <iostream>
    #include <string>
    #include <vector>
    #include <stdexcept>
    #include "Student_info.h"
    //say what standard library names we use
    using std::cin; using std::setprecision;
    using std::cout; using std::sort;
    using std::domain_error; using std::streamsize;
    using std::endl; using std::string;
    using std::max; using std::vector;
    int main() { // begin main
    vector<Student_info> students;
    Student_info record;
    string::size_type maxlen = 0;
    //read and store all the records, and find the length
    // of the longest name
    while(read(cin, record)) {
    maxlen = max(maxlen, record.name.size());
    students.push_back(record);
    //alphabetize the records
    sort(students.begin(), students.end(), compare);
    for(vector<Student_info>::size_type i=0; i!=students.size(); ++i) {
    // write the name, padded on the right to maxlen+1 chars
    cout << students[i].name
    << string(maxlen+1 - students[i].name.size(), ' ');
    //compute and write the grade
    cout << endl;
    return 0;
    } // end main
    Here are the 'read' functions, which are in a separate file from main and don't seem to be producing any errors:
    #include "Student_info.h"
    using std::istream; using std::vector;
    istream& read_hw(istream& in, vector<double>& hw) {
    if (in) {
    // get rid of previous contents
    hw.clear();
    // read homework grades
    double x;
    while (in >> x)
    hw.push_back(x);
    // clear the stream so that input will work for the
    // next student
    in.clear();
    return in;
    istream& read(istream& is, Student_info s) {
    // read and store the student's name and midterm and final exam
    is >> s.name >> s.midterm >> s.final;
    read_hw(is, s.homework);
    return is;
    bool compare(const Student_info& x, const Student_info& y) {
    return x.name < y.name;
    }

    Do you mind to try:
    for(unsigned i=0; i < students.size(); ++i)
    instead of :
    for(vector<Student_info>::size_type i=0; i!=students.size(); ++i)

  • Can't load driver page for OfficeJet Printer ... "HP compiling results" message lasts forever

    Something is going really bad with HP drivers webpage. I can't go beyond "HP is compiling your results. This could take up to 3 minutes, depending on your computer and connection speed. Thank you for your patience". I can't go thru. Thanks for any advise. Please point me to the complete link to download the full driver for the printer. Diego

    I am having the same problem trying to download the driver for my OfficeJet Pro 6830. Gets as far as "HP is compiling your results. This could take up to 3 minutes, depending on your computer and connection speed. Thank you for your patience."

  • Odd compiler behavior with annotations

    Hi all,
    I apologize if this is the wrong forum, but the JDev code editor behavior is a significant part of this. I have an annotation type, TestParameters. If I write the following line:
    TestParameters params = (TestParameters) someClass.getAnnotation(TestParameters.class);then the cast is greyed out in the code editor, and code assistance tells me it's unnecessary. Since the signature of getAnnotation is
    <A extends Annotation> A getAnnotation(Class<A>)this is what I'd expect; I really shouldn't need that cast.
    However, if I take the cast out, although nothing is marked red in the code editor, I get a compiler error:
    Error(32,29): incompatible types; found: interface java.lang.annotation.Annotation,
    required: annotation annotation.TestParametersWhat's going on here? I'm 95% sure the code should compile without the cast.
    Thanks much,
    Avrom

    Aha! You're right, what it prints out is not what I'd expected:
    class $Proxy3I was using ojc, but javac gives the same results (including the compiler error: "incompatible types").
    Not entirely sure what's going on here...either the Javadoc for Class.getAnnotation() and the JDev code assistance is both wrong, or something odder is going on.
    Message was edited by:
    Avrom
    ha! Found the issue.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5104826
    (This was closed by Sun as not a bug.)
    The problem was that someClass was declared as type Class, rather than Class<?>. I guess my understanding of generics wasn't quite up to snuff; I'd been assuming that the declarations
    SomeType myObj;and
    someType<?> myObj;were identical, since you can't access the wildcard in the class containing myObj, but apparently the compiler doesn't see them that way. My bad.

  • Odd SQL results

    I have an SQL statement that shows some odd behavior. When I run this:
    SELECT vfn.cat
    INTO v_mult_category
    FROM vps_fishery_ner vfn, valid_fishery vf
    WHERE vfn.plan = vf.plan
    AND vfn.cat = vf.cat
    AND vf.permit_year = p_Fishing_Year
    AND vf.moratorium_fishery = 'T'
    AND vfn.vp_num = p_permit_number
    AND vfn.ap_year = p_Fishing_Year
    AND vfn.plan = 'MUL'
    AND date_issued = (SELECT MAX(date_issued)
    FROM vps_fishery_ner vfn
    WHERE vfn.vp_num = p_Permit_Number
    AND vfn.ap_year = p_Fishing_Year);
    This is supposed to return the category 'A' for the given permit number and fishing year.
    But it returns nothing. But when I add TRUNC to both sides of the date_issued line, as seen below, it does return the 'A'
    SELECT vfn.cat
    FROM vps_fishery_ner vfn, valid_fishery vf
    WHERE vfn.plan = vf.plan
    AND vfn.cat = vf.cat
    AND vf.permit_year = 2010
    AND vf.moratorium_fishery = 'T'
    AND vfn.vp_num = 111111
    AND vfn.ap_year = 2010
    AND vfn.plan = 'MUL'
    AND TRUNC(date_issued) = (SELECT MAX(TRUNC(date_issued))
    FROM vps_fishery_ner vfn
    WHERE vfn.vp_num = 111111
    AND vfn.ap_year = 2010);
    I don't know why this would work. If truncating both sides works, shouldn't not truncating either side return a value?

    Well your subquery to resolve the maximum date doesn't have all of the clauses that are in the main body of the query. So it is generating a maximum based upon a larger result set then the dates you are comparing it with.
    By coincidence, the maximum date is on the same day as one of the records in the main body of the query, so the truncated dates match. but it is at a different time, so the direct comparison doesn't work.
    This should work
    SELECT vfn.cat
    INTO v_mult_category
    FROM vps_fishery_ner vfn, valid_fishery vf
    WHERE vfn.plan = vf.plan
    AND vfn.cat = vf.cat
    AND vf.permit_year = p_Fishing_Year
    AND vf.moratorium_fishery = 'T'
    AND vfn.vp_num = p_permit_number
    AND vfn.ap_year = p_Fishing_Year
    AND vfn.plan = 'MUL'
    AND date_issued = (SELECT MAX(date_issued)
    FROM vps_fishery_ner vfn, valid_fishery vf
    WHERE vfn.plan = vf.plan
    AND vfn.cat = vf.cat
    AND vf.permit_year = p_Fishing_Year
    AND vf.moratorium_fishery = 'T'
    AND vfn.vp_num = p_permit_number
    AND vfn.ap_year = p_Fishing_Year
    AND vfn.plan = 'MUL');

  • Infinite time on compiling results

    A known issue with Support pages. Reported and being worked on.

    Hi guys, I recently downgraded from Windows8 to 7(64) bit and accidently deleted the recovery drive,So i headed over to the HP official website to download the missing drivers. I selected my device and my OS and when i clicked on OK, the usual " HP is compiling your results. This could take up to 3 minutes, depending on your computer and connection speed. Thank you for your patience" came about. I waited, 2mins, 3 mins, 5 mins, 10 mins, 20mins, 1hr......But nothing ever came after that. Without the drivers, i cant do anything. Please let me know what's wrong or what i am doing wrongThank you

  • Memory Error When Compiling Resulting in Program Termination

    When I compile my file, it prints the following message
    "There is not enough memory for this task. Quit one or more
    programs to increase available memory and then try again."
    I can rule out memory and incorrectly named files:
    * I have 1 GB memory with no other programs open after a
    clean reboot when I get this message. My virtual memory is adequate
    as well. I also have 20 GB free drive space on C drive and 15 GB
    free on the network drive.
    * I have no spaces in the file names; all spaces are replaced
    with underscores.
    Any idea of what can cause this or how to fix this?

    Looks like the classes that you are using were compiled with a different JDK version.
    Try using JDeveloper 10.1.3 - which has built in JDK 5.

  • Odd du Result

    When booted into my OS X 10.5.8 volume I can run this "du" command
    sudo du -h -d 1 /
    without problems. When I run the same command when booted into my OS X 10.6.3 volume, the result is "du: Can't follow symlink cycle from /dev/fd/3 to /dev/fd/3". Under both OS X 10.5 and OS X 10.6 the command "ls -la /dev/fd" gives this result:
    crw--w---- 1 me tty 16, 0 Jun 24 21:17 0
    crw--w---- 1 me tty 16, 0 Jun 24 21:17 1
    crw--w---- 1 me tty 16, 0 Jun 24 21:17 2
    drw-r--r-- 30 me me 1020 Jun 24 10:39 3
    dr--r--r-- 1 root wheel 0 Jun 24 10:38 4
    and the command "ls /dev/fd/3" gives the result "ls: /dev/fd/3: Bad file descriptor".
    Can anyone explain why the "du" command behaves differently on the two systems? Thanks for any comments. (I'll be embarrassed if this is a bug that was fixed in OS X 10.6.4. On the other hand, if it's an actual bug that's still in 10.6.4, I'll be glad to report it.)

    g_wolfman wrote:
    It's probably not a bug with "du" per se.
    If you look at the results from "ls" in your first post, you'll notice that fd/3 and fd/4 are both listed as directories, but their file permissions are rw-r--r-- and r--r--r--. Without the "x" permission, the directories can't be traversed.
    Also, I have no idea why your fd/3 has permissions other than root:wheel, not to mention 30 links. Well, I can see how a program with your uid and gid could get a file descriptor...but I'm not sure more than one link to a fd is supposed to even exist at the same time.
    I agree that the situation I (and at least one other person) see is unusual. To see a type "d" on anything at the "bottom level" of entries in /dev is surprising. However, "du" handled it fine under OS X 10.5.8. Something changed with OS X 10.6.
    I checked another Mac running OS X 10.6.3. In /dev/fd entries 0, 1, and 2 were of type "c", owned by the user, while 3, 4, and 5 were of type "d", owned by root/wheel.
    It's true that the lack of "x" permission prohibits a directory from being "traversed", but the "r" permission means that you can still view the names of files in such a directory.
    Curiouser and curiouser: Now on my Mac /dev/fd/1 shows a type of "p" ("FIFO").

  • Odd compile errors from /opt/sunstudioceres/prod/include/CC/Cstd/memory

    I'm trying to compile an MPI program using Sun Studio Ceres and I'm getting the errors below. The code compiles fine using g++ and openMPI. The non-MPI version of the code compiles fine with the Sun tools.
    "/opt/sunstudioceres/prod/include/CC/Cstd/memory", line 798: Error: "," expected instead of "(".
    "/opt/sunstudioceres/prod/include/CC/Cstd/memory", line 798: Error: Type name expected instead of "(".
    "/opt/sunstudioceres/prod/include/CC/Cstd/rw/locimpl", line 291: Error: Identifier expected instead of "(".
    Thanks in advance,
    Edward

    The header files for the default libCstd have in several places used identifiers like "X" or "T" or "size" that are reserved for programmer (your) use. Technically, the sequence
    #define X something
    #include <standard_header>
    is valid C++, but could break using the libCstd implementation.
    This problem was captured in two bug reports:
    6785883 Template parameter names in libCstd clash with user macros
    6797621 More template parameter names in libCstd clash with user macros
    These bugs should be fixed in the next patch released for Sun Studio 12, and are fixed in the Sun Studio Express release coming out in March.

  • Odd search results

    I have a project done for someone named Adam. This name appears in captions. When I do a search for "Adam" I get those pics plus two additional pics that do not have anything close to that text string in any visible field (show all IPTC).
    This is not the first time this has happened. Have others had similar problems?
    Thanks

    Brentbin wrote:
    I have a project done for someone named Adam. This name appears in captions. When I do a search for "Adam" I get those pics plus two additional pics that do not have anything close to that text string in any visible field (show all IPTC).
    hi, Brentbin
    are they in a stack?
    victor

  • Odd GREP results (CS4 Mac, CS3 PC)

    Hi all
    I'm using a series of expressions strung together in a JavaScript to format the copy supplied for a Contents page. The copy is supplied as basically a list separated by returns, eg;
    Jeremy Smith
    Made Up Name, National Gallery, London
    Brian Smith
    Blah blah blah, I like cheese
    and I am using GREP to format it as follows;
        (tab)    Jeremy Smith          (tab)         Made Up Name, National Gallery, London         (tab)              00
        (tab)    Brian Smith             (tab)         Blah blah blah, I like cheese                           (tab)               00 
    My expressions recognise the first line (the name) and the article title and store them as "found text" and then spit them out again with the returns deleted and replaced with the appropriate tabs;
    Find what: ([\w [:punct:]]+)(\r)([\w [:punct:]]+)(\r)
    Change to: \t$1\t$3\t00  (00 being the placeholder page number)
    This does work but what happens is the found text is not output as it is found - the italic is not correct. The above example comes out as;
        Jeremy Smith    Made Up Name, National Gallery, London    00                   (incorrectly formatted letter in red)
        Brian Smith    Blah blah blah, I like cheese    00
    The above expression is one of many I run on this page but I have extracted this out and tested it on its own and it is this expression that is causing the problem - I can't see what the hell is happening! These are other examples of where it happens but hopefully the above example will be enough to give the resident GREP experts enough to go on if they are kind enough to give it a look.
    Any suggestions appreciated.
    thanks,
    Iain

    Eugene - you're right, making all the punctuation italic first gets round the problem. But it has made the last letter before the punctuation in a roman phrase italic. I don't think I can use that method in our job anyway as it can't all be changed back to the same style (bold or italic etc). The formatting of the page is such that punctuation could appear in either bold or bold italic so a general "make all punctuation italic and then back to roman again" wouldn't do it.
    I suppose I could change all the punctuation following an italic character to italic and red and then do my main GREP and then put all the red punctuation back to roman (and black) - which means when we apply the paragraph style it shoudl all work out. I'll give that a try after lunch.

  • Need help on one odd query results...

    Hi Guys,
    I need your help,
    Requirement is :- Suppose we have got Below titles in one table :-
    HULK
    THE INCREDIBLE HULK - 2001 (DO NOT USE)
    REVERSE HULK
    INCREDIBLE HULK U/A
    BRING ME HEAD OF THE HULK
    JENNIFER JASON LEIGH, HULK HOGAN
    HULK 2
    BRIDE OF THE INCREDIBLE HULK
    HULK HOGAN, DAVID WILLEY, NATASHA BEDINGFIELD
    INCREDIBLE HULK #03 (1979/80)
    HULK HOGAN'S CELEBRITY CHAMPIONSHIP WRESTLING #01 (2008/09)
    Now the requirement is :-
    O/p Should be in below order without have duplicate records
    HULK first then
    HULK % then
    %HULK%.
    O/p :-
    HULK
    HULK 2
    HULK HOGAN, DAVID WILLEY, NATASHA BEDINGFIELD
    HULK HOGAN'S CELEBRITY CHAMPIONSHIP WRESTLING #01 (2008/09)
    THE INCREDIBLE HULK - 2001 (DO NOT USE)
    REVERSE HULK
    INCREDIBLE HULK U/A
    BRING ME HEAD OF THE HULK
    JENNIFER JASON LEIGH, HULK HOGAN
    BRIDE OF THE INCREDIBLE HULK
    INCREDIBLE HULK #03 (1979/80)
    How can we do it using sql query ? Is it possible to do it one query?
    Or need to use PL/SQL table etc?
    There should be no duplicate if we use more than one query or single query ..
    Can you help?

    tappusingh wrote:
    O/p Should be in below order without have duplicate records
    HULK first then
    HULK % then
    %HULK%. Maybe something like:
    SQL> WITH test_tab
      2         AS (SELECT   'HULK' col FROM DUAL
      3             UNION ALL
      4             SELECT   'THE INCREDIBLE HULK - 2001 (DO NOT USE)' FROM DUAL
      5             UNION ALL
      6             SELECT   'REVERSE HULK' FROM DUAL
      7             UNION ALL
      8             SELECT   'INCREDIBLE HULK U/A' FROM DUAL
      9             UNION ALL
    10             SELECT   'BRING ME HEAD OF THE HULK' FROM DUAL
    11             UNION ALL
    12             SELECT   'JENNIFER JASON LEIGH, HULK HOGAN' FROM DUAL
    13             UNION ALL
    14             SELECT   'HULK 2' FROM DUAL
    15             UNION ALL
    16             SELECT   'BRIDE OF THE INCREDIBLE HULK' FROM DUAL
    17             UNION ALL
    18             SELECT   'HULK HOGAN, DAVID WILLEY, NATASHA BEDINGFIELD' FROM DUAL
    19             UNION ALL
    20             SELECT   'INCREDIBLE HULK #03 (1979/80)' FROM DUAL
    21             UNION ALL
    22             SELECT   'HULK HOGAN''S CELEBRITY CHAMPIONSHIP WRESTLING #01 (2008/09)'
    23               FROM   DUAL)
    24    -- " end of test data "
    25    SELECT   DISTINCT col
    26      FROM   test_tab
    27  ORDER BY   CASE
    28                WHEN col = 'HULK' THEN 1
    29                WHEN col LIKE 'HULK%' THEN 2
    30                WHEN col LIKE '%HULK%' THEN 3
    31                ELSE 4
    32             END, col
    33  /
    COL
    HULK
    HULK 2
    HULK HOGAN'S CELEBRITY CHAMPIONSHIP WRESTLING #01 (2008/09)
    HULK HOGAN, DAVID WILLEY, NATASHA BEDINGFIELD
    BRIDE OF THE INCREDIBLE HULK
    BRING ME HEAD OF THE HULK
    INCREDIBLE HULK #03 (1979/80)
    INCREDIBLE HULK U/A
    JENNIFER JASON LEIGH, HULK HOGAN
    REVERSE HULK
    THE INCREDIBLE HULK - 2001 (DO NOT USE)
    11 rows selected.
    SQL>Regards,
    Jo

Maybe you are looking for

  • Problem in downloading extension

    i have tried to download the archieve of 'java wireless extension' 10g of JDeveloper(file namely jwe.zip). the working link for download was http://otn.oracle.com/tech/wireless/tools/jwe/jwe.zip even after several tries when i come with the downloade

  • Flat Panel Burn ?

    Hi All Being new to using a flat panel screen can I ask what maybe a really stupid question ? Can an LCD screen suffer fron screen burn as a CRT does and can ? Thanks

  • Select command on sqlplus

    Hello, We have our first Oracle database here, and I'm finding some problems to deal with sqlplus. When I start a select command to list the rows from a table which has 567 rows, I have a very big answer and I'm not able to see the first columns... I

  • Oracle Forms Builder 10g release 2 documentation?

    I'm trying to locate a book about Oracle Forms Builder 10g release 2. I'm needing a beginner's guide. I've seen the advanced techniques one, but I can't seem to find one for someone that is just starting out. Does anyone have any suggestions?

  • Why can't I take the photos off my phone manually?

    I have an Iphone. I'd like to just take the photos, videos and audio off the phone and put in a folder on an external hard drive. 1. Why can't I do this through Finder? 2. Is there an easy solution?