Handling between in Case

Hi All,
How to handle between in Case?
(case emp_type
* when between 1 and 3 then '01'*
* when between 2 and 4 then '04'*
* when between 4 and 5 then '05'*
* end*
above statement is giving error.
one way is:
(case emp_type
when emp_type between 1 and 3 then '01'
when emp_type between 2 and 4 then '04'
when emp_type between 4 and 5 then '05'
end
Any other solutions ?
Thanks.

Are you using SQL or PL/SQL?
Your example isn't working in SQL...
Your example looks like some mix?
Can you post some sample data?
MHO%xe> with emp as
  2  (select 1 emp_type from dual union all
  3   select 2 emp_type from dual union all
  4   select 3 emp_type from dual union all
  5   select 4 emp_type from dual union all
  6   select 5 emp_type from dual
  7  )
  8  --- actual query starts here
  9  select (case
10          when emp_type between 1 and 3 then '01'
11          when emp_type between 2 and 4 then '04'
12          when emp_type between 4 and 5 then '05'
13          end )
14  from emp       
15  ;
(C
01
01
01
04
05
5 rijen zijn geselecteerd.
MHO%xe> with emp as
  2  (select 1 emp_type from dual union all
  3   select 2 emp_type from dual union all
  4   select 3 emp_type from dual union all
  5   select 4 emp_type from dual union all
  6   select 5 emp_type from dual
  7  )
  8  --- actual query starts here
  9  select (case emp_type  -->> Gives Error
10          when emp_type between 1 and 3 then '01'
11          when emp_type between 2 and 4 then '04'
12          when emp_type between 4 and 5 then '05'
13          end )
14  from emp;
        when emp_type between 1 and 3 then '01'
FOUT in regel 10:
.ORA-00905: missing keywordhttp://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions004.htm#sthref2637
PL/SQL
MHO%xe> begin
  2  for rec in
  3  (
  4  with emp as (select 1 emp_type from dual union all
  5               select 2 emp_type from dual union all
  6               select 3 emp_type from dual union all
  7               select 4 emp_type from dual union all
  8               select 5 emp_type from dual
  9              )
10             --- actual query starts here
11             select *
12             from   emp       
13  )
14  loop
15     case
16     when rec.emp_type between 1 and 3 then dbms_output.put_line('01');
17     when rec.emp_type between 2 and 4 then dbms_output.put_line('04');
18     when rec.emp_type between 4 and 5 then dbms_output.put_line('05');
19     end case;
20  end loop;
21  end;
22  /
01
01
01
04
05
PL/SQL-procedure is geslaagd.http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/case_statement.htm#LNPLS01304
Edited by: hoek on May 17, 2009 3:34 PM adds doc links

Similar Messages

  • Picture file handling between Aperture and Photoshop

    Hello
    I have transferred several photos via "edit in external editor" from aperture to photoshop.
    In photoshop I made different operations:
    a) just looking (no special manipulations) -> no saving
    b) manipulations on a particular photo -> saving via "save" in PS
    c) combination of different photos -> saving via "save as" in PS
    Meanwhile I have learned, that option C just saves the file in the file system, but does not update the database entry in aperture. I have also found different versions of photos in the file system, which I had just opened in PS (case a). "File system" means in that case, that they are under the folder "masters", when I drill down the Aperture Data File. Case b seems to work OK.
    I have now different questions:
    why are photos, which I have just opened in PS, still in the file system (even when I have deleted them) in Aperture? Seems that those versions are kept. Is'nt that blowing up my database? (case a)
    when I reimport pictures from case c, are they stored a second time in aperture or does the aperture database point to the particular file (because the file already is under the folder "masters")
    Any feedback to data handling between PS and Aperture?
    Thanks in advance,
    Vanillia

    IMO today you are very likely to be best served by the inexpensive Photoshop Elements. However, Adobe's world is changing at the end of this month (March 27) with official announcement of MacIntel versions. You may want to re-ask this question then, being careful of April Fool's Day wags.
    http://www.macworld.co.uk/news/index.cfm?RSS&newsID=17399
    Also, version 2 of Aperture is expected in the next few months, and I will be surprised if simple color tools such as you describe are not included.
    -Allen Wicks

  • SFTP Seeburger adapter - Could not find channel for report handling between

    Hello Friends ,
    We have R3 -> PI-> SFTP scenario . The messages are transferred successfully and the file is successfully received at the receiving end . But when we do communication channel monitoring , we see errors in Receiver CC . The Reciever CC contains SFTP adapter (Seeburger) . Recently the Seeburger adapter is upgraded and the below error has started occuring then onwards .
    Error Message which we see in CC monitoring for Receiver CC (SFTP) is as below .
    Initiation of Transmission Report( job id: da405030-30c6-11df-8b6e-797b8921162c milestone: 290) failed! Exception occured: Error while preparing XI message. Error: Could not find channel for report handling between parties: fromParty, toParty: Itella) - com.seeburger.xi.connector.fw.ConfigurationException: Error while preparing XI message. Error: Could not find channel for report handling between parties: fromParty, toParty: Itella) [3/16/10 8:40 AM]
    Could experts help me ...
    Thanks for your time .
    Regards,
    Laxman Nayak .

    Hi,
    I also have the error you mentioned but we're implementing the Seeburger SFTP adapter for the first time.
    I've requested transport acknowledgements in my ABAP proxy and have checked the 'Deliver transmission report' flag in the adapter but I don't know what else I must do.
    Any help would be greatly appreciated.
    Thanks,
    Alan

  • PLs. find link between a case and its activities?

    Hi ,
    I need a function module or a table relation  in order to make a link between a case and its activities.
    and also want to know the relation between *crmd_orderadm_h-guid with SCMGRECP01-PHIO_ID. *
    Please help me .

    Hi,
    you can try vice versa
    CRMD_CMG_CASE_AT-CASE_GUID = SCMG_T_CASE_ATTR-CASE_GUID
    SCMG_T_CASE_ATTR-EXT_KEY =  CRMD_ACTIVITY_H-EXTERN_ACT_ID 
    CRMD_ACTIVITY_H-GUID =
    CRMD_ORDERADM_H-GUID
    Regards,
    Sumeet

  • Synchronous message handling between OSB and MQ

    Hi,
    I have a requirement to have a PS in OSB that gets some XML data from another application.
    The PS implementation has to be synchronous.
    The interface is like
    External Application<->OSB PS<->MQ<->OSB <-> External Application
    Can anyone help me with the request-reply implementation(i.e. synchronous call handling) between OSB and MQ.
    Required functionality :
    OSB will get XML data from the external application,will do the data transformation to make it compatible with MQ interface and will then send data to MQ and will wait for the reply from MQ that it then sends back to the external application after transformation.
    Queries:
    How to correlate two messages i.e. request msg to mq and reply msg from mq in OSB?
    What kind of Proxy Service implementation is required to have such functionality?
    If someone can help me with similar kind of implementation,it will be of great help to me.
    Thanks in advance

    OSB support this pattern out of the box . You can implement the MessageID pattern as specified in this link:
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/interopjms/MsgIDPatternforJMS.html
    When you configure the business service to use MessageID as the correlation pattern, the following happens under the hood:
    1. Business service sends request to the MQ request queue. The MQ JMS provider sets the message ID on the message and this is returned to the bs. The business service also sets the reply queue details in the JMSReplyTo Header in the request.
    2. The business service then waits for a response message which has a correlationID equal to the messageID in the request message.
    3. The system which processes the request from the MQ should set the correlation ID of the response to the same value as the Message ID in the request.
    4. The business service process the reply if it is received before the timeout interval. No need to purge the queues for message arriving out after timeout since OSB does this automatically for you.
    A point to note here is that if you deploy this in a cluster , you need to create 'N' local MQ queues for reply, where N is same as the number of managed servers in the cluster. Else you could lose replies in a scenario where the reply for a request sent by man server 'X" is processed by man server "Y". The request-response correlation tables are maintained internally on man server memory. Since Y had no clue of the requests sent in X it would just discard the reply received.
    So create dedicate queues for each man server and specify them in the business service definition.
    Another key thing for this to work would be to get right the MQ setup between the queue manager in OSB domain and the remote system which process the MQ requests. A simple setup would be for you to create all reply queues as local queues under your OSB queue manager and create only a transmission queue with the same name as your OSB queue manager in the remote system. You need to ask the remote system to do the MQOpen with the ReplyToQueue and ReplyToQM names for queue and queue manager names. This will put the replies to the transmission queue to your QM and through it can reach the right reply queue.
    Edited by: atheek1 on Mar 29, 2010 7:50 AM

  • Can anybody explain me difference between test cases and test data

    Hi All,
    Can anybody explain me difference between test cases and test data.
    Testing procedure for FS.
    Thanks & Regards,
    Smitha

    Hi,
    Test case is a procedure how to do the testing of particular functionality and it consists the data that to be given for testing a particular requirement of the given Functional Spec and it also consists the result whether the desired functionality is fullfilling or not.
    Regards
    Pratap

  • Re: FORTE Libraries handling (between interfaces andimplementations) q

    From [email protected] Wed Feb 24 07:24:54 1999
    Subject: FORTE Libraries handling (between interfaces and implementations)
    question
    Hi,
    When a plan gets distributed as library, a '.sl' file is generated, as well as a
    pex file and some header files.
    When we need that library, we 'should' include that generated pex file in the
    workspace used for the distribution.
    What's the impact of keeping the original ('implementation'?) plan for the
    library, and not replacing it with the generated
    pex file ?
    J-Paul Gabrielli & Charles Abecassis
    Sema DTS
    The result would be that you're not using the library version of the plan.
    Instead, you'll have a separate copy built into your image repository
    or executable. In other words, it will be as if you'd never generated
    the plan as a library.
    Mike Schilling
    Forte Software
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    From [email protected] Wed Feb 24 07:24:54 1999
    Subject: FORTE Libraries handling (between interfaces and implementations)
    question
    Hi,
    When a plan gets distributed as library, a '.sl' file is generated, as well as a
    pex file and some header files.
    When we need that library, we 'should' include that generated pex file in the
    workspace used for the distribution.
    What's the impact of keeping the original ('implementation'?) plan for the
    library, and not replacing it with the generated
    pex file ?
    J-Paul Gabrielli & Charles Abecassis
    Sema DTS
    The result would be that you're not using the library version of the plan.
    Instead, you'll have a separate copy built into your image repository
    or executable. In other words, it will be as if you'd never generated
    the plan as a library.
    Mike Schilling
    Forte Software
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • RE: FORTE Libraries handling (between interfaces andimplementati ons)

    Charles..
    If you are talking about different repositories in a single environment, I
    am guessing the uuid of the pex file has to be the same. I am not sure if
    the pex file forte creates will have the same uuid as the pex file you
    obtain when you export with uuid from fscript. If uuid is important for
    installed libraries, which I think is true, then there-in lies the impact!!
    Cheers!!
    -Ravi Kalidindi
    Born Info Svcs Group
    -----Original Message-----
    From: Charles Abecassis [SMTP:[email protected]]
    Sent: Wednesday, February 24, 1999 9:18 AM
    Cc: '[email protected]'
    Subject: FORTE Libraries handling (between interfaces and
    implementations) question
    Hi,
    When a plan gets distributed as library, a '.sl' file is generated, as
    well as a
    pex file and some header files.
    When we need that library, we 'should' include that generated pex file in
    the
    workspace used for the distribution.
    What's the impact of keeping the original ('implementation'?) plan for the
    library, and not replacing it with the generated
    pex file ?
    J-Paul Gabrielli & Charles Abecassis
    Sema DTS
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    thanks a lot.
    But when the plan is distributed, there's no way of revealing the code that made it, isn't it ?
    -----Message d'origine-----
    De: Wang, Tien [SMTP:[email protected]]
    Date: mercredi 24 fevrier 1999 18:26
    A: 'Charles Abecassis'; 'Kalidindi, Ravi CWT-MSP'
    Cc: '[email protected]'
    Objet: RE: FORTE Libraries handling (between interfaces and implementati ons) question
    Hi Charles & Ravi,
    Another aspect of this subject is:
    Many times, libraries are designed to give to someone without revealing
    your code. If you decide to have the original project included, this
    means your program will use it as a supplier plan. It also implies your
    program will have knowledge of the original project and its parent
    supplier plans and so on.
    If you don't care about revealing your original code and dragging all
    the related projects into your program, it's fine. It has advantage:
    if you decide to change something in your original project, you can just
    run it without re-making distribution as a library.
    However, if your original project seems pretty stable and can be shared
    by other application, making it as a library is not a bad idea.
    Hope this helps.
    Regards,
    Tien Wang
    Indus Consultancy Services
    (201) 261-3100 ext 236
    [email protected]
    www.indcon.com
    From: Kalidindi, Ravi CWT-MSP[SMTP:[email protected]]
    Reply To: Kalidindi, Ravi CWT-MSP
    Sent: Wednesday, February 24, 1999 11:47 AM
    To: 'Charles Abecassis'
    Cc: '[email protected]'
    Subject: RE: FORTE Libraries handling (between interfaces and
    implementati ons) question
    Charles..
    If you are talking about different repositories in a single
    environment, I
    am guessing the uuid of the pex file has to be the same. I am not sure
    if
    the pex file forte creates will have the same uuid as the pex file you
    obtain when you export with uuid from fscript. If uuid is important
    for
    installed libraries, which I think is true, then there-in lies the
    impact!!
    Cheers!!
    -Ravi Kalidindi
    Born Info Svcs Group
    -----Original Message-----
    From: Charles Abecassis
    [SMTP:[email protected]]
    Sent: Wednesday, February 24, 1999 9:18 AM
    Cc: '[email protected]'
    Subject: FORTE Libraries handling (between interfaces and
    implementations) question
    Hi,
    When a plan gets distributed as library, a '.sl' file is generated,as
    well as a
    pex file and some header files.
    When we need that library, we 'should' include that generated pexfile in
    the
    workspace used for the distribution.
    What's the impact of keeping the original ('implementation'?) planfor the
    library, and not replacing it with the generated
    pex file ?
    J-Paul Gabrielli & Charles Abecassis
    Sema DTS
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Timed Switch between 3 Cases and Back!

    Hello,
    I am trying to determine how I can switch between three cases in a case structure allowing a certain time between each switch.
    For example: say I have three cases in a case structure (Cases {0,1,2}) where zero is the default case.
    What I would to do is start in the default case 0 wait 1 sec, switch to case 1, wait 1 sec switch to case 2, wait 1 sec switch back to case 1, wait 1 second switch back to case 0.  Then repeat the order.
    I was using the timer elapsed value from the Ramp Tim function to switch a select function between true and false but with the additional case I don't think this approach will work.
    Any ideas?
    Tim
    Solved!
    Go to Solution.

    Search for the term "State Machine". It is what you re trying to invent (nice work) so feel free to "Cheat" and look for the wheel as it exists now.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Free items handling in import case

    dear
    i want to know that how custom duty and fright costs takenh into account for material having net price in purchasec order zero i.e.entering as free items indiacator on .how this hanled in import cases .

    Hi
    You need to create the customs department as Vendor in SAP .
    If you  are  getting the material free of cost then SAP provides you to create PO with"Free Item" indicator or
    create PO with Invoice reciept as unticked in Invoice tab as we dont recieve Invoice from vendor.
    But we need to pay to customs as this is Imported item.
    When we use the  "Free Item" indicator  or Invoice reciept as unticked in Invoice tab  then the condition tab where we mention the conditions  disappears so we need to handle by FI module

  • Event Handling between JPanels

    Hi everyone,
    I'm trying a three-fold assignment on java, which relates to graphs and finding strongly connected components.
    In the first part, the user can create his own graph and the program should find all SCC and display them.
    In the second part, the program creates random graphs and then finds all SCC and displays them.
    In the third part, some statistical data is to be displayed.
    So what I have done so far is that I have created a JFrame on which I have added 3 JPanels, each for every part of the assignment.
    Changing between the JPanels is done by a JTabbedPane.
    My problem lies on the second part. I've created a class called RandomGraphPanel, which extends JPanel. Then I've created two sub-JPanels,
    called RandomGraphAreaPanel, where the graph should be displayed and RandomGraphDataPanel, where the user can choose some parameters on which the random graph is based. I don't know how I can paint the graph on the first sub-JPanel, after pressing a button on the second sub-JPanel.
    I will include some code from my classes:
    public class RandomGraphPanel extends JPanel
         private JPanel graphArea;
         private RandomGraphDataPanel data;
         private RandomGraphAreaPanel area;
         public RandomGraphPanel()
              super();
              setLayout(new BorderLayout(5,5));
              data = new RandomGraphDataPanel();
              area = new RandomGraphAreaPanel();
              add(data, BorderLayout.SOUTH);
              add(area, BorderLayout.CENTER);          
         }//RandomGraphPanel constructor
    }//RandomGraphPanel class
    public class RandomGraphDataPanel extends JPanel
         public RandomGraphDataPanel()
              super();
              //part where RandomGraphDataPanel is filled with 2 JSliders and 1 JButton
         }//RandomGraphDataPanel constructor
         private class ButtonHandler implements ActionListener
              public void actionPerformed(ActionEvent event)
                   //code that is executed when the button is pressed               
              }//actionPerformed
         }//ButtonHandler private class
    }//RandomGraphDataPanel classAny help will be appreciated.
    Thanks,
    philimonas

    Probably the best way would be to somehow implement the MVC pattern here. Another way would be to move the button handling code out of the RandomGraphDataPanel class and into the RandomGraphPanel class. You could then pass the ActionListener into the RandomGraphDataPanel object by perhaps a constructor parameter, or by a separate addActionListener method that you have created. Something like so:
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JPanel;
    public class RandomGraphPanel extends JPanel
        private JPanel graphArea;
        private RandomGraphDataPanel data;
        private RandomGraphAreaPanel area;
        public RandomGraphPanel()
            super();
            setLayout(new BorderLayout(5, 5));
            // *** passing ActionListener to the data class via constructor parameter
            data = new RandomGraphDataPanel(new ButtonHandler());
            area = new RandomGraphAreaPanel();
            add(data, BorderLayout.SOUTH);
            add(area, BorderLayout.CENTER);    
        // *** move this code into this class
        private class ButtonHandler implements ActionListener
            public void actionPerformed(ActionEvent event)
                area.showGraph();  // or whatever is needed to show graph       
    }and
    //import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class RandomGraphDataPanel extends JPanel
        public RandomGraphDataPanel(ActionListener buttonHandler)
            super();
            JButton someButton = new JButton("Show Graph");
            someButton.addActionListener(buttonHandler);
        private class ButtonHandler implements ActionListener
            public void actionPerformed(ActionEvent event)
                //code that is executed when the button is pressed         
    }

  • Difference in event handling between Java and Java API

    could anyone list the differences between Java and java-API in event handling??
    thanks,
    cheers,
    Hiru

    the event handling mechanisms in java language
    features and API (java Application Programming
    Features)features .no library can work without a
    language and no language has event handling built in.
    I am trying to compare and contrast the event
    handling mechanisms in the language and library
    combinations such as java/ java API.
    all contributions are welcome!
    thanks
    cheersSorry, I'm still not getting it. I know what Java is, and I know what I think of when I hear API. (Application Programming Interface.) The API is the aggregation of all the classes and methods you can call in Java. If we agree on that, then the event handling mechanisms in Java and its API are one and the same.
    So what do you want to know?
    %

  • Has anyone cut off the top "Handles" to make case shorter?

    I am considering placing a Mac Pro under a desk with limited vertical clearance- has anyone modified the case by cutting of the top handles to make the unit smaller vertically? Assume this would void all warranties..

    Kenneth are you crazy bonkers? If you really have to why not pop down to your local Ikea store and purchase a cheap and cheerful desk that will hold the Mac Pro instead of putting the angle grinder to your computer? Or better still get some MDF from your local DIY store and make your desk a little bit taller? Surely that would be easier and safer than undertaking sheet metal work? Only joking.
    On a serious note, I would also imagine that vibration and/or heat generated by cutting off the handles would risk the delicate internals of the computer.
    By all means why not cut them off, especially if the desk is an antique or worth more than the computer.
    Message was edited by: sam1974

  • Multiple events handled in a case, variant type newval

    Hi!
    I use an event case structure, and one case handles two value change events. One is a button's, the other is a cluster of controls'.
    I would like to distinguish, whether the source was the button, or one of the controls in the cluster, but i get back the new-val and old-val in a variant type.
    How could i get the appropriate values back?
    Thanks 
    Solved!
    Go to Solution.

    For this, you would use the "ctlref" event terminal, not the "newval".
    If you only have two controls, create a control reference for one and compare it with the ctlref event terminal. If they are equal, that was the control, else the other one. Place the terminal of both controls inside the event to get the values of each.
    (If you have more than two controls, create an array of control references and use "search array" for the ctrlref output)
    If your controls have unique names, you could also use the ctlref to get the control label, for example. 
    LabVIEW Champion . Do more with less code and in less time .

  • Wrong handling between iMac and iPad

    I have got a problem of tranmission between my iMac (v. 10.9.5) and my iPad, first generation 5.1.1. which never occured before.
    I must have done a wrong handling for I have 23 music albums on my iPad and 8  on my iMac. Means that I have « lost » them. I would like to put them back from iPad to iMac : is there a way ? I use iTunes 12.01.26.
    Thanks for the help you can give me.

    If they are iTunes purchased albums then File > Devices > Transfer Purchases in iTunes should copy them back - or you might be able to redownload them via the Purchased link under Quick Links on the right-hand side of the iTunes store homepage (or tick the 'shows iTunes in the cloud purchases' tickbox on the Store tab in iTunes > Preferences and they might show in the Music part of your library with a cloud icon against them for redownloading).
    If they were not bought from iTunes, and you don't have them on your backup of your library, then there are some programs listed half-way down this page which should be able to copy them back : Recover your iTunes library from your iPod or iOS device.

Maybe you are looking for

  • "Losing" files after iTunes update

    I have over 130Gb of tunes I've stored on two separate systems, one at home, the other at work. In both cases, whenever I've performed a software update I "lose" files. Most times it's only a few random files. But this last update (7.6) deleted hundr

  • Missing Segments of data

    Dear All, We are triggering the vendor details through EDI transmission to our US clients. But they are complaining that some segments of a particular vendor(that vendor code is 2641)   is missing . Can any one of you please let me know what will be

  • Can I apply Sort on 2 different Fields in Query Designer in SAP BI

    Hi Experts, I have a report 'Employee Education Report' where I have to apply 2 sorts .First sort has to be applied for 'Employee Name' so that employees are sorted from A-Z in ascending order and the second sort has to be applied on 'Education Compl

  • If i install windows via bootcamp will it support 2880 by 1800 pixels Reso ?

    Many Thanks !

  • Converting a Date to a suitable String?

    I want to use a Date or GregorianCalendar variable for storing a date (year, month and day). I need a way to get a string in that format: "19000101". I need a Date in this format because of the SQL statement. Are there any Classes and Methods I can u