Need help for the sql statement !!!!!

hi all,
i need a sql statement for a query, how can i get the result from the rownum between 100 and 150?
plz help

use a scrollable statement:
PreparedStatement stat = Connection.prepareStement("select * from blah", ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
ResultSet rs = stat.executeQuery();
rs.absolute(100);
while (rs.next()) {
String something = rs.get(1);
Look into the JDK API reference for ResultSet to get an expalantion of scrollable statements.

Similar Messages

  • Need help with the session state value items.

    I need help with the session state value items.
    Trigger is created (on After delete, insert action) on table A.
    When insert in table B at least one row, then trigger update value to 'Y'
    in table A.
    When delete all rows from a table B,, then trigger update value to 'N'
    in table A.
    In detail report changes are visible, but the trigger replacement value is not set in session value.
    How can I implement this?

    You'll have to create a process which runs after your database update process that does a query and loads the result into your page item.
    For example
    SELECT YN_COLUMN
    FROM My_TABLE
    INTO My_Page_Item
    WHERE Key_value = My_Page_Item_Holding_Key_ValueThe DML process will only return key values after updating, such as an ID primary key updated by a sequence in a trigger.
    If the value is showing in a report, make sure the report refreshes on reload of the page.
    Edited by: Bob37 on Dec 6, 2011 10:36 AM

  • Need help for the $200 promo rebate for trade-in of I Phone 4

    Need help for the $200 promo rebate for trade-in of I Phone 4.  Unable to preregister when I ordered the new 6  in September.  Now can not contact VZW recycle program regarding.

    When I ordered my phone on Sept. 13th in a Verizon store, I had to ask the salesman how I went about getting the $200 rebate. He said shipping materials would come with the new phones. When I received the confirmation e-mail of my order, it contained a link for the rebate. Fortunately I clicked on the link, filled out the form online, and received the packing materials to send my phone in shortly after. My phones came in on Oct. 14th and I sent 3 of them back. So far I have received a gift card for $200 for 2 of the phones; the other is showing not received. I don't know what your situation is, but I think the promotion ended Oct. 15th. If I had listened to the salesman I think I would be out of luck as well. I hope I am wrong for your sake.

  • I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    If you are talking about Safari on the iPad, there is no version of Adobe Flash for iOS and there never has been. Clear Safari, close the app and reset the iPad.
    Go to Settings>Safari>Clear History and Website Data
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you are talking about Safari on your Mac, you are in the wrong forum. But I would still clear the cache, quit Safari and restart the Mac.

  • The number of reloads for the SQL statements

    Hi,
    in 10g R2, how to see the number of reloads for the SQL statements ? Any query ? Which value is high ? Which valu is low ?
    Thanks.

    thanks all.
    It was a test question for 1Z0-042 exam as follows :
    The users on your SALESDB are complaining of slow response to their queries. Using the SQL Tuning Advisor, you determine
    that the SQL statements are using the best optimization plan. Querying the dynamic views, you see that the number of reloads
    for the SQL statements is high, which can cause performance degradation.
    Which component of the SGA should you resize to reduce the number of reloads of the SQL statements?
    Answer :
    shared poolThen I wonder how to see the number of reloads for the SQL ?

  • Need help on coverting sql statement to NamedQueries

    hi, all,
    I have a problem on converting the following SQL statement returning last 10 records from an Oracle database.
    The SQL statement is as followings:
    select * from (select * from TABLE1 where ATT1 = 1 order by ATT2 desc) where rownum<11
    However, how should I convert this statement into NamedQuery?
    Thanks.

    Will the following SQL return the same set of rows for you:
    select * from TABLE1 where ATT1 = 1 order by ATT2 desc limit 1,10
    If so, that query is a lot easier to convert.
    I've never tried to convert a subquery into a NamedQuery. The problem is that you're not just converting to named query, but you're also changing from SQL to EJBQL, and they don't map directly even though the semantics are similar.

  • Need help on my SQL statement

    Hello experts,
    I need to write a dynamic sql statement which will enable users to pick the date and the BI system will take them 3 months back. I tried 3 months variables I kept getting SQL error then I tried 90 days. Now it keep showing that there is no data which for sure I know its not trure.
    This is my statement: +"GL Calendar"."Fiscal Date" >=timestampadd(SQL_TSI_DAY,-90, timestamp'@{ABCcost}{2013-05-16 00:00:00}')AND("GL Calendar"."Fiscal Date">=timestamp'@{ABCcost}{2013-05-16 00:00:00}')+
    Anything that Im missing..

    Rayan,
    I am not sure if I am following you, cause we want to enable the user to pick whatever date and then from there they will get 3 months back and the rest of their info. I tried it didn't work, may be I placed at wrong place
    Can you probably copy my statement above and insert in-between.
    thanks,
    Edited by: 994621 on May 17, 2013 11:28 AM

  • Need help in a sql statement

    Hi, I have some data like the following and I need to get only one row instead of two.
    Current data:
    ID                       Time_Type                       Time
    A_xyz Check_In 2009-02-11 07:00 AM
    A_xyz Check_out 2009-02-12 10:00 AM
    I want it in the following format:
    ID                       Check_in_Time                           Check_out_time
    A_xyz 2009-02-11 07:00 AM 2009-02-12 10:00 AM
    There are about 10 more fields in the table but all other data is same except for the time. Thanks for your help.

    Hi, Yes, I already had queries using max but then I found that I could not use them as I don't know how many time_types there would be. I appologize I should have mentioned this in my first post and had posted some additional info.
    In my example time_types are as check_in and check_out but infact the types are codes and they don't tell if they are check in or check out. All I need is to convert the rows into columns. I can call my columns col1, col2 etc instead of check_in_time and check_out_time.
    Also, I am giving you guys an example but it is exactly same as our real data.
    Thanks again.

  • Need help for the query columns to rows

    Hi everyone,
    I have two tables TABLE1 and TABLE2; TABLE1 is Master table,TABLE2 is child table.
    The key for TABLE1 is C1 column
    The key for TABLE2 is C1,C_MONTH Columns
    The sample data is as follows
    TABLE1
    ======
    C1 C2
    1 A
    2 B
    3 C
    4 D
    TABLE2
    ======
    C1 C_MONTH C3
    1 JAN AAA
    1 FEB BBB
    1 MAR CCC
    1 APR DDD
    2 JAN ZZZ
    2 FEB YYY
    2 MAR XXX
    2 APR UUU
    I want to display the data as follows
    1 A JAN AAA FEB BBB MAR CCC APR DDD
    2 B JAN ZZZ FEB YYY MAR XXX APR UUU
    Can any one help me how to write this query?
    Thanks in advance

    [email protected] wrote:
    Thanks for the update
    but I want the out put as column values rather than one column as follows
    C1 C2 J_MONTH J_VALUE F_MONTH F_VALUE M_MONTH M_VALUE A_MONTH A_VALUE
    1 A JAN AAA FEB BBB MAR CCC APR DDD
    2 B JAN ZZZ FEB YYY MAR XXX APR UUUThis is a standard pivot.
    In 10g or below you can do something like...
    SQL> ed
    Wrote file afiedt.buf
      1  with table1 as (
      2                  select 1 c1, 'A' c2 from dual union all
      3                  select 2, 'B' from dual union all
      4                  select 3, 'C' from dual union all
      5                  select 4, 'D' from dual
      6                 ),
      7       table2 as (
      8                  select 1 c1, 'JAN' C_MONTH,'AAA' C3 from dual union all
      9                  select 1,'FEB','BBB' C3 from dual union all
    10                  select 1,'MAR','CCC' C3 from dual union all
    11                  select 1,'APR','DDD' C3 from dual union all
    12                  select 2,'JAN','ZZZ' C3 from dual union all
    13                  select 2,'FEB','YYY' C3 from dual union all
    14                  select 2,'MAR','XXX' C3 from dual union all
    15                  select 2,'APR','UUU' C3 from dual
    16                 )
    17  -- end of test data
    18  select table1.c1, table1.c2
    19        ,max(decode(c_month, 'JAN', c_month)) as jan_month
    20        ,max(decode(c_month, 'JAN', c3)) as jan_value
    21        ,max(decode(c_month, 'FEB', c_month)) as feb_month
    22        ,max(decode(c_month, 'FEB', c3)) as feb_value
    23        ,max(decode(c_month, 'MAR', c_month)) as mar_month
    24        ,max(decode(c_month, 'MAR', c3)) as mar_value
    25        ,max(decode(c_month, 'APR', c_month)) as apr_month
    26        ,max(decode(c_month, 'APR', c3)) as apr_value
    27  from table1 join table2 on (table1.c1 = table2.c1)
    28* group by table1.c1, table1.c2
    SQL> /
            C1 C JAN JAN FEB FEB MAR MAR APR APR
             1 A JAN AAA FEB BBB MAR CCC APR DDD
             2 B JAN ZZZ FEB YYY MAR XXX APR UUU
    SQL>From 11g upwards you can use the new PIVOT keyword.

  • Need documents for the SQL profiler.

    Hi All,
    Can any one send me the documentation for the following ,
    1. SQL Profiler.
    2. Oracle Enterprise Manager.
    - Actually i've been moved to work on Oracle database now. So here we are handling the Fine Tuning of SQL queries.
    - Help with complete material and best way to Tune the queries.
    - What are the steps to follwo while Tuning the queries.
    - Are there any tools to tune automatically.
    Here we are using Oracle 10g, TOAD 8.6.1 version...
    I am a developer since i don't have any ADMIN priviliges to install all the products. We are using Oracle 10g Client.
    Regards,
    Arjun.

    Information about the profiler is in the "Using the PL/SQL Hierarchical Profiler" chapter of the Oracle Database Advanced Application Developer's Guide. (It's Chapter 8 in the Oracle Database Release 11.2 version of that manual.)
    In the Oracle Database Release 10.2 documentation library, there's some information about "Using The Profiler API: Package DBMS_PROFILER" in Chapter 11 ("Tuning PL/SQL Applications for Performance") of the Oracle Database PL/SQL User's Guide and Reference manual, which also refers to the DBMS_PROFILER reference chapter in the Oracle Database PL/SQL Packages and Types Reference manual.

  • Need help for the security setting

    We are preparing the demo environment with ADF Security turn on with Http Basic Authentication.
    Everything works fine but for a command that is send to one of our proxy servlet (context path /BIProxy), we got a pop up dialog that asks you to login to weblogic container.
    Anyone have any suggestion regarding what extra security configuration that I need to config to access to context path/servlet that is not default Faces servlet.
    The following is what we have in jazn-data.xml for region:
    <permission>
    <class>oracle.adf.share.security.authorization.RegionPermission</class>
    <name>testsecurity.pageDefs.untitled1PageDef</name>
    <actions>view</actions>
    </permission>

    Hi, we find more informaiton.
    We got two 401 errors which causes the login popup.
    o. For the 1st 401 error (expected), the http header is set to: WWW-Authenticate: Basic realm="jazn.com" so we enter the correct user credential, the dialog goes away.
    o. For the 2nd 401 error, the http header is set to: WWW-Authenticate: Basic realm="WebLogic Server" so we get "Authentication Required" dialog ask for WLS login.
    For the 2nd 401 error, we are pointing to /Sales-BaseSalesSalesHomePageUi-context-root/BIProxy?cid=BIPresentationServer&RedirectURL=res/b_mozilla/common/obips.ImportMeFirst.js from Referer URL: /Sales-BaseSalesSalesHomePageUi-context-root/faces/zbsSalesHomePage?_adf.ctrl-state=x5a1n5x2d_11
    So my quesiton is that do we need to add some security setting in jazn-data.xml or someother files to specify security setting for /BIProxy?
    Thanks

  • Need help about distributed sql statement

    Hello everybody
    Enviroment:
    Oracle 11g R1.
    This Database was fine, 'till some days ago that a new system was deployed on other database. New system runs some SELECT querys to a my database using db_links. These statements are blocking some resources and 'cause that they are blocking many users of my database. I can see on Enterprise Manager this wait event : "enq: TM contention".
    Now my question is, why are these querys are blocking resources and users if they are only of type SELECT??? I thought that querys that did this were DML and DDL statements.
    Does this behavior is related with that those querys are executed by a distributed way (using dblinks)??
    Thanks a lot

    user652447 wrote:
    Distributed Transactions require commit even if a Select. See the following FAQ post from Jonathan Lewis for some basic information.
    http://www.jlcomp.demon.co.uk/faq/dblink_commit.html
    HTHNot always true though, it depends. The article you are linking to is quite old and covers, as stated, Oracle version(s): 7.0 – 9.2. Whereas the OP is on 11.
    http://download.oracle.com/docs/cd/B10500_01/server.920/a96521/ds_txns.htm
    In the section "Read-Only Response"
    Note that if a distributed transaction is set to read-only, then it does not use rollback segments. If many users connect to the database and their transactions are not set to READ ONLY, then they allocate *rollback space* even if they are only performing queries.
    In the OP's version
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/ds_txns003.htm#ADMIN12226
    Note that if a distributed transaction is set to read-only, then it does not use undo segments. If many users connect to the database and their transactions are not set to READ ONLY, then they allocate *undo space* even if they are only performing queries.
    However that doesn't account for the types of lock the OP is experiencing.

  • Need help for the installation of one key theater and the improper working of touchpad

    hi can anybody tell me how can i install one key theater in g560 laptop running on win 7 32 bit OS as me trying to install it but it doesnt work.
    How to solve the touchpad issue in g560 as sometimes the touchpad stops funtioning or not sensing the finger movement.

    Hi and Welcome to the Community!
    I'm not sure, from your description, exactly what you are looking for. "Username" and "E-mail"? Are you perhaps looking for the ability to enter a "reply-to" email address that is different from the actual email address of the account you are sending from? If so, that feature is indeed not presently available in BB10. Among other features, it may be one that many hope are added to the BB10 platform with future OS releases. But, for now, it is what it is.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Need help for the frontpanel of audigy and live soundcard !

    hi.
    ich habe eine frage.
    ich habe eine audigy 2 zs soundkarte ohne dieses
    frontpanel ,also es ist keine platinum und m?chte das frontpanel (I/O dri've)
    seperat erwerben.
    kann ich es an meiner soundkarte anschliessen oder geht das nur bei einer platinum ?
    und
    muss das unbedingt das frontpanel einer audigy 2 zs sein oder geht
    auch das von li've soundkarte ,da gibt es auch frontpanel ?
    mir geht es haupts?chlich um die optischen lichtleiterkabel,die ich zum anschluss
    vom kabel deutschland decoder zu meiner soundkarte ben?tige.
    w?re nett wenn mir einer das beantworten kann.
    mfg
    death

    Hi and Welcome to the Community!
    I'm not sure, from your description, exactly what you are looking for. "Username" and "E-mail"? Are you perhaps looking for the ability to enter a "reply-to" email address that is different from the actual email address of the account you are sending from? If so, that feature is indeed not presently available in BB10. Among other features, it may be one that many hope are added to the BB10 platform with future OS releases. But, for now, it is what it is.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Need to CANCEL the SQL statement in TOAD

    Hello All,
    I have submitted the SQL Query to delete the values from FND_CONCURRENT_REQUESTS table. Later I closed that session. Now above query is making the application very slow. How do I find out that query and cancel it.
    Please let me know the navigation.
    Toad Version: 7.6.0.11
    Thanks.

    Hi,
    Check the toad connection in v$session and kill it.
    Regards

Maybe you are looking for

  • Integrating barcode asset management and LR

    I have discovered to my delight that you can integrate Lightroom and barcode based print asset management. This is a way to: automate the printing of labels for images without any rekeying of information, and automate the process of finding the image

  • Plz validate.....this concept

    Dear Experts... As I understand  the concept of Header assigned networksu2026u2026. Here is only one network header will be assigned at level one wbs All the activities under one network header. The costs will   passed directly to the network header.

  • PIVOT LOGIC NEEDED

    Hi All, I need to pass the condition as sysdate , sysdate -1 in 'for ' in pivot clause in oracle but am geting the error as 'ORA-56901: non-constant expression is not allowed for pivot|unpivot values' . I need to pass condition as sysdate only not an

  • CNN videos won't play

    For the last couple of months, I have been unable to play video form the CNN.com site on Safari, Firefox or any other browser. I've tried different user login and that didn't work. WHen I select a video I get a black video panel with a play bar. When

  • SelectCmDevice with Multiple devicename

    I have tried to do SelectCmDevice lookup with multiple phone names in the SOAP request. However, I found that the response contains information for ONE phone only. Is there anything I missed in my SOAP request? REQUEST: <?xml version="1.0" encoding="