Query not returning correct number of records

Hi Guys,
Can someone please tell me why this query is not retrieving the correct number of records.
I have a table with six users
FIRST_NAME          LAST_NAME
David               Robert
Martin               Fisher
Henry               Robert King
Edmund               Tomkinson
Williams          Hayes Robert
Tina               Belkins
When I run a query, SELECT * FROM USERS WHERE LAST_NAME LIKE 'Robert';
I only get 1 record back (David Robert). Is the space between the last name
causing this? If yes, How can I rewite the query?

show a copy-paste example of your query...
you need to use a wild card with LIKE, as in
SQL> create table test
  2  (first_name varchar2(50)
  3  ,last_name varchar2(50)
  4  );
Table created.
SQL>
SQL> insert into test values ('David' , 'Robert'           );
1 row created.
SQL> insert into test values ('Martin', 'Fisher'           );
1 row created.
SQL> insert into test values ('Henry' , 'Robert King'      );
1 row created.
SQL> insert into test values ('Edmund', 'Tomkinson'        );
1 row created.
SQL> insert into test values ('Williams',  'Hayes Robert');
1 row created.
SQL> insert into test values ('Tina',  'Belkins');
1 row created.
SQL>
SQL> SELECT * FROM test WHERE LAST_NAME LIKE 'Robert';
FIRST_NAME
LAST_NAME
David
Robert
SQL>
SQL> SELECT * FROM test WHERE LAST_NAME LIKE '%Robert%';
FIRST_NAME
LAST_NAME
David
Robert
Henry
Robert King
Williams
Hayes Robert

