Appropriate index for a query with 3 ands

Hi,
I have the following table:
PAGES
BOOK_ID DIMENSION BEGIN_POS END_POS PAGE_TEXT
where book_id is 64-bits, dimension is 32-bits, begin_pos is 32-bits, end_pos is 32-bits, and page_text is a blob (UTF-8)
My query is:
select * from PAGES
where BOOK_ID = 1234 and DIMENSION = -2 and BEGIN_POS <= 10000 and 10000 < END_POS
Which is sure to return 1 result.
My question is what kind of (multi-column?) index or indices do I need for this query whose WHERE clause uses 4 columns?
Thanks,
Andy

book_id is 64-bits, dimension is 32-bits, begin_pos is 32-bits, end_pos is 32-bitsI'm sorry, I don't understand how a column could be 64-bits an other one 32-bits, the wordsize is for all the database. Well, I maybe miss the point.
My question is what kind of (multi-column?) index or indices do I need for this query whose WHERE clause uses 4 columns?That really depend, but you should not base your index creation on one query, but more than that. Maybe book_id is a unique key, then have a PK on it could be nice. For the other columns, it is difficult, they don't mean nothing for me.
Nicolas.

Similar Messages

  • Report and ready for input Query, with similar shadings are confusing

    Some customers mix report and planning queries in their templates.
    usually the shades for PLAN Queries are
    o white - ready vor input
    o blue- display data (e.g. LY, calc KPI)
    In a Query with NO INPUT ready Cells the query has a zebra shading, blue and white, row by row.
    That is confusion for users if they believe every Number on a white background can be changed.
    Is it possible to change the shading for reporting queries to blue only?
    Best Regards,
    Georg

    Hi.
    You can cancel zebra by setting off for ALTERNATE_STYLES in properties if analysis item in WAD, BUT it sets all cells as WHITE and not blue.
    I dont know how it will be usefull, but you may try ...
    Regards.

  • Set READ UNCOMMITED for a query with a table join (Ver 12.5. and 15.5)

    Hi all,
    this is an example of how to set the READ UNCOMMITED isolation level for a simple query:
    select col_a from mytable at isolation 0
    What about a query with an equi-join?
    Is it:
    select col_a
    from mytable t1, mytable t2
    at isolation 0
    I am sorry for the simple question, I did not find a auitable example in the documentation.
    Best Regards
    Arthur

    Yeah, the docs aren't very good at providing a robust set of examples so you've gotta:
    1 - review the command syntax and then
    2 - try a few examples until you find the format that works
    1 - From the ASE 15.5 Commands reference manual we find the following syntax:
    =========================
    select ::=
              select [all | distinct]
              [top unsigned_integer]
              select_list
              [into_clause]
              [from_clause]
              [where_clause]
              [group_by_clause]
              [having_clause]
              [order_by_clause]
              [compute_clause]
              [read_only_clause]
              [isolation_clause]
              [browse_clause]
              [plan_clause]
    =========================
    This shows us that the isolation clause is attached at the 'end' of the query as a query-level specifier (along with the 'group by', 'order by' and 'having' clauses).
    From this syntax I'd say your proposed query looks correct so ...
    2 - Try running your example to see if you get a syntax error ("When in doubt, try it out!"), eg:
    =========================
    select s.name,c.name
    from sysobjects s, syscolumns c
    where s.id = c.id
    at isolation 0
    go
    name
    sysobjects
    sysobjects
    sysobjects
    ... snip ...
    =========================

  • Appropriate Community for a Query

    Being new to this community website I posted the following in the iWeb Community.  I thought that referred to Apple's Website but as I was rebuked for posting there it clearly is not!  Those who rebuked me for 'tresspassing' did not identify an alternative community.
    Could anyone advise in which is the appropriate community for me to post this query?
    Apple Contact Form: Email address area too small
    I am not sure this is in the correct forum.
    I have tried to use the contact form at http://www.apple.com/legal/contact/ to report a matter to Apple but the number of characters which the form allows me to put into the space for my email address is limited.  The amount is too few for my email address. 
    Can anyone tell me why there needs to be a limitation on the number of characters for this aspect?
    Can anyone tell me how someone like me - who has an email address longer than the alocated quota - can use this form or contact Apple by email?
    As far as I know the Electronic Commerce (EC Directive) Regulations 2002 requires among other things that the email address of the service provider must be given. It is not sufficient to include a 'contact us' form without also providing an email address.

    makfai --
    Those who rebuked me for 'tresspassing' did not identify an alternative community.
    I'm so sorry that was your initial experience with a great support forum.  All of us here are just other Mac users helping each other find solutions.  For someone to be rude to any other poster is very much frowned on here.
    Please accept our apologies, and understand if you do experience that kind of attitude again, you can come back to this Feedback forum and ask that their post be deleted.
    On a more positive note, Welcome!  We're glad you found us.

  • How much time it take to rebuild an index for a table with 20 millions rows

    Hi all,
    i need to rebuild the index of a table containing 20 000 000 row (i don't know why the other people working on this didn't think of rebuilding the index regularly, because i asked and apparently it has never been done :cry: :cry:) i am not a sql developper nor a DBA so i can't mesure how long it take to rebuild the index, does any one have an idea (aproximativly of course :aie:), the other question is there any formula to use in order to calculate how often to rebuild the indexes (i can for example retieve how much rows are delated or inserted daily ...)
    Thanks again
    Taha

    taha wrote:
    :aie: that's why i am asking because i don't know (and to be sure which solution is best)
    so the table is like this (the columns) :
    45 varchar2, 5 timestamp, 30 Number no LOB columns, (15 indexes : 5 unique indexes and that those indexes uses at a maximum 4 columns)15 indexes - 100,000 deletes: this could mean 1,500,000 block visits to maintain index leaf blocks as the table rows are deleted. If you're unlucky this could turn into 1,500,000 physical block read requests; if you're lucky, or the system is well engineered this could be virtually no physical I/O. The difference in time could be huge. At any rate it is likely to be 1,500,000 redo entries at 250 - 300 bytes per entry for a total of about 400MB of redo (so how large are your redo logs and how many log switches are you going to cause).
    yes the tables is used by an application so (update, insert ) can take place at any time
    for the deletion , there is the batch which does a mass delete on the table ( 4 or 5 time each day)
    You haven't answered the question - how long does it take to do a sample batch delete.
    If you can enable SQL tracing, or take a before/after snapshot of v$sesstat or v$session_event for the session as it does the delete then you can get some idea of where the time is going - for all you know it might be spending most of its time waiting for a lock to do away.
    >
    "How many leaf blocks are currently allocated to the index(es) ?" how can i answer to this question ? may be if i check the all_objects table ?
    If you keep your statistics up to date then dba_indexes is a good place, cross-checked with dba_segments, and you can use the dbms_space package for more detail. I have a code sample on my blog which allows you to compare the current size of your indexes with the size they would be if rebuilt at some specific percentage: http://jonathanlewis.wordpress.com/index-sizing/ (It's such good code that Oracle Corp. has copied it into MOS note 989186.1)
    Regards
    Jonathan Lewis

  • Product ID for Enterprise Query, Reporting, and Analysis package

    Hi Experts,
    I try to install Enterprise Query, Reporting, and Analysis package(CD number : 51033475)
    Installation setup asks the Product ID,
    How can i find the correct Product ID for this installation,
    Regards

    For Partners and SAP, the license id is contained in a word document that is in the Download Manager. 
    We are also trying to install this package, but it seems only the SAP drivers and not the BO Enterprise is contained in the Service Marketplace file.
    Just wondering if you have experienced the same thing.
    Best regards,
    Steve

  • Help for a query with minus clause

    I want to write a query like this:
    select a.field
    from table_1 a
    minus
    select b.field
    from table_2 b
    where not exists (select 1
    from table_3 c
    where c.field = a.field);
    Unfortunately I get:
    ERROR at line 8:
    ORA-00904: invalid column name
    Can you help me?
    Thanks!

    Hi,
    Mark1970 wrote:
    I want to write a query like this:
    select a.field
    from table_1 a
    minus
    select b.field
    from table_2 b
    where not exists (select 1
    from table_3 c
    where c.field = a.field);
    Unfortunately I get:
    ERROR at line 8:
    ORA-00904: invalid column name
    Can you help me?
    Thanks!Table_1 and its alias, a, are only in scope in the first branch of the query, before the keyword MINUS. The second branch, after MINUS, must be a complete self-contained query.
    There are many ways to re-write the query, including:
    select     a.field
    from      table_1          a1
        minus
    select     b.field
    from     table_2          b
    where      not exists      (
                           select     1
                       from      table_3     c
                       JOIN     table_1     a     ON     c.field = a.field
                   );It's suspicious that the EXISTS sub-query does not depend on anything in table_2. Are you sure this is what you want to do?
    If you'd like help, post a little sample data (CREATE TABLE and INSERT statements for all three tables) and the results you want from that data.

  • For Update Query with Wait Clause from ORACLE Forms

    Hi
    We are using Oracle Forms 10g running with 10g database 10.2.0.1.0. We happend to see a query which is getting generated in AWR report like Select rowid, all_columns from TableName for Update of C1 Nowait. But no such query is really written in forms and we are aware that, Any query prefixed with rowid is definitely executing from Forms. But how the ForUpdate and Nowait clause is appended to the query.
    We have checked the following properties in the database Block
    *1) Locking Mode is set to Automatic*
    *2) Update Changed Columns only is set to YES*
    *3) Query all records is set to No (Though this particular property may not be relevant to the issue)*
    What is the property or setting which might trigger such a query from ORACLE Forms with ForUpdate and Nowait clause.
    Any ideas/suggestions on why such behaviour. Please have a healthy discussion on this. Thanks in advance.

    Why have you started another thread on the same thing?
    FOR UPDATE cursor is causing Blocking/ Dead Locking issues
    Just use one thread to avoid confusion.
    The fact that nobody has answered on the other thread for a couple of days could be to do with it being the weekend and most people are not at work.
    Either be patient or, if it's more "urgent" than that, raise a SR/Tar with Oracle metalink.

  • SQL query with AND or OR

    Hi,
    I am trying to get a recordset that samples multiple columns of my Access database for filtering, rather than just one.  I looked at a few .asp websites and they say the query would be written like this:
    SELECT SystemName, SystemCategory, Branch, Manufacturer
    FROM UnmmannedAircraftSystems
    WHERE Branch LIKE %MMColParam%
    AND PerfSensorPayloads LIKE %MMColParam2%
    ORDER BY SystemName ASC
    but it never works.  The page fails on the server.  And I know this type of query works through straight .asp coding, but somehow the way Dreamweaver sets up the variables is killing it.
    Anybody have an ideas?
    MW

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!--#include file="../../Connections/BleahBleahBleahhhhh" -->
    <%
    Dim RSfilterRec__MMColParam
    RSfilterRec__MMColParam = "1"
    If (Request.Form("BranchesUsedby") <> "") Then
      RSfilterRec__MMColParam = Request.Form("BranchesUsedby")
    End If
    %>
    <%
    Dim RSfilterRec__MMColParam2
    RSfilterRec__MMColParam2 = "1"
    If (Request.Form("SensorPay") <> "") Then
      RSfilterRec__MMColParam2 = Request.Form("SensorPay")
    End If
    %>
    <%
    Dim RSfilterRec
    Dim RSfilterRec_cmd
    Dim RSfilterRec_numRows
    Set RSfilterRec_cmd = Server.CreateObject ("ADODB.Command")
    RSfilterRec_cmd.ActiveConnection = MM_ConnUASdata_STRING
    RSfilterRec_cmd.CommandText = "SELECT SystemName, SystemCategory, Branch, Manufacturer FROM UnmannedAircraftSystems WHERE Branch LIKE ? AND PerfSensorsPayloads LIKE ? ORDER BY SystemName ASC"
    RSfilterRec_cmd.Prepared = true
    RSfilterRec_cmd.Parameters.Append RSfilterRec_cmd.CreateParameter("param1", 200, 1, 255, "%" + RSfilterRec__MMColParam + "%") ' adVarChar
    RSfilterRec_cmd.Parameters.Append RSfilterRec_cmd.CreateParameter("param2", 200, 1, 255, "%" + RSfilterRec__MMColParam2 + "%") ' adVarChar
    Set RSfilterRec = RSfilterRec_cmd.Execute
    RSfilterRec_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = 10
    Repeat1__index = 0
    RSfilterRec_numRows = RSfilterRec_numRows + Repeat1__numRows
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    body  {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #666666;
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
    /* Tips for Elastic layouts
    1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
    2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
    3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
    .thrColEls #container {
    width: 46em;  /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center on the body element. */
    /* Tips for sidebar1:
    1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
    2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width.
    3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColEls #sidebar1 p" rule.
    .thrColEls #sidebar1 {
    float: left;
    width: 11em; /* since this element is floated, a width must be given */
    background: #EBEBEB; /* top and bottom padding create visual space within this div */
    height: 1200px;
    padding-top: 15px;
    padding-right: 0;
    padding-bottom: 15px;
    padding-left: 0;
    .thrColEls #sidebar2 {
    float: right;
    width: 11em; /* since this element is floated, a width must be given */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 0; /* top and bottom padding create visual space within this div */
    height: 1200px;
    .thrColEls #sidebar1 h3, .thrColEls #sidebar1 p, .thrColEls #sidebar2 p, .thrColEls #sidebar2 h3 {
    margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
    margin-right: 10px;
    height: 100%;
    /* Tips for mainContent:
    1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
    2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
    3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
    4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
    .thrColEls #mainContent {
      margin: 0 12em 0 12em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */
    /* Miscellaneous classes for reuse */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    -->
    </style><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .thrColEls #sidebar1, .thrColEls #sidebar2 { padding-top: 30px; }
    .thrColEls #mainContent { zoom: 1; padding-top: 15px; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]--></head>
    <body class="thrColEls">
    <div id="container">
      <div id="sidebar1">
        <h3> </h3>
        <!-- end #sidebar1 --></div>
      <div id="sidebar2">
        <h3> </h3>
        <!-- end #sidebar2 --></div>
      <div id="mainContent">
        <h1> 
          <table border="1">
            <tr>
              <td>ID</td>
              <td>SystemName</td>
              <td>SystemCategory</td>
              <td>Branch</td>
              <td>Manufacturer</td>
              <td>Status</td>
              <td>Inventory</td>
              <td>PlatformCost</td>
              <td>SystemCost</td>
              <td>PlannedBuyToDate</td>
              <td>PlannedBuyYear1</td>
              <td>PlannedBuyYear1Quantity</td>
              <td>PlannedBuyYear2</td>
              <td>PlannedBuyYear2Quantity</td>
              <td>PlannedBuyYear3</td>
              <td>PlannedBuyYear3Quantity</td>
              <td>PlannedBuyYear4</td>
              <td>PlannedBuyYear4Quantity</td>
              <td>PlannedBuyYear5</td>
              <td>PlannedBuyYear5Quantity</td>
              <td>PlannedBuyYear6</td>
              <td>PlannedBuyYear6Quantity</td>
              <td>PlannedBuyYear7</td>
              <td>PlannedBuyYear7Quantity</td>
              <td>PlannedBuyYear8</td>
              <td>PlannedBuyYear8Quantity</td>
              <td>PlaformOperationPicLink</td>
              <td>OrthoDrawingLink</td>
              <td>Capability</td>
              <td>BackgroundSysDescrip</td>
              <td>SystemDescription</td>
              <td>CharLength</td>
              <td>CharWingSpan</td>
              <td>CharGrossWgt</td>
              <td>CharPayloadWgt</td>
              <td>CharEngines</td>
              <td>CharFuelWgtType</td>
              <td>DataLinks1</td>
              <td>DataLinks2</td>
              <td>DataLinks3</td>
              <td>Frequencies1</td>
              <td>Frequencies2</td>
              <td>Frequencies3</td>
              <td>PerfEndurance</td>
              <td>PerfRadius</td>
              <td>PerfCeiling</td>
              <td>PerfAirspeeds</td>
              <td>PerfTakeoff</td>
              <td>PerfLanding</td>
              <td>PerfSensorsPayloads</td>
              <td>PerfSensorModels</td>
              <td>PayloadCharInternalSize</td>
              <td>PayloadCharInternalWgt</td>
              <td>PayloadCharInternalPwr</td>
              <td>PayloadCharInternalEnv</td>
              <td>PayloadCharExternalSize</td>
              <td>PayloadCharExternalWgt</td>
              <td>PayloadCharExternalPwr</td>
              <td>PayloadCharExternalEnv</td>
            </tr>
            <% While ((Repeat1__numRows <> 0) AND (NOT RSfilterRec.EOF)) %>
              <tr>
                <td><%=(RSfilterRec.Fields.Item("ID").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("SystemName").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("SystemCategory").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("Branch").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("Manufacturer").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("Status").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("Inventory").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlatformCost").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("SystemCost").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyToDate").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear1").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear1Quantity").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear2").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear2Quantity").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear3").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear3Quantity").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear4").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear4Quantity").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear5").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear5Quantity").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear6").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear6Quantity").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear7").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear7Quantity").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear8").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlannedBuyYear8Quantity").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PlaformOperationPicLink").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("OrthoDrawingLink").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("Capability").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("BackgroundSysDescrip").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("SystemDescription").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("CharLength").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("CharWingSpan").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("CharGrossWgt").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("CharPayloadWgt").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("CharEngines").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("CharFuelWgtType").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("DataLinks1").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("DataLinks2").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("DataLinks3").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("Frequencies1").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("Frequencies2").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("Frequencies3").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PerfEndurance").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PerfRadius").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PerfCeiling").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PerfAirspeeds").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PerfTakeoff").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PerfLanding").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PerfSensorsPayloads").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PerfSensorModels").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PayloadCharInternalSize").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PayloadCharInternalWgt").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PayloadCharInternalPwr").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PayloadCharInternalEnv").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PayloadCharExternalSize").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PayloadCharExternalWgt").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PayloadCharExternalPwr").Value)%></td>
                <td><%=(RSfilterRec.Fields.Item("PayloadCharExternalEnv").Value)%></td>
              </tr>
              <%
      Repeat1__index=Repeat1__index+1
      Repeat1__numRows=Repeat1__numRows-1
      RSfilterRec.MoveNext()
    Wend
    %>
          </table>
        </h1>
        <!-- end #mainContent --></div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
    <!-- end #container --></div>
    </body>
    </html>
    <%
    RSfilterRec.Close()
    Set RSfilterRec = Nothing
    %>

  • XML example for testing query with soapui

    Hello,
    I am trying to build a query using XML with the downloaded Contact Custom.wsdl.
    I did get a msg complaining about that there were no session. I've looked into the Web Services.pdf doc and see the description about session, etc.
    I'd appreciate if I could get a XML example for doing the authentication / session ... If you have a query example would be nice too...
    Txs. a lot.

    Hello,
    Here is a sample QueryPage request for the Contact object containing the UserName and password tokens:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"><soap:Header>
    <wsse:Security>
    <wsse:UsernameToken>
    <wsse:UserName>[username]</wsse:UserName>
    <wsse:Password>[password]</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soap:Header>
    <soap:Body>
    <ContactWS_ContactQueryPage_Input xmlns="urn:crmondemand/ws/contact/10/2004">
    <UseChildAnd>true</UseChildAnd>
    <PageSize>100</PageSize>
    <ListOfContact>
    <Contact>
    <ContactId></ContactId>
    <ContactFirstName></ContactFirstName>
    <ContactLastName></ContactLastName>
    </Contact></ListOfContact>
    <StartRowNum>0</StartRowNum></ContactWS_ContactQueryPage_Input></soap:Body></soap:Envelope>
    Thanks,
    Sean

  • Full Text Indexing for Arabic using NVARCHAR and NCLOB?

    We have an Arabic database that uses UTF-16 and NVARCHAR and NCLOB column types.
    The full text indexing of Oracle gives an error saying that it does not support these column types.
    Can you please help by telling us what is the workaround for this?

    The only workarounds are:
    1) Store data in VARCHAR2 and CLOB in a AL32UTF8 database, or
    2) Use BLOB for document storage - unfortunately, this may be expensive for a lot of short text
    -- Sergiusz

  • Customisation setting for PR creation with and without commitment both

    Hi
    We already have certain PR document types which are manually created with a/c assignment 'P' quoting a particular WBS in P.R. Now these P.R do not create any commitment as per the customization done by (I guess) MM/ FI person.
    Can u please tell me where this customization setting is which facilitates or prevents commitment creation at the time of PR creation.
    Thanks in advance
    Martin
    PS Consultant

    Hi Manish
    Thanks for the reply.
    Commitment management is already active.  What I am trying to find out is how PR of certain document types are checking for budget and other document types are exempted for budget check in WBS.
    Any further clues.
    Martin

  • Problem executing a query with AND and OR statements

    I have no idea what is the correct way to implement this part. If the user enters more than one keyword. Then I need to check it using the clause WHERE and AND in my sql statements. Obviously, the attempt I make below does not work. Here is the code, I appreciate the help:
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class simpleTest {
        public static void main(String[] args) throws IOException {
                int rows = 0;
                int count = 0;
                int i = 0;
                String[] wordList = new String[50];
                BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            try {
                Class.forName("com.mysql.jdbc.Driver").newInstance();
            } catch (Exception ex) {System.out.println("No driver");}
         try {
                Connection conn =
              DriverManager.getConnection("jdbc:mysql://localhost/cop4610webs",
              "root", "anatoly");
                // Do something with the Connection
                System.out.println("Enter a string: ");           
                String word = reader.readLine();
                StringTokenizer words = new StringTokenizer(word);
                while(words.hasMoreTokens())
                   wordList[count++] = words.nextToken();
                System.out.println("Enter the logic");
                String logic = reader.readLine();
                Statement stmt = null;
             ResultSet rs = null;
                 stmt = conn.createStatement();
                if(logic.equalsIgnoreCase("exact"))
                 rs = stmt.executeQuery("SELECT pageName FROM pages WHERE pageContent ='"+word+"'");
                 ResultSetMetaData metaData = rs.getMetaData();
                 System.out.println("Results of SELECT");
                rs.last(); //move to last row
                rows = rs.getRow(); //check rows returned
                System.out.println(rows);
                rs.beforeFirst(); //move back to beginning
                if(rows != 0)
                rs.next();
                 System.out.println(rs.getObject(1) );
                while ( rs.next() ) {
                   System.out.println(rs.getObject(1) );
                else
                      if(logic.equalsIgnoreCase("all"))
               while(i < count)
                 rs = stmt.executeQuery("SELECT pageName FROM pages WHERE pageContent ='"+wordList[i]+"'" + "AND" +"'"+wordList[i+1]+"'");
               i++;
                 System.out.println("Results of SELECT");
                rs.last(); //move to last row
                rows = rs.getRow(); //check rows returned
                System.out.println(rows);
                rs.beforeFirst(); //move back to beginning
                if(rows != 0)
                rs.next();
                 System.out.println(rs.getObject(1) );
                while ( rs.next() ) {
                   System.out.println(rs.getObject(1) );
                rs.close();
                 } catch (SQLException ex) { // handle any errors
                System.out.println("SQLException: " + ex.getMessage());
                System.out.println("SQLState: " + ex.getSQLState());
                System.out.println("VendorError: " + ex.getErrorCode());
    }

    rs = stmt.executeQuery("SELECT pageName FROM pages WHERE pageContent ='"+wordList[i]+"'" + "AND" +"'"+wordList[i+1]+"'");should be:
    rs = stmt.executeQuery("SELECT pageName FROM pages WHERE pageContent ='"+wordList[i]+"'" + " AND " +"'"+wordList[i+1]+"'");(spaces around the "and")

  • Implement a timeout for a query with OCCI

    I need stop a query when this not respond in 3 seconds, i attempt ussing the next code in C++ into a thread:
    OCIServer * ptrOCIServerHandle = ptrMyConnection->getOCIServer();
    OCIError * ptrOCIError;
    int intResult = OCIBreak( ptrOCIServerHandle, ptrOCIError );
    but the OCIBreak function return -2 and the query continue.
    How make the timeout ?

    you have to use this sequence:
    OCIError * ptrOCIError;
    OCIHandleAlloc( env->getOCIEnvironment(), (void**)&ptrOCIError, OCI_HTYPE_ERROR, 0, NULL );
    int intResult = OCIBreak( ptrOCIServerHandle, ptrOCIError );
    //check error
    OCIHandleFree( (dvoid*)ptrOCIError, OCI_HTYPE_ERROR );
    the error handle must be allocated

  • Index for attributes with boolean expression

    hi
    in our project we use a XML database to store our data. we have a lot of searches in the DB in the form
    //object\[@class="..." and @module="..."\]
    thus i created an index for the attributes class and module (node-attribute-equality-string) to improve the performance. this works really well, but I'm still not satisfied with the results. is there a way to create an index that handles both attributes at once (instead of two indexes).
    another problem, occurs after an insert. when i access the data (via a query like the above), then it goes fast. when i insert another node into the database (that does not even has attributes class or module, so it does not interfere with the index) then the same query as before is slower (by a factor of 3 to 5). when i then reindex manually everything is fast again.
    btw. we use a node container
    greets
    Edited by: user11787357 on Aug 13, 2009 4:35 AM

    user11787357 wrote:
    //object\[@class="..." and @module="..."\]
    thus i created an index for the attributes class and module (node-attribute-equality-string) to improve the performance. this works really well, but I'm still not satisfied with the results. is there a way to create an index that handles both attributes at once (instead of two indexes). Add an attribute to your document that combines @class and @module. This @class-module attribute needs a delimiter to seperate the two parts, some string that may not be found in either valuespace. Simply create an index on that attribute. You can use XQuery to update your documents in the database, or maybe XSLT or SAX or BDB XML XmlReader/XmlWriter as a preprocessing step.
    another problem, occurs after an insert. when i access the data (via a query like the above), then it goes fast. when i insert another node into the database (that does not even has attributes class or module, so it does not interfere with the index) then the same query as before is slower (by a factor of 3 to 5). when i then reindex manually everything is fast again.
    btw. we use a node containerWhich version and patch level? There have been various patches floating about this forum, some of them related to indexing. I've lost track of them. It would be good to see a Consolidated Patch 2 (CP2) for 2.4.16 even though 2.5 seems not too far away.
    Michael Ludwig

Maybe you are looking for

  • Help with Java Memory Leak in URLConnection

    Hi everyone, I can't seem to find the memory leak in the below code, if anyone could help, i would greatly appreciate it. The jist of the code is: I open up a URLConnection to update a ColdFusion page that takes in URL parameters passed in my URL. Th

  • Access Pictures on disk after burning

    Hi everyone, I am currently making an iDvd project for a church in my area. They want the DVD to have the two performances of a musical they did on it, as well as a slideshow of around 1500 pictures. Currently, everything fits fine onto the disk (4.7

  • Wlst bug ??

    I created a class in Python (Cluster) that has the properties name, and servers ( a list of Server classes). The server class has appropriate properties as well (name, port, etc.) when i loop through the class and call the create(_cluster.name, "Clus

  • My URI

    Hello. I'd like to protect my video (flv/progressive) by assuring it's requested by a 'valid' swf. Valid means hosted in a valid web page. In other words, if someone copies the HTML code (<object/embed> , and paste it in another web page, the swf wil

  • Help with mobile site not filling the screen!

    I have published my mobile site and it appears in the top left corner of my iphone screen. How to I get it to fill the screen? www.creativetouchdesign.co.uk