Similar Messages

  • ABAP query not returning correct number of records

    Hi,
    I have created an ABAP Query using logical database VFV and nodes VBRK, VBUK and VBRP.
    But, after entering values for Sales Organisation ( VBRK-VKORG ), Distribution channel ( VBRK-VTWEG ) and Date ( VBRK-FKDAT), the number of records that I get are very less in number as compared to the actual number in the database.
    Please give some pointers to the reason. I have set Lines 60 and Columns length - 83 and selected ALV List.
    Regards,
    Garima.

    Hi Garima,
    Please Check whether you are selecting all the Key fields in your Query.
    Thanks & Regards,
    Ashok kumar.

  • FOR ALL ENTRIES not returning correct number of records

    Hi,
    I have the following code: -
      SELECT vbelv                                     "Delivery
             posnv                                     "Delivery Item
             rfmng                                     "GR Qty
             plmin                                     "Sign
             INTO TABLE t_gr
             FROM vbfa
             FOR ALL ENTRIES IN t_deliveries
             WHERE vbelv   EQ t_deliveries-vbeln
               AND posnv   EQ t_deliveries-posnr
               AND vbtyp_n EQ c_goods_receipt.
    The internal table t_deliveries has a single entry. The table VBFA has 5 records for the delivery/item.
    When the SQL is executed it returns 4 records. If I amend the code to use the following it returns the 5 records. Has anybody had a similar issue.
      LOOP AT t_deliveries INTO st_deliveries.
        SELECT vbelv                                     "Delivery
               posnv                                     "Delivery Item
               rfmng                                     "GR Qty
               plmin                                     "Sign
               APPENDING TABLE t_gr
               FROM vbfa
               WHERE vbelv   EQ st_deliveries-vbeln
                 AND posnv   EQ st_deliveries-posnr
                 AND vbtyp_n EQ c_goods_receipt.
      ENDLOOP.

    FOR ALL Entries can fatch only the unique rows from the table. So, check in the VBFA for the your inputs and the output fields, you will have only 4 unique records. That's why it is picking up only 4 records.
    Try to include one more fields which makes every row as a unique row.
    Regards,
    Naimesh Patel

  • Filr 1.1 LDAP Preview Not Returning Correct Number of Result

    I'm finishing set up of Filr 1.1 in our environment but noticed today that the LDAP preview does not return the correct number of results. The query:
    (&(objectClass=Person)(|(employeeType=E)(employeeT ype=Y)(employeeType=Z)))
    has been tried against multiple AD domain controllers and has so far returned 3 different user counts - 2895, 2800, and 2700. Mostly it always returns 2800. The correct count using powershell with the exact same ldap filter is over 5000.
    I would prefer not to try a sync until I have some confidence that it will complete successfully. Any suggestions?

    On Wed, 22 Apr 2015 17:26:03 GMT, jameswatson3
    <[email protected]> wrote:
    >
    > I'm finishing set up of Filr 1.1 in our environment but noticed today
    > that the LDAP preview does not return the correct number of results. The
    > query:
    >
    > (&(objectClass=Person)(|(employeeType=E)(employeeT ype=Y)(employeeType=Z)))
    >
    > has been tried against multiple AD domain controllers and has so far
    > returned 3 different user counts - 2895, 2800, and 2700. Mostly it
    > always returns 2800. The correct count using powershell with the exact
    > same ldap filter is over 5000.
    >
    > I would prefer not to try a sync until I have some confidence that it
    > will complete successfully. Any suggestions?
    Could you try it with filr 1.2?
    https://download.novell.com/Download...d=q-mgVFDsOKQ~

  • IPTObjectManager.Query not returning correct result (Java)

    Hi,
    I am having a problem with the IPTObjectManager.Query method. The code is given below. The issue I am having is, that when I search for a community in a specific folder not results are returned. However if I search in all folders (using -1 as the second parameter to the method) it returns multiple communities including the one I need. Anyone else had the same issue with this??
    // THIS CODE WORKS AND RETURN MULTIPLE COMMUNITIES
    // THE hotelCode VARIABLE IS A STRING VARIABLE CONTAINING A VALUE
    // WHICH IS THE COMMUNITY NAME.
    // Create a ObjectManager object
    IPTObjectManager objectManager = session.GetObjectManagers(ObjectClass.Community.toInteger());
    // define the query based on the passed string
    Object[][] vQueryFilter = {
         new Object[]{new Integer(PT_PROPIDS.PT_PROPID_NAME)},
         new Object[]{new Integer(PT_FILTEROPS.PT_FILTEROP_CONTAINS)},
         new Object[]{hotelCode}};
    // Run the query and return results
    IPTQueryResult ptQueryResult = objectManager.Query(
         PT_PROPIDS.PT_PROPID_ALL, -1, PT_PROPIDS.PT_PROPID_NAME, 0, -1, vQueryFilter);
    // THIS CODE DOES NOT WORK. I AM PASSING IS THE FOLDER ID OF THE
    // FOLDER WHICH CONTAINS THE COMMUNITY
    // Create a ObjectManager object
    IPTObjectManager objectManager = session.GetObjectManagers(ObjectClass.Community.toInteger());
    // define the query based on the passed string
    Object[][] vQueryFilter = {
         new Object[]{new Integer(PT_PROPIDS.PT_PROPID_NAME)},
         new Object[]{new Integer(PT_FILTEROPS.PT_FILTEROP_CONTAINS)},
         new Object[]{hotelCode}};
    // Run the query and return results
    IPTQueryResult ptQueryResult = objectManager.Query(
         PT_PROPIDS.PT_PROPID_ALL, 303, PT_PROPIDS.PT_PROPID_NAME, 0, -1, vQueryFilter);

    I don't know about G6, however in version 5 there does not appear an easy way of doing it. I guess the "easiest" way would be to query sub-folders first, build and array of their ids, and then query for communities in those folders. This is using server API. Something like this (.NET):
    publicvoidGetFolderCommunities(intfolderId){    IPTAdminFolder folder =this.session.GetAdminCatalog().OpenAdminFolder(folderId, false);    IPTQueryResult qr =folder.QuerySubfolders(PT_PROPIDS.PT_PROPID_ALL, [b]1, null, 0, -1, newobject[][] {             newobject[] { PT_PROPIDS.PT_PROPID_FOLDER_FOLDERTYPE }, newobject[] { PT_FILTEROPS.PT_FILTEROP_EQ } , newobject[] { PT_ADMIN_FOLDER_TYPES.PT_ADMIN_FOLDER_TYPE_COMMUNITYFOLDER } } ); int[] folderIds =newint[qr.RowCount()]; Console.WriteLine("------ sub-folders for communities -------"); for(inti =0; i <qr.RowCount(); i++) {        intobjectId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_OBJECTID);        stringobjectName =qr.ItemAsString(i, PT_PROPIDS.PT_PROPID_NAME);        intparentFolderId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_FOLDER_PARENTFOLDERID);        folderIds[i] =objectId; Console.WriteLine("{0}: {1}; parent: {2}", objectId, objectName, parentFolderId); } qr =this.session.GetCommunities().Query( PT_PROPIDS.PT_PROPID_ALL, -1, (object) null, 0, -1, newobject[][] {            newobject[] { PT_PROPIDS.PT_PROPID_FOLDERID }, newobject[] { PT_FILTEROPS.PT_FILTEROP_IN } , newobject[] { folderIds } } ); Console.WriteLine("------ communities from sub-folders -------"); for(inti =0; i <qr.RowCount(); i++) {        intobjectId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_OBJECTID);        stringobjectName =qr.ItemAsString(i, PT_PROPIDS.PT_PROPID_NAME);        int parentFolderId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_FOLDERID);        Console.WriteLine("{0}: {1}; folder: {2}", objectId, objectName, parentFolderId); }}
    Or you could use EDK RPC search. Again, in .NET:
    publicvoidSearchForCommunities(intfolderId){ IPortalSearchRequest searchRequest =this.ptSession.GetSearchFactory().CreatePortalSearchRequest(); searchRequest.SetObjectTypesToSearch(newObjectClass[] { ObjectClass.Community }); searchRequest.SetDocFoldersToSearch(newint[] {}, true); searchRequest.SetAdminFoldersToSearch(newint[] { folderId}, true); searchRequest.SetResultsCount(0, 100); searchRequest.SetResultsOrderBy(PortalField.OBJECT_ID); searchRequest.SetFieldsToReturn(newPlumtreeField[] {}); searchRequest.SetQuery("*"); ISearchResponse searchResponse =searchRequest.Execute(); intreturnedMatches =searchResponse.GetReturnedCount(); ISearchResultSet resultSet =searchResponse.GetResultSet(); IEnumerator enumerator =resultSet.GetResults(); while(enumerator.MoveNext()) { ISearchResult result =(ISearchResult) enumerator.Current; Console.WriteLine( result.GetFieldAsInt(PortalField.OBJECT_ID) +": "+ result.GetFieldAsString(PlumtreeField.NAME) ); }}
    Ruslan.

  • LDAP not returning correct number of results through Java?

    Hello all,
    I've written a little testing application for my new shiny LDAP server and have the following method in it, which performs a search based on department number:
    public Vector searchLDAP(String depNumber) throws NamingException          
              String uid;
              String mobile;
              String givenName;
              String sn;
              String telephoneNumber;
              String departmentNumber;
              String employeeType;
              String employeeNumber;
              String reportsTo;
              Vector people = new Vector();
              Attributes matchAttributes = new BasicAttributes(false);
              matchAttributes.put(new BasicAttribute("departmentnumber", depNumber));
              NamingEnumeration results = ctx.search(base, matchAttributes);
              SearchResult tempSR;
              Attributes tempAtt;
              LDAPPerson tmp;
              while(results.hasMore())
                   uid = "";
                   mobile = "";
                   givenName = "";
                   sn = "";
                   telephoneNumber = "";
                   departmentNumber = "";
                   employeeType = "";
                   employeeNumber = "";
                   reportsTo = "";
                   tempSR = (SearchResult) results.next();
                   tempAtt = tempSR.getAttributes();
                   if(atts.get("uid")!=null)
                         uid = (String)atts.get("uid").get();
                   if(atts.get("mobile")!=null)
                          mobile = (String)atts.get("mobile").get();
                   if(atts.get("givenname")!=null)
                          givenName = (String)atts.get("givenname").get();
                   if(atts.get("sn")!=null)
                          sn = (String)atts.get("sn").get();
                   System.out.println("Working with " + sn);
                   if(atts.get("telephonenumber")!=null)
                          telephoneNumber = (String)atts.get("telephonenumber").get();
                   if(atts.get("departmentNumber")!=null)
                          departmentNumber = (String)atts.get("departmentNumber").get();
                   if(atts.get("employeeType")!=null)
                          employeeType = (String)atts.get("employeeType").get();
                   if(atts.get("employeenumber")!=null)
                          employeeNumber = (String)atts.get("employeeNumber").get();
                   if(atts.get("reportsTo")!=null)
                          reportsTo = (String)atts.get("reportsTo").get();
                   tmp = new LDAPPerson(uid, mobile, givenName, sn, telephoneNumber, departmentNumber, employeeType, employeeNumber, reportsTo);     
                   people.add(tmp);
              return people;
         }But for some reason (perhaps too much coding and not enough coffee?) I get the same person's details twice, instead of the two users I'm a) expecting and b) have retrieved using ldapsearch on the command line.
    Have I done something really stupid or is there something I'm not aware of?
    Thanks!
    Gemma

    Hello Gemma!
    I think you have used a global class attribute atts and not tempAttr. So you get anything else but not what you wish.
    So i think you should change the code in the following way,
    i thing it should work ...
    (Sorry for the bad code formatting ...)
    Greetings
    public Vector searchLDAP(DirContext ctx, String base, String depNumber) throws NamingException     
    String uid;
    String mobile;
    String givenName;
    String sn;
    String telephoneNumber;
    String departmentNumber;
    String employeeType;
    String employeeNumber;
    String reportsTo;
    Vector people = new Vector();
    Attributes matchAttributes = new BasicAttributes(false);
    matchAttributes.put(new BasicAttribute("departmentnumber", depNumber));
    NamingEnumeration results = ctx.search(base, matchAttributes);
    while(results.hasMore())
    uid = "";
    mobile = "";
    givenName = "";
    sn = "";
    telephoneNumber = "";
    departmentNumber = "";
    employeeType = "";
    employeeNumber = "";
    reportsTo = "";
    SearchResult tempSR = (SearchResult) results.next();
    Attributes atts = tempSR.getAttributes();
         if(atts.get("uid")!=null)
         uid = (String)atts.get("uid").get();
         if(atts.get("mobile")!=null)
              mobile = (String)atts.get("mobile").get();
         if(atts.get("givenname")!=null)
    givenName = (String)atts.get("givenname").get();
         if(atts.get("sn")!=null)
         sn = (String)atts.get("sn").get();
         System.out.println("Working with " + sn);
         if(atts.get("telephonenumber")!=null)
    telephoneNumber = (String)atts.get("telephonenumber").get();
         if(atts.get("departmentNumber")!=null)
    departmentNumber = (String)atts.get("departmentNumber").get();
         if(atts.get("employeeType")!=null)
    employeeType = (String)atts.get("employeeType").get();
         if(atts.get("employeenumber")!=null)
    employeeNumber = (String)atts.get("employeeNumber").get();
         if(atts.get("reportsTo")!=null)
    reportsTo = (String)atts.get("reportsTo").get();
    LDAPPerson tmp = new LDAPPerson(uid, mobile, givenName, sn, telephoneNumber, departmentNumber, employeeType, employeeNumber, reportsTo);     
         people.add(tmp);
    return people;

  • SQL Query Not Returning Correct Results

    I am trying to pull all records that are set for mailing and
    are from every state except for Nebraska and some counties in Iowa.
    It isn't pulling correctly. Any help would be greatly appreciated.
    SELECT HS_SATCode.School, HS_SATCode.Add1, HS_SATCode.City,
    HS_SATCode.State, HS_SATCode.[Zip Code], HS_SATCode.county,
    HS_SATCode.mail_list
    FROM HS_SATCode
    WHERE (((HS_SATCode.State)<>'NE') AND
    ((HS_SATCode.mail_list)=1)) OR (((HS_SATCode.State)='IA') AND
    ((HS_SATCode.county)<>'Adair' And
    (HS_SATCode.county)<>'adams' And
    (HS_SATCode.county)<>'audubon' And
    (HS_SATCode.county)<>'buena vista' And
    (HS_SATCode.county)<>'calhoun' And
    (HS_SATCode.county)<>'carroll' And
    (HS_SATCode.county)<>'cass' And
    (HS_SATCode.county)<>'cherokee' And
    (HS_SATCode.county)<>'clay' And
    (HS_SATCode.county)<>'crawford' And
    (HS_SATCode.county)<>'dickinson' And
    (HS_SATCode.county)<>'fremont' And
    (HS_SATCode.county)<>'greene' And
    (HS_SATCode.county)<>'guthrie' And
    (HS_SATCode.county)<>'harrison' And
    (HS_SATCode.county)<>'ida' And
    (HS_SATCode.county)<>'lyon' And
    (HS_SATCode.county)<>'mills' And
    (HS_SATCode.county)<>'monona' And
    (HS_SATCode.county)<>'montgomery' And
    (HS_SATCode.county)<>'o''brien' And
    (HS_SATCode.county)<>'osceola' And
    (HS_SATCode.county)<>'page' And
    (HS_SATCode.county)<>'pottawattamie' And
    (HS_SATCode.county)<>'plymouth' And
    (HS_SATCode.county)<>'ringold' And
    (HS_SATCode.county)<>'sac' And
    (HS_SATCode.county)<>'shelby' And
    (HS_SATCode.county)<>'sioux' And
    (HS_SATCode.county)<>'tayland' And
    (HS_SATCode.county)<>'union' And
    (HS_SATCode.county)<>'woodbury') AND
    ((HS_SATCode.mail_list)=1))
    ORDER BY HS_SATCode.mail_list, HS_SATCode.State,
    HS_SATCode.county

    Wow, that's a lotta brackets. And most of them are
    unnecessary. Let's reduce it a bit.
    WHERE
    HS_SATCode.State)<>'NE' AND HS_SATCode.mail_list =1
    OR (HS_SATCode.State='IA' AND
    HS_SATCode.county<>'Adair' )
    Can you see how this will send mail to Nebraska?

  • Search-Mailbox Search Query not returning correct results.

    Hi,
    I'd appreciate some assistance with the search and delete I'm trying to I'm run.
    I'm using the following command to find messages with a certain message class received before 01/01/14 in a mailbox.
    Get-Mailbox xxxxxxxxxxxxxxx | Search-Mailbox -SearchQuery '(Received:< 01/01/14) AND ("IPM.Note.Worksite.Ems.Filed")' -EstimateResultOnly | select displayname, success, resultitemscount,Resultitemssize
    When I first ran the command it returned 130,000 items, I ran it again with a -DeleteContent switch, all the items were successfully removed from the mailbox, great! However, when I look in the mailbox I can see ~1000 items with the message class in the command
    and dated 2013 or earlier, they meet the search criteria so I don't understand why when I run the command again it returns 0 items.
    Help!

    Hello,
    Based on your description, your cmdlet is ok.
    When you run the cmdlet with a -DeleteContent switch, the messages are not delete permanently. please try to run the cmdlet with a -DeleteContent switch and -Force switch to check the result.
    Besides, please use get-mailboxstatistics | fl cmdlet to check information about mailbox.
    Cara Chen
    TechNet Community Support

  • OraDynaSet not returning the correct number of records.

    Hello All, I am writing VB code in Excel 2007 and retrieving records from a Oracle 9i database. When I run my query from TOAD or any other sql app I get 56 records returned for certain query. However, when I do it from VB in excel and write the values to the excel file, it will not return the last 3 records, any suggestions? Here is part of my code:
    Worksheets("Report").Range("A3").Value = ""
    Worksheets("Report").Range("B3").Value = "Period"
    Worksheets("Report").Range("C3").Value = "Budget"
    Worksheets("Report").Range("D3").Value = "Projected"
    strSQL = "select group_name,period_name,budget_value,budget_value project from nlas_bdgt_loading_stg where plant = " & plant & " and group_number = 1 order by group_number, period_num"
    Set OraDynaSet = objDataBase.DBCreateDynaset(strSQL, 0&)
    If OraDynaSet.RecordCount > 0 Then
    OraDynaSet.MoveFirst
    'Loop the recordset for returned rows
    For i = 4 To OraDynaSet.RecordCount
    'Put the results in columns
    ActiveSheet.Cells(i, 1) = OraDynaSet.Fields(0).Value
    ActiveSheet.Cells(i, 2) = OraDynaSet.Fields(1).Value
    ActiveSheet.Cells(i, 3) = OraDynaSet.Fields(2).Value
    ActiveSheet.Cells(i, 4) = OraDynaSet.Fields(3).Value
    OraDynaSet.MoveNext
    Next i
    End If
    Thanks,
    Chris

    Hello.
    It's a bit weird. It works for me. If you have a look at oo4o help:
    CopyToClipboard Method
    Example
    Applies To
    OraDynaset
    Description
    Copy the rows from the dynaset to the Clipboard in text format.
    Usage
    OraDynaset.CopyToClipboard(NumOfRows ,colsep [optional],rowsep [optional] )
    Arguments
    NumOfRows     Number of rows to be copied to the dynaset ,
    colsep     Column separator in CHAR to be inserted between columns
    rowsep     Row seperater in CHAR to be inserted between Rows
    Remarks
    This method is used to facilitate transfer of data between Oracle Object for OLE’s cache (dynaset) and Windows applications such as Excel or Word. CopyToClipboard copies data starting from current position of the dynaset up to the last row.
    Default column separator is TAB (ASCII 9).
    Default row separator is ENTER (ASCII 13).
    Can it be that you don't have all the References needed?
    Octavio

  • Alerts not retrieving the correct number of records

    Hi,
    I have created alerts to run plans. These plans are getting records from DB and populating the ADC. The alerts are getting executed but are not retrieving the correct number of records.
    I have created 5 alerts to run 5 plans all in the same time. The error at the "Data Flow service status" window is :
    CACHED RESULT
         REQUEST ID: {4EB6B955-96B3-4AF2-B836-6C9F417D47A6}
         EXECPLAN ID: {11372B4D-9ACE-4CFB-831F-11028FF996D5}
         EXECPLAN NAME: xxxx
         FIX COUNT: 0
         START TIME: 6/8/2006 12:00:01 PM
         EXECUTION TIME: 0:00:00
         Sink Records Blocks Disk Blocks Fix Count Hit Count Execution Status
         0: 0 0 0 0 0
    Complete - ERROR Error while processing the data for the step 'SQL Query'
    This error is seen for 2-3 plans .......
    But if i execute the plan manually from design studio there is no error.
    So
    1. Do i need to change anything in the config files to increase the MAx memory block?
    2. Is there any way, the plans can be run one at a time i.e. configure alerts in such a way that if one plan finishes the other one starts automatically? Currently i have scheduled the plans to run at the same time using Alerts..
    Please help...
    Thanks

    Here is one 'culprit' you can verify. Open DesignStudio. You should "--not--" see any grids or icons on (near) the botton status row. If you see them - right click and delete them. These are plans with same_names put in 'locked' state. After you do this. close your design studio.
    Note- if you ever open a plan in designstudio, always "save" it and close it (exit). Donot click on window [x] mark to close the appl.
    After above verifrication -- restart EnterpriseLink and restart PlanMonitor, verify if everything runs fine.
    --sanjeev                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Oracle Procedure returning more number of records

    Hi,
    I have created an Oracle Procedure which is supposed to fetch a record as per the input parameter passed.
    The core query in the procedure is as below -
    SELECT DISTINCT col1 FROM my_tab WHERE col2 = 'Input parameter'
    Few of the input parms (col2) has more number of records (col1) and so the procedure gives an error like -
    'ORA-01422: exact fetch returns more than requested number of rows'
    Could you please let me know how can I modify the procedure so that it would return more number of records as the case may be?
    Thank you!

    It still gives me the same error when it encounters more than one output.Yes, I'm sure it does.
    But we can't tell you how to fix it because we don't know what you want.
    What's the purpose of the procedure?
    Is it to "spell check" the name of an intermediary? If so, you'll need to figure out what to do when you have more then one person with the same name.
    You can add AND ROWNUM = 1. Or perhaps you can trap the too_many_rows exception.
    Your procedure doesn't return anything (no out variables). Is that correct?
    Or is the purpose of the procedure to return the ID of the matching name?

  • Which system field returns the number of records returned after a select?

    Which system field returns the number of records returned after a select?
    a) sy-index
    b) sy-recno
    c) sy-lncnt
    d) sy-dbcnt
    e) sy-tabix

    Hi,
       SY-DBCNT
    Regards,
    Prashant

  • Fsbtodb macro in ufs_fs.h does not return correct disk address

    I'm using fsbtodb to translate the file inode block address to file system block address.
    What I've observed is fsbtodb returns corretct disk address for all the files if file system size < 1 TB.
    But, if ufs file system size is greater than 1 TB then for some files, the macro fsbtodb does not return correct value, it returns -ve value
    Is this a known issue and is this been resolved in new versions
    Thanks in advance,
    dhd

    returns corretct disk address for all the files if file system size < 1 TB.and
    if ufs file system size is greater than 1 TB then for some files, the macro fsbtodb does not return correct value, it returns -ve valueI seem to (very) vaguely recall that you shouldn't be surprised at this example of a functional filesize limitation.
    Solaris 9 was first shipped in May 2002 and though it was the first release of that OS to have extended file attributes I do not think the developers had intended the OS to use raw filesystems larger than 1TB natively.
    That operating environment is just too old to do exactly as you hope.
    Perhaps others can describe this at greater length.

  • Returning the number of records retrieved by a query

    Hi everyone,
    I did a search on this question, but I'm still unclear as to why it's so difficult to retrieve the number of records returned by a query.
    What is the easiest and most straight-foward way ?
    Thanks,
    Bob

    Shay
    I am confused. I still do not know how to achieve the count of records retrieved in a block. I have viewed the viewlet calculated field demo. I am unclear of what you were refering to when you said use the count as the function.
    I did try setting function to be "get_block_property('myblock',query_hits)", but this always had value of zero. But I do not think this is what you meant.
    Has anybody been able to answer the original question?

  • 8i Query not returning expected records

    Using Oracle 8i (8.1.7), a basic spatial query is not returning all the expected results. Table1 contains a variety of polygons; table2 is simply a set of rectangles. I want to return all objects from table1 that intersect a particular rectangle. The query below mostly works, but misses out some objects. On my system, 38 objects are returned where about 41 are expected; on the client system (which does not have identical data) the problem appears to be much worse, with hardly any objects being returned. The missing objects are clearly visible on the map, surrounded on all sides by objects which have been selected correctly. Help?
    Select t1.id from table1 t1, table2 t2
    where t1.IsCurrent = -1
    and (sdo_relate(t1.geoloc, t2.geoloc, 'mask=ANYINTERACT querytype=WINDOW') = 'TRUE')
    AND (t2.ID in ('001'));

    Hi,
    When the non-spatial predicate is dropped, you mentioned the
    objects are not missing. This means the spatial index (which will
    surely be used in this case) should be returning correct results.
    But it is possible the index is not used when other predicates are
    specified. Please look at the "execution plan" in both cases (when the
    objects are missing/not missing).
    Rewrite the query as:
    select /*+ ORDERED INDEX(t1 <spatial_index_name>) */ t1.id from t2, t1
    This should ensure a spatial-index-based evaluation.
    Let us know the execution plans and the behavior in either case.
    Btw, one thing to check is your tolerance values in
    user_sdo_geom_metadata.
    - Ravi.

Maybe you are looking for

  • Please help me to get a clue from this program

    I'm sorry to bother you with such stupid questions. I have to admit I'm just making my first steps in programming. So I have a program like this and don't understand how it works: // Masking sign extension. class HexByte { static public void main(Str

  • Payment method was declined. Why?

    Registering a profile displayed that my payment method was declined. Why?

  • Internet connection problems

    I have an iPhone 4 and just upgraded to IOS 7. When I am home and on we-fi it works fine. When I am out and have a cellular connection only, I have great difficulty in geting my browsers to work (Safari, Duck Duck go, iCabMobile, Chrome, and Dolphin)

  • Cannot install 10g on Windows XP

    I downloaded the 10g for windows installation and the installation fails at 100% when the OracleCService is trying to start up. I read on Metalink about the isClusterMode flag, and I have run both, the root setup.exe and the one that's inside the "in

  • Price and Licence Acroba XI Pro in WS 2008 12 Licenses

    Dear All We would like to install the Acroba XI Pro as a service hosted in WS 2008 for 12 users. Could you tell us the price of the license and requirements? Thank you