SELECT returns incomplete results

I have a table that has a AccountNumber and TransactionID field. It has a single clustered index on TransactionID. Executed the following SELECT statement:
SELECT * FROM casaTransaction WHERE AccountNumber = 2
the result was
AccountNumber TransactionID
2                      11
2                      12
the result did not reflect one record then tried the following statement
SELECT * FROM casaTransaction WHERE TransactionID = 13
result was
AccountNumber TransactionID
2                      13
I have already tried rebuilding the index and still having the same result. I have tried deleting the index and create the index again but TransactionID 13 is already gone. Can you please explain cause of this behavior and how to avoid it.
Thank you.
Raymund

DBCC results for 'PDB01_20140811'.
Service Broker Msg 9675, State 1: Message Types analyzed: 14.
Service Broker Msg 9676, State 1: Service Contracts analyzed: 6.
Service Broker Msg 9667, State 1: Services analyzed: 3.
Service Broker Msg 9668, State 1: Service Queues analyzed: 3.
Service Broker Msg 9669, State 1: Conversation Endpoints analyzed: 0.
Service Broker Msg 9674, State 1: Conversation Groups analyzed: 0.
Service Broker Msg 9670, State 1: Remote Service Bindings analyzed: 0.
Service Broker Msg 9605, State 1: Conversation Priorities analyzed: 0.
DBCC results for 'sys.sysrscols'.
There are 7924 rows in 101 pages for object "sys.sysrscols".
DBCC results for 'sys.sysrowsets'.
There are 393 rows in 5 pages for object "sys.sysrowsets".
DBCC results for 'sys.sysclones'.
There are 0 rows in 0 pages for object "sys.sysclones".
DBCC results for 'sys.sysallocunits'.
There are 435 rows in 6 pages for object "sys.sysallocunits".
DBCC results for 'sys.sysfiles1'.
There are 2 rows in 1 pages for object "sys.sysfiles1".
DBCC results for 'sys.sysseobjvalues'.
There are 0 rows in 0 pages for object "sys.sysseobjvalues".
DBCC results for 'sys.syspriorities'.
There are 0 rows in 0 pages for object "sys.syspriorities".
DBCC results for 'sys.sysdbfrag'.
There are 0 rows in 0 pages for object "sys.sysdbfrag".
DBCC results for 'sys.sysfgfrag'.
There are 0 rows in 1 pages for object "sys.sysfgfrag".
DBCC results for 'sys.sysdbfiles'.
There are 2 rows in 1 pages for object "sys.sysdbfiles".
DBCC results for 'sys.syspru'.
There are 0 rows in 0 pages for object "sys.syspru".
DBCC results for 'sys.sysbrickfiles'.
There are 0 rows in 0 pages for object "sys.sysbrickfiles".
DBCC results for 'sys.sysphfg'.
There are 1 rows in 1 pages for object "sys.sysphfg".
DBCC results for 'sys.sysprufiles'.
There are 2 rows in 1 pages for object "sys.sysprufiles".
DBCC results for 'sys.sysftinds'.
There are 0 rows in 0 pages for object "sys.sysftinds".
DBCC results for 'sys.sysowners'.
There are 17 rows in 1 pages for object "sys.sysowners".
DBCC results for 'sys.sysdbreg'.
There are 0 rows in 0 pages for object "sys.sysdbreg".
DBCC results for 'sys.sysprivs'.
There are 197 rows in 1 pages for object "sys.sysprivs".
DBCC results for 'sys.sysschobjs'.
There are 3745 rows in 63 pages for object "sys.sysschobjs".
DBCC results for 'sys.syscolpars'.
There are 11457 rows in 237 pages for object "sys.syscolpars".
DBCC results for 'sys.sysxlgns'.
There are 0 rows in 0 pages for object "sys.sysxlgns".
DBCC results for 'sys.sysxsrvs'.
There are 0 rows in 0 pages for object "sys.sysxsrvs".
DBCC results for 'sys.sysnsobjs'.
There are 1 rows in 1 pages for object "sys.sysnsobjs".
DBCC results for 'sys.sysusermsgs'.
There are 0 rows in 0 pages for object "sys.sysusermsgs".
DBCC results for 'sys.syscerts'.
There are 0 rows in 0 pages for object "sys.syscerts".
DBCC results for 'sys.sysrmtlgns'.
There are 0 rows in 0 pages for object "sys.sysrmtlgns".
DBCC results for 'sys.syslnklgns'.
There are 0 rows in 0 pages for object "sys.syslnklgns".
DBCC results for 'sys.sysxprops'.
There are 53 rows in 25 pages for object "sys.sysxprops".
DBCC results for 'sys.sysscalartypes'.
There are 34 rows in 1 pages for object "sys.sysscalartypes".
DBCC results for 'sys.systypedsubobjs'.
There are 0 rows in 0 pages for object "sys.systypedsubobjs".
DBCC results for 'sys.sysidxstats'.
There are 2148 rows in 47 pages for object "sys.sysidxstats".
DBCC results for 'sys.sysiscols'.
There are 2505 rows in 18 pages for object "sys.sysiscols".
DBCC results for 'sys.sysendpts'.
There are 0 rows in 0 pages for object "sys.sysendpts".
DBCC results for 'sys.syswebmethods'.
There are 0 rows in 0 pages for object "sys.syswebmethods".
DBCC results for 'sys.sysbinobjs'.
There are 23 rows in 1 pages for object "sys.sysbinobjs".
DBCC results for 'sys.sysaudacts'.
There are 0 rows in 0 pages for object "sys.sysaudacts".
DBCC results for 'sys.sysobjvalues'.
There are 3181 rows in 1242 pages for object "sys.sysobjvalues".
DBCC results for 'sys.syscscolsegments'.
There are 0 rows in 0 pages for object "sys.syscscolsegments".
DBCC results for 'sys.syscsdictionaries'.
There are 0 rows in 0 pages for object "sys.syscsdictionaries".
DBCC results for 'sys.sysclsobjs'.
There are 17 rows in 1 pages for object "sys.sysclsobjs".
DBCC results for 'sys.sysrowsetrefs'.
There are 0 rows in 0 pages for object "sys.sysrowsetrefs".
DBCC results for 'sys.sysremsvcbinds'.
There are 0 rows in 0 pages for object "sys.sysremsvcbinds".
DBCC results for 'sys.sysxmitqueue'.
There are 0 rows in 0 pages for object "sys.sysxmitqueue".
DBCC results for 'sys.sysrts'.
There are 1 rows in 1 pages for object "sys.sysrts".
DBCC results for 'sys.sysconvgroup'.
There are 0 rows in 0 pages for object "sys.sysconvgroup".
DBCC results for 'sys.sysdesend'.
There are 0 rows in 0 pages for object "sys.sysdesend".
DBCC results for 'sys.sysdercv'.
There are 0 rows in 0 pages for object "sys.sysdercv".
DBCC results for 'sys.syssingleobjrefs'.
There are 429 rows in 2 pages for object "sys.syssingleobjrefs".
DBCC results for 'sys.sysmultiobjrefs'.
There are 13309 rows in 113 pages for object "sys.sysmultiobjrefs".
DBCC results for 'sys.sysguidrefs'.
There are 0 rows in 0 pages for object "sys.sysguidrefs".
DBCC results for 'sys.sysfoqueues'.
There are 0 rows in 0 pages for object "sys.sysfoqueues".
DBCC results for 'sys.syschildinsts'.
There are 0 rows in 0 pages for object "sys.syschildinsts".
DBCC results for 'sys.syscompfragments'.
There are 0 rows in 0 pages for object "sys.syscompfragments".
DBCC results for 'sys.sysftsemanticsdb'.
There are 0 rows in 0 pages for object "sys.sysftsemanticsdb".
DBCC results for 'sys.sysftstops'.
There are 0 rows in 0 pages for object "sys.sysftstops".
DBCC results for 'sys.sysftproperties'.
There are 0 rows in 0 pages for object "sys.sysftproperties".
DBCC results for 'sys.sysxmitbody'.
There are 0 rows in 0 pages for object "sys.sysxmitbody".
DBCC results for 'sys.sysfos'.
There are 0 rows in 0 pages for object "sys.sysfos".
DBCC results for 'sys.sysqnames'.
There are 99 rows in 1 pages for object "sys.sysqnames".
DBCC results for 'sys.sysxmlcomponent'.
There are 100 rows in 1 pages for object "sys.sysxmlcomponent".
DBCC results for 'sys.sysxmlfacet'.
There are 112 rows in 1 pages for object "sys.sysxmlfacet".
DBCC results for 'sys.sysxmlplacement'.
There are 19 rows in 1 pages for object "sys.sysxmlplacement".
DBCC results for 'sys.sysobjkeycrypts'.
There are 0 rows in 0 pages for object "sys.sysobjkeycrypts".
DBCC results for 'sys.sysasymkeys'.
There are 0 rows in 0 pages for object "sys.sysasymkeys".
DBCC results for 'sys.syssqlguides'.
There are 0 rows in 0 pages for object "sys.syssqlguides".
DBCC results for 'sys.sysbinsubobjs'.
There are 3 rows in 1 pages for object "sys.sysbinsubobjs".
DBCC results for 'sys.syssoftobjrefs'.
There are 2789 rows in 38 pages for object "sys.syssoftobjrefs".
DBCC results for 'TelTellerTransfer'.
There are 634 rows in 27 pages for object "TelTellerTransfer".
DBCC results for 'gMSSQLFile'.
There are 2 rows in 1 pages for object "gMSSQLFile".
DBCC results for 'casaBatchImportTransaction'.
There are 0 rows in 0 pages for object "casaBatchImportTransaction".
DBCC results for 'tdBranchParameter'.
There are 5 rows in 1 pages for object "tdBranchParameter".
DBCC results for 'pawnInventories'.
There are 0 rows in 0 pages for object "pawnInventories".
DBCC results for 'casaGLGroup'.
There are 2 rows in 1 pages for object "casaGLGroup".
DBCC results for 'casaSignatories'.
There are 16 rows in 1 pages for object "casaSignatories".
DBCC results for 'wizReportType'.
There are 25 rows in 1 pages for object "wizReportType".
DBCC results for 'genSystemMessage'.
There are 0 rows in 0 pages for object "genSystemMessage".
DBCC results for 'pawnGroup1'.
There are 0 rows in 0 pages for object "pawnGroup1".
DBCC results for 'tdClient'.
There are 7613 rows in 765 pages for object "tdClient".
DBCC results for 'genPurgeDataHistory'.
There are 0 rows in 0 pages for object "genPurgeDataHistory".
DBCC results for 'casaOneDayClearingParam'.
There are 1 rows in 1 pages for object "casaOneDayClearingParam".
DBCC results for 'tdBankLetter'.
There are 0 rows in 0 pages for object "tdBankLetter".
DBCC results for 'genMessage'.
There are 0 rows in 1 pages for object "genMessage".
DBCC results for 'pawnGroup2'.
There are 0 rows in 0 pages for object "pawnGroup2".
DBCC results for 'cifEntityType'.
There are 4 rows in 1 pages for object "cifEntityType".
DBCC results for 'casaAccountNoRegister'.
There are 0 rows in 0 pages for object "casaAccountNoRegister".
DBCC results for 'pawnTag'.
There are 0 rows in 0 pages for object "pawnTag".
DBCC results for 'cifClient'.
There are 3458 rows in 469 pages for object "cifClient".
DBCC results for 'loanAmortization'.
There are 62218 rows in 4397 pages for object "loanAmortization".
DBCC results for 'cifWatchListType'.
There are 3 rows in 1 pages for object "cifWatchListType".
DBCC results for 'tdRegister'.
There are 192 rows in 3 pages for object "tdRegister".
DBCC results for 'tdLedger'.
There are 121 rows in 37 pages for object "tdLedger".
DBCC results for 'casaBatchIndividual'.
There are 0 rows in 0 pages for object "casaBatchIndividual".
DBCC results for 'loanAmortizationType'.
There are 10 rows in 1 pages for object "loanAmortizationType".
DBCC results for 'cifWatchList'.
There are 0 rows in 1 pages for object "cifWatchList".
DBCC results for 'rptReport'.
There are 837 rows in 32 pages for object "rptReport".
DBCC results for 'cifBarangay'.
There are 1413 rows in 25 pages for object "cifBarangay".
DBCC results for 'loanApplication'.
There are 472 rows in 61 pages for object "loanApplication".
Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 219199881, index ID 1, partition ID 72057594046447616, alloc unit ID 72057594050510848 (type In-row data). Index node page (1:94971), slot 417 refers to child page (1:96936) and previous child (1:96592), but they were not encountered.
Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 219199881, index ID 1, partition ID 72057594046447616, alloc unit ID 72057594050510848 (type In-row data). Index node page (1:94971), slot 418 refers to child page (1:96937) and previous child (1:96936), but they were not encountered.
Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 219199881, index ID 1, partition ID 72057594046447616, alloc unit ID 72057594050510848 (type In-row data). Index node page (1:94971), slot 419 refers to child page (1:96938) and previous child (1:96937), but they were not encountered.
Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 219199881, index ID 1, partition ID 72057594046447616, alloc unit ID 72057594050510848 (type In-row data). Index node page (1:94971), slot 420 refers to child page (1:96939) and previous child (1:96938), but they were not encountered.
DBCC results for 'casaTransaction'.
There are 43634 rows in 4380 pages for object "casaTransaction".
CHECKDB found 0 allocation errors and 4 consistency errors in table 'casaTransaction' (object ID 219199881).
DBCC results for 'genCASAPrintingParam'.
There are 5 rows in 1 pages for object "genCASAPrintingParam".
DBCC results for 'loanAutoTranEntry'.
There are 18591 rows in 331 pages for object "loanAutoTranEntry".
DBCC results for 'xlsQueryTemplate'.
There are 0 rows in 0 pages for object "xlsQueryTemplate".
DBCC results for 'genLoansPrintingParam'.
There are 1 rows in 1 pages for object "genLoansPrintingParam".
DBCC results for 'loanBankLetter'.
There are 3 rows in 1 pages for object "loanBankLetter".
DBCC results for 'loanBorrowerFirm'.
There are 6 rows in 1 pages for object "loanBorrowerFirm".
Msg 8914, Level 16, State 1, Line 1
Incorrect PFS free space information for page (1:15707) in object ID 320772250, index ID 0, partition ID 72057594052542464, alloc unit ID 72057594065125376 (type In-row data). Expected value  80_PCT_FULL, actual value 100_PCT_FULL.
DBCC results for 'tdTransaction'.
There are 4412 rows in 149 pages for object "tdTransaction".
CHECKDB found 0 allocation errors and 1 consistency errors in table 'tdTransaction' (object ID 320772250).
DBCC results for 'loanBorrowerMajorType'.
There are 3 rows in 1 pages for object "loanBorrowerMajorType".
DBCC results for 'smsIn'.
There are 6 rows in 1 pages for object "smsIn".
DBCC results for 'loanBorrowerSubType'.
There are 3 rows in 1 pages for object "loanBorrowerSubType".
DBCC results for 'smsInvalid'.
There are 2 rows in 1 pages for object "smsInvalid".
DBCC results for 'genTDPrintingParam'.
There are 5 rows in 1 pages for object "genTDPrintingParam".
Msg 8979, Level 16, State 1, Line 1
Table error: Object ID 382624406, index ID 9, partition ID 2558350463467520, alloc unit ID 2558350463467520 (type In-row data). Page (1:20385) is missing references from parent (unknown) and previous (page (1:96925)) nodes. Possible bad root entry in system
catalog.
DBCC results for 'genPrimaryKeys'.
There are 40459 rows in 489 pages for object "genPrimaryKeys".
CHECKDB found 0 allocation errors and 1 consistency errors in table 'genPrimaryKeys' (object ID 382624406).
DBCC results for 'ReportDate'.
There are 15 rows in 1 pages for object "ReportDate".
DBCC results for 'smsMessage'.
There are 5 rows in 1 pages for object "smsMessage".
DBCC results for 'loanBranchParameter'.
There are 5 rows in 1 pages for object "loanBranchParameter".
DBCC results for 'genSessionLog'.
There are 36 rows in 2 pages for object "genSessionLog".
DBCC results for 'smsOut'.
There are 6 rows in 1 pages for object "smsOut".
DBCC results for 'genBranchOBO'.
There are 0 rows in 0 pages for object "genBranchOBO".
DBCC results for 'smsValid'.
There are 4 rows in 1 pages for object "smsValid".
DBCC results for 'TelleringSQLReport'.
There are 0 rows in 0 pages for object "TelleringSQLReport".
DBCC results for 'genTellerValidationPrintingParam'.
There are 2 rows in 1 pages for object "genTellerValidationPrintingParam".
DBCC results for 'loanCollateral'.
There are 0 rows in 1 pages for object "loanCollateral".
DBCC results for 'cifRiskAssessmentCriteria'.
There are 0 rows in 0 pages for object "cifRiskAssessmentCriteria".
DBCC results for 'genDocuments'.
There are 30 rows in 1 pages for object "genDocuments".
DBCC results for 'casaOutwardCheckSQLReport'.
There are 0 rows in 0 pages for object "casaOutwardCheckSQLReport".
DBCC results for 'glBranchGL'.
There are 283108 rows in 4805 pages for object "glBranchGL".
DBCC results for 'glOBOGL'.
There are 0 rows in 0 pages for object "glOBOGL".
DBCC results for 'loanCollateralLink'.
There are 0 rows in 1 pages for object "loanCollateralLink".
DBCC results for 'cifRiskAssessmentClient'.
There are 0 rows in 0 pages for object "cifRiskAssessmentClient".
DBCC results for 'genDocumentSubmitted'.
There are 4178 rows in 47 pages for object "genDocumentSubmitted".
DBCC results for 'cifProvince'.
There are 88 rows in 1 pages for object "cifProvince".
DBCC results for 'glBranchJournalEntry'.
There are 17468 rows in 578 pages for object "glBranchJournalEntry".
DBCC results for 'loanCollateralLocation'.
There are 85 rows in 2 pages for object "loanCollateralLocation".
DBCC results for 'genRateRange'.
There are 5 rows in 1 pages for object "genRateRange".
DBCC results for 'casaInwardCheckSQLReport'.
There are 0 rows in 0 pages for object "casaInwardCheckSQLReport".
DBCC results for 'casaInsurancePremium'.
There are 0 rows in 0 pages for object "casaInsurancePremium".
DBCC results for 'glBranchTranSummary'.
There are 13056 rows in 239 pages for object "glBranchTranSummary".
DBCC results for 'loanCollateralMajorStatus'.
There are 6 rows in 1 pages for object "loanCollateralMajorStatus".
DBCC results for 'genTermRange'.
There are 9 rows in 1 pages for object "genTermRange".
DBCC results for 'glChartOfAccount'.
There are 1147 rows in 30 pages for object "glChartOfAccount".
DBCC results for 'loanCollateralSubStatus'.
There are 5 rows in 1 pages for object "loanCollateralSubStatus".
DBCC results for 'REPORT_Layouts'.
There are 25 rows in 11 pages for object "REPORT_Layouts".
DBCC results for 'glClassificationOfAccount'.
There are 6 rows in 1 pages for object "glClassificationOfAccount".
DBCC results for 'loanCollectionSheet'.
There are 5068 rows in 265 pages for object "loanCollectionSheet".
DBCC results for 'genGLPrintingParam'.
There are 1 rows in 1 pages for object "genGLPrintingParam".
DBCC results for 'cifRegion'.
There are 18 rows in 1 pages for object "cifRegion".
DBCC results for 'REPORT_Properties'.
There are 25 rows in 11 pages for object "REPORT_Properties".
DBCC results for 'glDepartment'.
There are 5 rows in 1 pages for object "glDepartment".
DBCC results for 'loanComakerLink'.
There are 433 rows in 5 pages for object "loanComakerLink".
DBCC results for 'casaCheckBankSource'.
There are 1 rows in 1 pages for object "casaCheckBankSource".
DBCC results for 'genSDRL'.
There are 2675 rows in 109 pages for object "genSDRL".
DBCC results for 'glParameter'.
There are 1 rows in 1 pages for object "glParameter".
DBCC results for 'sys.filestream_tombstone_650537451'.
There are 0 rows in 0 pages for object "sys.filestream_tombstone_650537451".
DBCC results for 'casaLetter'.
There are 3 rows in 1 pages for object "casaLetter".
DBCC results for 'loanComputationSheet'.
There are 1304 rows in 141 pages for object "loanComputationSheet".
DBCC results for 'REPORT_Bands'.
There are 172 rows in 19 pages for object "REPORT_Bands".
DBCC results for 'sys.filetable_updates_665157515'.
There are 0 rows in 0 pages for object "sys.filetable_updates_665157515".
DBCC results for 'sys.syscommittab'.
There are 0 rows in 0 pages for object "sys.syscommittab".
DBCC results for 'glTicket'.
There are 0 rows in 1 pages for object "glTicket".
DBCC results for 'telSSSClientInfo'.
There are 0 rows in 0 pages for object "telSSSClientInfo".
DBCC results for 'casaLedger'.
There are 954 rows in 206 pages for object "casaLedger".
DBCC results for 'loanDeduction'.
There are 1 rows in 1 pages for object "loanDeduction".
DBCC results for 'cifClientNameSuffix'.
There are 2 rows in 1 pages for object "cifClientNameSuffix".
DBCC results for 'REPORT_Objects'.
There are 980 rows in 61 pages for object "REPORT_Objects".
DBCC results for 'glTicketDescription'.
There are 337 rows in 9 pages for object "glTicketDescription".
DBCC results for 'loanDiscountAmortization'.
There are 11041 rows in 644 pages for object "loanDiscountAmortization".
DBCC results for 'loanEconomicActivity'.
There are 17 rows in 1 pages for object "loanEconomicActivity".
DBCC results for 'cifCity'.
There are 668 rows in 7 pages for object "cifCity".
DBCC results for 'REPORT_Variables'.
There are 183 rows in 20 pages for object "REPORT_Variables".
DBCC results for 'loanExcelSource'.
There are 366 rows in 5 pages for object "loanExcelSource".
DBCC results for 'convertCheckDeposit'.
There are 84 rows in 4 pages for object "convertCheckDeposit".
DBCC results for 'loanFormula'.
There are 32 rows in 1 pages for object "loanFormula".
DBCC results for 'REPORT_Memos'.
There are 0 rows in 0 pages for object "REPORT_Memos".
DBCC results for 'genSystems'.
There are 7 rows in 1 pages for object "genSystems".
DBCC results for 'casaCheckImportTableRCBC'.
There are 0 rows in 0 pages for object "casaCheckImportTableRCBC".
DBCC results for 'loanConversationHistory'.
There are 1 rows in 1 pages for object "loanConversationHistory".
DBCC results for 'convertClient'.
There are 157 rows in 6 pages for object "convertClient".
DBCC results for 'loanFRPStatus'.
There are 5 rows in 1 pages for object "loanFRPStatus".
Msg 8978, Level 16, State 1, Line 1
Table error: Object ID 857106144, index ID 1, partition ID 72057594042712064, alloc unit ID 72057594046775296 (type In-row data). Page (1:81030) is missing a reference from previous page (1:96840). Possible chain linkage problem.
DBCC results for 'genLogFile'.
There are 77529 rows in 2212 pages for object "genLogFile".
CHECKDB found 0 allocation errors and 1 consistency errors in table 'genLogFile' (object ID 857106144).
DBCC results for 'rptReportGroup'.
There are 61 rows in 1 pages for object "rptReportGroup".
DBCC results for 'convertLedger'.
There are 157 rows in 6 pages for object "convertLedger".
DBCC results for 'REPORT_Images'.
There are 0 rows in 0 pages for object "REPORT_Images".
DBCC results for 'loanSubSystemTranCode'.
There are 0 rows in 0 pages for object "loanSubSystemTranCode".
DBCC results for 'loanGLGroup'.
There are 42 rows in 4 pages for object "loanGLGroup".
DBCC results for 'loanAPDSImport'.
There are 0 rows in 0 pages for object "loanAPDSImport".
DBCC results for 'gODBCFile'.
There are 3 rows in 1 pages for object "gODBCFile".
DBCC results for 'loanCreditLineTransaction'.
There are 0 rows in 0 pages for object "loanCreditLineTransaction".
DBCC results for 'loanGroup1'.
There are 8 rows in 1 pages for object "loanGroup1".
DBCC results for 'REPORT_DevMode'.
There are 0 rows in 0 pages for object "REPORT_DevMode".
Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 935010412, index ID 1, partition ID 342751819071488, alloc unit ID 342751819071488 (type In-row data). Index node page (1:72875), slot 275 refers to child page (1:96880) and previous child (1:72804), but they were not encountered.
Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 935010412, index ID 1, partition ID 342751819071488, alloc unit ID 342751819071488 (type In-row data). Index node page (1:72875), slot 276 refers to child page (1:96881) and previous child (1:96880), but they were not encountered.
Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 935010412, index ID 1, partition ID 342751819071488, alloc unit ID 342751819071488 (type In-row data). Index node page (1:72875), slot 277 refers to child page (1:96882) and previous child (1:96881), but they were not encountered.
Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 935010412, index ID 1, partition ID 342751819071488, alloc unit ID 342751819071488 (type In-row data). Index node page (1:72875), slot 278 refers to child page (1:96883) and previous child (1:96882), but they were not encountered.
DBCC results for 'telTellerTransaction'.
There are 53062 rows in 1891 pages for object "telTellerTransaction".
CHECKDB found 0 allocation errors and 4 consistency errors in table 'telTellerTransaction' (object ID 935010412).
DBCC results for 'loanGroup2'.
There are 9 rows in 1 pages for object "loanGroup2".
DBCC results for 'loanGroup3'.
There are 434 rows in 7 pages for object "loanGroup3".
DBCC results for 'genAMLATranCode'.
There are 573 rows in 14 pages for object "genAMLATranCode".
DBCC results for 'genPassbookPrinter'.
There are 1 rows in 1 pages for object "genPassbookPrinter".
DBCC results for 'loanIncome'.
There are 19931 rows in 927 pages for object "loanIncome".
DBCC results for 'tdAccount'.
There are 13 rows in 2 pages for object "tdAccount".
DBCC results for 'casaCheckImportTableBOC'.
There are 0 rows in 0 pages for object "casaCheckImportTableBOC".
DBCC results for 'loanInsurance'.
There are 2 rows in 1 pages for object "loanInsurance".
DBCC results for 'casaBatchGroup'.
There are 1 rows in 1 pages for object "casaBatchGroup".
DBCC results for 'tdParameter'.
There are 1 rows in 1 pages for object "tdParameter".
DBCC results for 'loanInterestType'.
There are 3 rows in 1 pages for object "loanInterestType".
DBCC results for 'glBranchUploadInfo'.
There are 301 rows in 4 pages for object "glBranchUploadInfo".
DBCC results for 'glAutoTranEntry'.
There are 3887 rows in 60 pages for object "glAutoTranEntry".
DBCC results for 'tdSignatories'.
There are 4 rows in 1 pages for object "tdSignatories".
DBCC results for 'loanLedger'.
There are 2176 rows in 1090 pages for object "loanLedger".
DBCC results for 'telTeller'.
There are 290 rows in 6 pages for object "telTeller".
DBCC results for 'loanLedgerDeleted'.
There are 85 rows in 18 pages for object "loanLedgerDeleted".
DBCC results for 'loanMenuButtonAccess'.
There are 254 rows in 5 pages for object "loanMenuButtonAccess".
DBCC results for 'loanMFAccountOfficer'.
There are 0 rows in 0 pages for object "loanMFAccountOfficer".
DBCC results for 'glTransactionDescription'.
There are 0 rows in 1 pages for object "glTransactionDescription".
DBCC results for 'loanMFCenter'.
There are 0 rows in 0 pages for object "loanMFCenter".
DBCC results for 'glTransactionRemarks'.
There are 0 rows in 1 pages for object "glTransactionRemarks".
DBCC results for 'loanMFGroup'.
There are 0 rows in 0 pages for object "loanMFGroup".
DBCC results for 'CASA_SQLReport'.
There are 0 rows in 0 pages for object "CASA_SQLReport".
DBCC results for 'misCOHCIBTran'.
There are 2407 rows in 48 pages for object "misCOHCIBTran".
DBCC results for 'loanMFOfficer'.
There are 0 rows in 0 pages for object "loanMFOfficer".
DBCC results for 'loanInsuranceRate'.
There are 0 rows in 0 pages for object "loanInsuranceRate".
DBCC results for 'wizTableBase'.
There are 17 rows in 1 pages for object "wizTableBase".
DBCC results for 'loanMFProject'.
There are 0 rows in 0 pages for object "loanMFProject".
DBCC results for 'wizTableJoin'.
There are 271 rows in 5 pages for object "wizTableJoin".
DBCC results for 'cifClientImage'.
There are 3458 rows in 52 pages for object "cifClientImage".
DBCC results for 'loanMFSourceOfFund'.
There are 0 rows in 0 pages for object "loanMFSourceOfFund".
DBCC results for 'secUserOverride'.
There are 21 rows in 1 pages for object "secUserOverride".
DBCC results for 'sys.queue_messages_1335011837'.
There are 0 rows in 0 pages for object "sys.queue_messages_1335011837".
DBCC results for 'genTransactionCode'.
There are 433 rows in 18 pages for object "genTransactionCode".
DBCC results for 'wizTemplate'.
There are 7 rows in 1 pages for object "wizTemplate".
DBCC results for 'loanNewCategory'.
There are 10 rows in 1 pages for object "loanNewCategory".
DBCC results for 'cifapdsRegion'.
There are 0 rows in 0 pages for object "cifapdsRegion".
DBCC results for 'casaCheckImportTableAUB'.
There are 0 rows in 0 pages for object "casaCheckImportTableAUB".
DBCC results for 'loanAIR'.
There are 10552 rows in 316 pages for object "loanAIR".
DBCC results for 'tempsecUserGroup'.
There are 1 rows in 1 pages for object "tempsecUserGroup".
DBCC results for 'sys.queue_messages_1367011951'.
There are 0 rows in 0 pages for object "sys.queue_messages_1367011951".
DBCC results for 'genAmountRange'.
There are 91 rows in 2 pages for object "genAmountRange".
DBCC results for 'loanNewSubCategory'.
There are 25 rows in 1 pages for object "loanNewSubCategory".
DBCC results for 'cifClientRelation'.
There are 25 rows in 1 pages for object "cifClientRelation".
DBCC results for 'cifapdsDivision'.
There are 0 rows in 0 pages for object "cifapdsDivision".
DBCC results for 'casaBatchTransaction'.
There are 0 rows in 0 pages for object "casaBatchTransaction".
DBCC results for 'webxlsReportFilter'.
There are 0 rows in 0 pages for object "webxlsReportFilter".
DBCC results for 'tdGroup1'.
There are 2 rows in 1 pages for object "tdGroup1".
DBCC results for 'sys.queue_messages_1399012065'.
There are 0 rows in 0 pages for object "sys.queue_messages_1399012065".
DBCC results for 'webxlsReportType'.
There are 16 rows in 1 pages for object "webxlsReportType".
DBCC results for 'tdAIP'.
There are 2576 rows in 156 pages for object "tdAIP".
DBCC results for 'loanOldCategory'.
There are 13 rows in 1 pages for object "loanOldCategory".
DBCC results for 'cifapdsStation'.
There are 0 rows in 0 pages for object "cifapdsStation".
DBCC results for 'webxlsTableBase'.
There are 12 rows in 1 pages for object "webxlsTableBase".
DBCC results for 'tdAIPLedger'.
There are 0 rows in 0 pages for object "tdAIPLedger".
DBCC results for 'genHeader'.
There are 1 rows in 1 pages for object "genHeader".
DBCC results for 'tdAccountStatus'.
There are 0 rows in 0 pages for object "tdAccountStatus".
DBCC results for 'loanOldSubCategory'.
There are 7 rows in 1 pages for object "loanOldSubCategory".
DBCC results for 'casaAccruedInterest'.
There are 9051 rows in 149 pages for object "casaAccruedInterest".
DBCC results for 'cifapdsDeduction'.
There are 0 rows in 0 pages for object "cifapdsDeduction".
DBCC results for 'webxlsTableJoin'.
There are 218 rows in 4 pages for object "webxlsTableJoin".
DBCC results for 'tdInterestRate'.
There are 18 rows in 1 pages for object "tdInterestRate".
DBCC results for 'loanParameter'.
There are 1 rows in 1 pages for object "loanParameter".
DBCC results for 'genTables'.
There are 93 rows in 1 pages for object "genTables".
DBCC results for 'webxlsTemplate'.
There are 0 rows in 0 pages for object "webxlsTemplate".
DBCC results for 'genDummyTable'.
There are 0 rows in 0 pages for object "genDummyTable".
DBCC results for 'loanPurpose'.
There are 44 rows in 1 pages for object "loanPurpose".
DBCC results for 'casaInwardStatus'.
There are 11 rows in 1 pages for object "casaInwardStatus".
DBCC results for 'tdRenewalFile'.
There are 0 rows in 0 pages for object "tdRenewalFile".
DBCC results for 'genSQLCommand'.
There are 0 rows in 0 pages for object "genSQLCommand".
DBCC results for 'loanRate'.
There are 34 rows in 2 pages for object "loanRate".
DBCC results for 'casaInterestRateRange'.
There are 0 rows in 0 pages for object "casaInterestRateRange".
DBCC results for 'loanSchedule'.
There are 11 rows in 1 pages for object "loanSchedule".
DBCC results for 'casaCheckImportTableUCPB'.
There are 0 rows in 0 pages for object "casaCheckImportTableUCPB".
DBCC results for 'genParameter'.
There are 1 rows in 1 pages for object "genParameter".
DBCC results for 'dtproperties'.
There are 0 rows in 0 pages for object "dtproperties".
DBCC results for 'casaParameter'.
There are 1 rows in 1 pages for object "casaParameter".
DBCC results for 'loanSecurityType'.
There are 15 rows in 1 pages for object "loanSecurityType".
DBCC results for 'glCurrency'.
There are 5 rows in 1 pages for object "glCurrency".
DBCC results for 'genSubModule'.
There are 9 rows in 1 pages for object "genSubModule".
DBCC results for 'secUserUpdateHistory'.
There are 11 rows in 1 pages for object "secUserUpdateHistory".
DBCC results for 'loanSpecificPurpose'.
There are 288 rows in 5 pages for object "loanSpecificPurpose".
DBCC results for 'glCurrencyRateHistory'.
There are 0 rows in 0 pages for object "glCurrencyRateHistory".
DBCC results for 'genTransactionGroup'.
There are 20 rows in 1 pages for object "genTransactionGroup".
DBCC results for 'pawnAppraisers'.
There are 0 rows in 0 pages for object "pawnAppraisers".
DBCC results for 'casaCheckRegister'.
There are 0 rows in 1 pages for object "casaCheckRegister".
DBCC results for 'loanStatus'.
There are 5 rows in 1 pages for object "loanStatus".
DBCC results for 'loanLedgerPrintParam'.
There are 1 rows in 1 pages for object "loanLedgerPrintParam".
DBCC results for 'pawnCategories'.
There are 0 rows in 0 pages for object "pawnCategories".
DBCC results for 'loanSignatories'.
There are 0 rows in 1 pages for object "loanSignatories".
DBCC results for 'loanTermClassification'.
There are 3 rows in 1 pages for object "loanTermClassification".
DBCC results for 'secUser'.
There are 18 rows in 2 pages for object "secUser".
DBCC results for 'loanAPDSImportHistory'.
There are 0 rows in 0 pages for object "loanAPDSImportHistory".
DBCC results for 'genHoliday'.
There are 59 rows in 1 pages for object "genHoliday".
DBCC results for 'pawnLedgers'.
There are 0 rows in 0 pages for object "pawnLedgers".
DBCC results for 'casaAccountStatus'.
There are 3 rows in 1 pages for object "casaAccountStatus".
DBCC results for 'loanTransaction'.
There are 10627 rows in 1487 pages for object "loanTransaction".
DBCC results for 'LoanAPDSImportRAW'.
There are 0 rows in 0 pages for object "LoanAPDSImportRAW".
DBCC results for 'casaPassbookRegister'.
There are 470 rows in 6 pages for object "casaPassbookRegister".
DBCC results for 'pawnParameter'.
There are 0 rows in 0 pages for object "pawnParameter".
DBCC results for 'casaAccountType'.
There are 6 rows in 1 pages for object "casaAccountType".
DBCC results for 'loanType'.
There are 5 rows in 1 pages for object "loanType".
DBCC results for 'casaCheckDeposit'.
There are 225 rows in 9 pages for object "casaCheckDeposit".
DBCC results for 'wizCrystalReportTemplate'.
There are 3 rows in 1 pages for object "wizCrystalReportTemplate".
DBCC results for 'pawnPrintingParameter'.
There are 0 rows in 0 pages for object "pawnPrintingParameter".
DBCC results for 'tdProduct'.
There are 1 rows in 1 pages for object "tdProduct".
DBCC results for 'arapTransaction'.
There are 1 rows in 1 pages for object "arapTransaction".
DBCC results for 'casaTranSQLReport'.
There are 0 rows in 0 pages for object "casaTranSQLReport".
DBCC results for 'casaCheckBookletRegister'.
There are 0 rows in 1 pages for object "casaCheckBookletRegister".
DBCC results for 'wizFRPParameter'.
There are 353 rows in 11 pages for object "wizFRPParameter".
DBCC results for 'pawnProducts'.
There are 0 rows in 0 pages for object "pawnProducts".
DBCC results for 'arapTransactionCode'.
There are 0 rows in 1 pages for object "arapTransactionCode".
DBCC results for 'pawnTransactions'.
There are 0 rows in 0 pages for object "pawnTransactions".
DBCC results for 'casaCheckType'.
There are 5 rows in 1 pages for object "casaCheckType".
DBCC results for 'tdGLGroup'.
There are 2 rows in 1 pages for object "tdGLGroup".
DBCC results for 'casaGroup1'.
There are 2 rows in 1 pages for object "casaGroup1".
DBCC results for 'casaGroup2'.
There are 0 rows in 1 pages for object "casaGroup2".
DBCC results for 'genSQLFile'.
There are 0 rows in 0 pages for object "genSQLFile".
DBCC results for 'casaGroup3'.
There are 0 rows in 1 pages for object "casaGroup3".
DBCC results for 'casaHoldAmount'.
There are 8 rows in 1 pages for object "casaHoldAmount".
DBCC results for 'tdSQLTDReports'.
There are 0 rows in 0 pages for object "tdSQLTDReports".
DBCC results for 'cifParameter'.
There are 1 rows in 1 pages for object "cifParameter".
DBCC results for 'casaPostedInterest'.
There are 2862 rows in 33 pages for object "casaPostedInterest".
DBCC results for 'sysdiagrams'.
There are 0 rows in 0 pages for object "sysdiagrams".
DBCC results for 'loanGroup4'.
There are 12 rows in 1 pages for object "loanGroup4".
DBCC results for 'casaSPCheckRegister'.
There are 0 rows in 1 pages for object "casaSPCheckRegister".
DBCC results for 'genAMLATranGroup'.
There are 13 rows in 1 pages for object "genAMLATranGroup".
DBCC results for 'secUserBlockedHistory'.
There are 0 rows in 0 pages for object "secUserBlockedHistory".
DBCC results for 'genTranCodeMiscParameter'.
There are 763 rows in 15 pages for object "genTranCodeMiscParameter".
DBCC results for 'secUserAccessLink'.
There are 18518 rows in 171 pages for object "secUserAccessLink".
DBCC results for 'secOverride'.
There are 10248 rows in 165 pages for object "secOverride".
DBCC results for 'loanBranchMicroParam'.
There are 4 rows in 1 pages for object "loanBranchMicroParam".
DBCC results for 'cifEmployeeType'.
There are 14 rows in 1 pages for object "cifEmployeeType".
DBCC results for 'genCyber'.
There are 1 rows in 1 pages for object "genCyber".
DBCC results for 'casaProduct'.
There are 2 rows in 1 pages for object "casaProduct".
DBCC results for 'telSSSTransaction'.
There are 0 rows in 0 pages for object "telSSSTransaction".
DBCC results for 'cifEducation'.
There are 0 rows in 1 pages for object "cifEducation".
DBCC results for 'secUserAccess'.
There are 764 rows in 15 pages for object "secUserAccess".
DBCC results for 'cifOccupation'.
There are 416 rows in 4 pages for object "cifOccupation".
DBCC results for 'genBranch'.
There are 4 rows in 1 pages for object "genBranch".
DBCC results for 'casaCheckImportTable'.
There are 0 rows in 0 pages for object "casaCheckImportTable".
DBCC results for 'genVersion'.
There are 58 rows in 1 pages for object "genVersion".
DBCC results for 'secUserGroup'.
There are 25 rows in 1 pages for object "secUserGroup".
DBCC results for 'cifTitle'.
There are 11 rows in 1 pages for object "cifTitle".
DBCC results for 'casaInwardClearingBank'.
There are 0 rows in 1 pages for object "casaInwardClearingBank".
CHECKDB found 0 allocation errors and 11 consistency errors in database 'PDB01_20140811'.
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (PDB01_20140811).
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

Similar Messages

  • Oracle view returns incomplete result

    Hello, I have a view on oracle table, but sometimes I found the result from the view is not complete.
    It only returns part of the rows, at the meanwhile, the performance becomes very bad.
    (the only change on the table is a new index be created on it)
    After a did the table EXP / IMP, the performance back to normal (this is what I expedted), AND THE VIEW RETURNS FULL RESULT!
    It is so weird I cannot believe this can happen...
    Is it possilbe that oracle returns incompleted result rows without error?
    Edited by: user2406411 on 20-May-2012 10:06 AM
    Edited by: user2406411 on 20-May-2012 10:07 AM

    It only returns part of the rows, at the meanwhile, the performance becomes very bad.does it mean the select from view has been stopped/interrupted before it finished itself?
    Oracle could choose different plan with the index introduced. This plan could return first portion of rows fast, then continue to work on following portion, ant that took more time, but you did not want to wait and stop it.
    After exp/imp oracle may choose different plan that returns all rows at once.
    Is it possilbe that oracle returns incompleted result rows without error?normally not.
    though years ago I had one similar situation. The cause was a corrupted index. If query used index it returned less rows, with full scan - more. I had to rebuild the index to fix it.

  • SELECT returns no result when there is a default namespace definition inXML

    Hi,
    I have a problem that my select doesn't return any result when there is a default namespace definition in my XML file.
    I'm using oracle 11g release 1
    XML file stored as a binary XML:
    <SIMS xmlns="http://sims.ics.muni.cz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sims.ics.muni.cz jh_sims_matricni_vystupy_or.xsd">
    <Vystup Datum="2006-07-18" Typ="2" Nazev="Poslední etapy" PocetStudentu="1" PocetStudii="2">
    <Student RodneCislo="8001011001">
    <Jmeno>Petr</Jmeno>
    </Student>
    </Vystup>
    </SIMS>
    This select return no result:
    SELECT student.jmeno FROM jh_sims_bin_no_schema s, XMLTable('/SIMS/Vystup/Student' PASSING s.OBJECT_VALUE COLUMNS jmeno VARCHAR2(10) PATH 'Jmeno') student
    When I remove default namespace definition (xmlns="http://sims.ics.muni.cz") everything works fine and the same SELECT returns "Petr". Also when the file is stored in object relational storage everything works fine!
    <SIMS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sims.ics.muni.cz jh_sims_matricni_vystupy_or.xsd">
    <Vystup Datum="2006-07-18" Typ="2" Nazev="Poslední etapy" PocetStudentu="1" PocetStudii="2">
    <Student RodneCislo="8001011001">
    <Jmeno>Petr</Jmeno>
    </Student>
    </Vystup>
    </SIMS>
    Thanks for any help!
    Jan Hruby

    Hi Jan,
    You need to specify the default namespace of the document in the XMLNamespaces clause :
    SELECT student.jmeno
    FROM jh_sims_bin_no_schema s,
         XMLTable(
          XMLNamespaces(default 'http://sims.ics.muni.cz'),
          '/SIMS/Vystup/Student'
          PASSING s.OBJECT_VALUE
          COLUMNS jmeno VARCHAR2(10) PATH 'Jmeno'
         ) student
    ;

  • "select count(*)" and "select single *" returns different result

    Good day!
    product version SAP ECC 6.0
    oracle10
    data transfers from external oracle db into customer tables using direct oracle db link
    sometimes I get case with different results from 2 statements
    *mytable has 10 rows
    *1st statement
    data: cnt type I value 0.
    select count( * ) into cnt from mytable WHERE myfield_0 = 123 and myfield_1 = '123'.
    *cnt returns 10 - correct
    *2nd statement
    select single * from  mytable WHERE myfield_0 = 123 and myfield_1 = '123'.
    *sy-dbcnt returns 0
    *sy-subrc returns 4 - incorrect, 10 rows are "invisible"
    but
    1. se16 shows correct row number
    2. I update just one row from "invisible" rows using se16 and 2nd statement returns correct result after that
    can not understand why
    thank you in advance.

    Thank you, Vishal
    but,
    general problem is that
    1. both statements have the same WHERE conditions
    2. 1st return resultset with data (sy-dbcnt=10), 2nd return empty dataset, but must return 1 in sy-dbcnt
    Yes, different meaning, you are right, but must 2nd must return 1, because of "select single *" construction, not 0.
    Dataset to process is the same, WHERE conditions are equal...
    I think the problem is that how ABAP interperets select count(*) and "select single *".
    Maybe "select count (*)" scans only PK from index page(s)? and "select single *" scans data pages? and something is wrong with that?
    I'm new in SAP and didn't find any SAP tool to trace dump of data and indexes pages with Native SQL.
    se16 shows all records.
    And why after simple manual update of just one record using se16 "select single *" returns 1?
    I've just marked one row to update, didn't change any data, then pressed "save".

  • Select statement returns different results from 9i and 10g

    Hi all,
    Would appreciate if someone could help to solve this puzzle here:
    I have the exact the statements running on Oracle 9i and 10g, why do they return different results?
    Select unique(GroupDesc) , GroupSeq from Module where ModuleId in (Select ModuleId from User_Access where UserId='admin') and Status='A'
    In Oracle 9i:
    Both columns returned as follows...
    GroupDesc | GroupSeq
    In Oracle 10g:
    Only one column returned, the column with unique keyword was missing...
    GroupSeq
    Could anyone enlighten me?

    yes, the table structure... actually the CREATE TABLE statement...
    with some sample data (INSERT INTO)
    and the actual queries (both of them - copy-paste them from each separate environment)
    you can use tags around the statements this will format it to a fixed font - making it easier to read
    Edited by: Alex Nuijten on Feb 20, 2009 10:05 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Design a procedure which returns a result set of a select Query

    Hi...
    Can some one help me out with a brief design or work around for creating a stored procedure which runs a select Query and Returns a result set...
    If not a stored procedure, at least a function which makes the job simple....
    Awaiting help in this regard ........

    Hi...
    I am sorry for providing insufficient Info...
    Actually I am using Oracle 10G DB...
    I have a select Query..
    Since I am a part of team which is building a Complete Data Driven site, Even an SQL Query and a PL/SQL function body was stored in the Table itself to bring in some kind of Dynamism in the site.... But the master table was loaded with a lot of data and hence Now we decided to Store everythin in a generic package..
    I used REF CURSORS to store a result set of a simple SELECT Query.... and declaring it as an out parameter in my Procedure body so that the JAVA team can directly access the Procedure from the JAVA layer....
    Now I want to know can I do anything more efficient to carry out the above operation....

  • Avoid JDBC sender error: Execute statement did not return a result set

    Hi!
    My JDBC sender adapter towards MS SQL server works fine, with an Execute statement calling a stored procedure that returns the source data needed. The stored procedure itself updates the status of database table records, so that only the unread records are returned each time the stored procedure is called.
    However, the communication channel monitoring sets a red flag for the JDBC sender adapter, when there are no values to fetch from the database table (using the stored procedure). Message says: "Database-level error reported by JDBC driver while executing statement 'EXECUTE FetchMessage 1, 9000'. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.'. For details, contact your database server vendor."
    This is not an error situation, as I do not expect there to be any values to fetch from the database at all times.
    I do not see how to change the stored procedure to avoid this error.
    Is there a parameter to be set on the JDBC adapter that I can use, so the red flag is avoided?
    Thanks for any input!
    Regards,
    Oeystein Emhjellen

    Hi Oeystein Emhjellen.
    The problem is Store Procedure that has to generate always a ResultSet (or cursor). If it doesn't have a output, you have to generate an Empty ResultSet.
    Like a SELECT Statement:
    If there are data, SELECT get an output result but if it get nothing the SELECT Statement get a empty ResultSet.
    Ask to your database team.
    I hope it helps you.
    Bruno.

  • Database is only returns one result

    I'm trying to count the number of calls & low priorty call from my account table in my databate. There is only one call so far in it. Call = 1 but its priorty is Low so Low should also be 1. I have check my sql in the Database and it return 1 result but in my program Low still = 0.
    Connection conn;
    String theNoCallsSQL = "Select call_no From Call ";
    String thePLowSQL = "Select call_no From Call where priorty = 'Low' ";
    int NoCalls = 0;
    int Low = 0;
    ResultSet rsetNoCall;
    ResultSet rsetLow;
    rsetNoCall = stmt.executeQuery(theNoCallsSQL);
    while(rsetNoCall.next() == true)
    NoCalls ++;
    rsetLow = stmt.executeQuery(thePLowSQL);
    while(rsetLow.next() == true)
    Low ++;
    conn.close();
    ArrayList myStatsList = new ArrayList();
    CallsStats myStats = new CallsStats();
    myStats.setNoCall(NoCalls);
    myStats.setNoLow(Low);
    return myStatsList;

    Haven't you heard about debugging? The simplest forum of debugging to answer your question would be to insert a line like this:System.out.println("Low++ executed");immediately before the line that saysLow++;Or you could use System.out to display the value of Low immediately beforemyStats.setNoLow(Low);The possibilities are endless.

  • CONNECT BY query doesn't return any results...

    Hi All
    I am trying to execute this CONNECT BY query...but it does not return any result.
    Could anyone please suggests what am I doing wrong. Or how should I modify the query to get the results.
    SELECT Distinct dt.DID FROM DEPT dt left outer join EMPLOYEE emp on dt.DID = emp.DID WHERE dt.parentid in (SELECT DEPT.DID FROM DEPT CONNECT BY PRIOR DEPT.DID = DEPT.PARENTID START WITH DEPT.PARENTID in (2000,-2000)) or dt.parentid=2000
    Any help would be really really appreciated.
    Thanks and Regards
    -Josef

    Take the nested query and run it in SQL developer (or SQL Plus) against the database directly. Does it give any results? That query returning no results is the most likely cause of the problem.

  • Same Query returning different result (Different execution plan)

    Hi all,
    To day i have discovered a strange thing: a query that return a different result when using a different execution plan.
    The query :
    SELECT  *
      FROM schema.table@database a
    WHERE     column1 IN ('3')
           AND column2 = '101'
           AND EXISTS
                  (SELECT null
                     FROM schema.table2 c
                    WHERE a.column3 = SUBSTR (c.column1, 2, 12));where schema.table@database is a remote table.
    when executed with the hint /*+ ordered use_nl(a c) */ these query return no result and its execution plan is :
    Rows     Row Source Operation
          0  NESTED LOOPS  (cr=31 r=0 w=0 time=4894659 us)
       4323   SORT UNIQUE (cr=31 r=0 w=0 time=50835 us)
       4336    TABLE ACCESS FULL TABLE2 (cr=31 r=0 w=0 time=7607 us)
          0   REMOTE  (cr=0 r=0 w=0 time=130536 us)When i changed the execution plan with the hint /*+ use_hash(c a) */
    Rows     Row Source Operation
       3702  HASH JOIN SEMI (cr=35 r=0 w=0 time=497839 us)
      22556   REMOTE  (cr=0 r=0 w=0 time=401176 us)
       4336   TABLE ACCESS FULL TABLE2 (cr=35 r=0 w=0 time=7709 us)It seem that when the execution plan have changed the remote query return no result.
    It'is a bug or i have missed somthing ?
    PS: The two table are no subject to insert or update statement.
    Oracle version : 9.2.0.2.0
    System version : HP-UX v1
    Thanks.

    H.Mahmoud wrote:
    Oracle version : 9.2.0.2.0
    System version : HP-UX v1Hard to say. You're using a very old and deprecated version of the database, and one that was known to contain bugs.
    9.2.0.7 was really the lowest version of 9i that was considered to be 'stable', but even so, it's old and lacking in many ways.
    Consider upgrading to the latest database version at your earliest opportunity. (or at least apply patches up to the latest 9i version before querying if there is bugs in your really low buggy version)

  • Returning a result set/record from a dynamic query

    There seems to be plenty of examples for using Native Dynamic Sql to formulate and execute a dynamic query, however there are no examples of returning a result set or records which contain the rows of data that are retrieved by executing the query. Could someone give us an example?

    Welcome to the Oracle forum....
    CREATE OR REPLACE PACKAGE curspkg_join AS
    TYPE t_cursor IS REF CURSOR ;
    Procedure open_join_cursor1 (n_EMPNO IN NUMBER, io_cursor IN OUT t_cursor);
    END curspkg_join;
    Create the following Oracle package body on the Oracle server:
    CREATE OR REPLACE PACKAGE BODY curspkg_join AS
    Procedure open_join_cursor1 (n_EMPNO IN NUMBER, io_cursor IN OUT t_cursor)
    IS
    v_cursor t_cursor;
    BEGIN
    IF n_EMPNO <> 0
    THEN
    OPEN v_cursor FOR
    SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME
    FROM EMP, DEPT
    WHERE EMP.DEPTNO = DEPT.DEPTNO
    AND EMP.EMPNO = n_EMPNO;
    ELSE
    OPEN v_cursor FOR
    SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME
    FROM EMP, DEPT
    WHERE EMP.DEPTNO = DEPT.DEPTNO;
    END IF;
    io_cursor := v_cursor;
    END open_join_cursor1;
    END curspkg_join;
    Dim Oraclecon As New OracleConnection("Password=pwd;" & _
    "User ID=uid;Data Source=MyOracle;")
    Oraclecon.Open()
    Dim myCMD As New OracleCommand()
    myCMD.Connection = Oraclecon
    myCMD.CommandText = "curspkg_join.open_join_cursor1"
    myCMD.CommandType = CommandType.StoredProcedure
    myCMD.Parameters.Add(New OracleParameter("io_cursor", OracleType.Cursor)).Direction = ParameterDirection.Output
    myCMD.Parameters.Add("n_Empno", OracleType.Number, 4).Value = 123
    Dim myReader As OracleDataReader
    Try
    myCMD.ExecuteNonQuery()
    Catch myex As Exception
    MsgBox(myex.Message)
    End Try
    myReader = myCMD.Parameters("io_cursor").Value
    Dim x, count As Integer
    count = 0
    Do While myReader.Read()
    For x = 0 To myReader.FieldCount - 1
    Console.Write(myReader(x) & " ")
    Next
    Console.WriteLine()
    count += 1
    Loop
    MsgBox(count & " Rows Returned.")
    myReader.Close()
    Oraclecon.Close()
    The above code is working in one of our application; which is using ref cursor as result set and get from procedure. I hope you can found more code by google and/or search in this forum as well; if above code is not useful to you.
    HTH
    Girish Sharma

  • Xquery does not return any results on 10.2.0.4, does work on 10.2.0.5

    I have a Xquery statement that works as expected on Oracle 10.2.0.5 but does not return any results on Oracle 10.2.0.4.
    Is this the result of a badly written query? A bug in 10.2.0.4?
    Is there a way to rewrite the query so that is does work on 10.2.0.4?
    Testcode:
    declare
       l_xml xmltype;
       -- Select layers with TileMatrixSet EPSG:28992
       cursor c_layer(p_xml xmltype) is
          select t.*
            from xmltable(xmlnamespaces(default 'http://www.opengis.net/wmts/1.0'
                                       ,'http://www.opengis.net/ows/1.1' as "ows"
                                        ,'http://schemas.opengis.net/gml' as "gml"
                                        ,'http://www.w3.org/1999/xlink' as "xlink"
                                        ,'http://www.w3.org/2001/XMLSchema-instance' as "xsi")
                          ,'for $d in //Layer[TileMatrixSetLink/TileMatrixSet="EPSG:28992"] return $d' passing
                          p_xml columns title varchar2(100) path 'ows:Title'
                          ,format varchar2(100) path 'Format'
                          ,style xmltype path 'Style') as t;
    begin
       l_xml := xmltype.createxml('<?xml version="1.0" encoding="UTF-8"?>
    <Capabilities xmlns="http://www.opengis.net/wmts/1.0"
    xmlns:ows="http://www.opengis.net/ows/1.1"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd"
    version="1.0.0">
    <Contents>
      <Layer>
        <ows:Title>brtachtergrondkaart</ows:Title>
        <ows:Identifier>brtachtergrondkaart</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
      <Layer>
        <ows:Title>top10nl</ows:Title>
        <ows:Identifier>top10nl</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
      <Layer>
        <ows:Title>bgt</ows:Title>
        <ows:Identifier>bgt</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
    </Contents>
    </Capabilities>');
       for r_layer in c_layer(l_xml)
       loop
          dbms_output.put_line(r_layer.title);
       end loop;
    end;Result on 10.2.0.5:
    brtachtergrondkaart
    top10nl
    bgt

    This one's strange indeed.
    I can reproduce on 10.2.0.4 and one of the following seems to fix it :
    1) Specifying the column list in the SELECT, instead of t.* :
       -- Select layers with TileMatrixSet EPSG:28992
       cursor c_layer(p_xml xmltype) is
          select t.title, t.format, t.style
            from xmltable(or,
    2) Using an extended FLWOR expression :
    for $d in //Layer
    where $d/TileMatrixSetLink/TileMatrixSet = "EPSG:28992"
    return $dMaybe you've already noticed but the problem only occurs within a PL/SQL context.
    The same query run from SQL is OK.

  • Basic NOT EXISTS query not returning any results

    DB Version: 10gR2
    One of our tables in the test schema is having less number of columns than the PROD shema.
    To determine which are missing columns in this table in Test schema i did the following.
    -----In Test Schema
    CREATE TABLE XYZ2
    (COL1 NUMBER);        ----------only one column
    SQL > CREATE TABLE tables_test_list AS SELECT TABLE_NAME,COLUMN_NAME FROM USER_TAB_COLS;
    Table created.--- In the prod schema
    SQL> CREATE TABLE XYZ2
      2  (COL1 NUMBER,
      3  COL2 NUMBER       ----------- same table name with an extra column
      4  );
    Table createdAnd from the PROD schema i execute the following SQL to determine what are the columns that are missing in the TEST schema
    select column_name from User_Tab_Cols  outer
    where table_name='XYZ2'
    and not exists (select 1 from TEST_SCHEMA.tables_test_list inner where outer.TABLE_NAME=inner.TABLE_NAME )But the above query is not returning any results. Any idea why?

    Actually, the example from the link I posted earlier:
    [email protected]> (
      2  select 'IN T1, NOT T2', column_name,data_type,data_length
      3    from user_tab_columns
      4   where table_name = 'T1'
      5  MINUS
      6  select 'IN T1, NOT T2', column_name,data_type,data_length
      7    from user_tab_columns
      8   where table_name = 'T2'
      9  )
    10  UNION ALL
    11  (
    12  select 'IN T2, NOT T1', column_name,data_type,data_length
    13    from user_tab_columns
    14   where table_name = 'T2'
    15  MINUS
    16  select 'IN T2, NOT T1', column_name,data_type,data_length
    17    from user_tab_columns
    18   where table_name = 'T1'
    19  )
    20  /

  • Table-Valued Function not returning any results

    ALTER FUNCTION [dbo].[fGetVendorInfo]
    @VendorAddr char(30),
    @RemitAddr char(100),
    @PmntAddr char(100)
    RETURNS
    @VendorInfo TABLE
    vengroup char(25),
    vendnum char(9),
    remit char(10),
    payment char(10)
    AS
    BEGIN
    insert into @VendorInfo (vengroup,vendnum)
    select ks183, ks178
    from hsi.keysetdata115
    where ks184 like ltrim(@VendorAddr) + '%'
    update @VendorInfo
    set remit = r.remit
    from
    @VendorInfo ven
    INNER JOIN
    (Select ksd.ks188 as remit, ksd.ks183 as vengroup, ksd.ks178 as vendnum
    from hsi.keysetdata117 ksd
    inner join @VendorInfo ven
    on ven.vengroup = ksd.ks183 and ven.vendnum = ksd.ks178
    where ksd.ks192 like ltrim(@RemitAddr) + '%'
    and ks189 = 'R') r
    on ven.vengroup = r.vengroup and ven.vendnum = r.vendnum
    update @VendorInfo
    set payment = p.payment
    from
    @VendorInfo ven
    INNER JOIN
    (Select ksd.ks188 as payment, ksd.ks183 as vengroup, ksd.ks178 as vendnum
    from hsi.keysetdata117 ksd
    inner join @VendorInfo ven
    on ven.vengroup = ksd.ks183 and ven.vendnum = ksd.ks178
    where ksd.ks192 like ltrim(@PmntAddr) + '%'
    and ks189 = 'P') p
    on ven.vengroup = p.vengroup and ven.vendnum = p.vendnum
    RETURN
    END
    GO
    Hi all,
    I'm having an issue where my Table-Valued Function is not returning any results.
    When I break it out into a select statement (creating a table, and replacing the passed in parameters with the actual values) it works fine, but with passing in the same exact values (copy and pasted them) it just retuns an empty table.
    The odd thing is I could have SWORN this worked on Friday, but not 100% sure.
    The attached code is my function.
    Here is how I'm calling it:
    SELECT * from dbo.fGetVendorInfo('AUDIO DIGEST', '123 SESAME ST', 'TOP OF OAK MOUNTAIN')
    I tried removing the "+ '%'" and passing it in, but it doesn't work.
    Like I said if I break it out and run it as T-SQL, it works just fine.
    Any assistance would be appreciated.

    Why did you use a proprietary user function instead of a VIEW?  I know the answer is that your mindset does not use sets. You want procedural code. In fact, I see you use an “f-” prefix to mimic the old FORTRAN II convention for in-line functions! 
    Did you know that the old Sybase UPDATE.. FROM.. syntax does not work? It gives the wrong answers! Google it. 
    Your data element names make no sense. What is “KSD.ks188”?? Well, it is a “payment_<something>”, “KSD.ks183” is “vendor_group” and “KSD.ks178” is “vendor_nbr” in your magical world where names mean different things from table to table! 
    An SQL programmer might have a VIEW with the information, something like:
    CREATE VIEW Vendor_Addresses
    AS
    SELECT vendor_group, vendor_nbr, vendor_addr, remit_addr, pmnt_addr
      FROM ..
     WHERE ..;
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • To_char(adate,'dd.mm.yyyy')   returns different results  from  two oracle clients !!! Is it  possible?

    Dear all;
    We have only one Database server with some IIS's   as web servers on front . Each web server has own oracle client software in order connect to central database..
    The same following query used in C#  code  returns different results on each IIS server.(3 row, or  not data found )
    why?
    select     *    from    aTable    where        to_char( adate ,  'dd.mm.yyyy' )  =   :search_date
    regards
    Siya

    1006237 wrote:
    If adate is of DATE datatype, it will most likely has the time component. Therefore your SQL below is unlikely to return any data.
    select * from aTable where adate = to_date(:search_date, 'dd.mm.yyyy')
    Perhaps.....
    select * from aTable where TRUNC(adate) = to_date(:search_date, 'dd.mm.yyyy')
    Hi,
    not having any sample data from you I could not understand that you wanted to select the range 00:00:00 - 23:59:59 on search_date.
    Your method might not be efficient if you have an index on adate.
    Maybe something like this will be more efficient
    select * from aTable
    where adate >= to_date(:search_date, 'dd.mm.yyyy')
      and adate <  to_date(:search_date, 'dd.mm.yyyy') + 1;
    If you search_date is 30-Aug-2013 it will get records where adate >= 30-Aug-2013 00:00:00 and adate < 31-Aug-2013 00:00:00, so any time of date 30-Aug-2013.
    Try like this and let us know if you still have 2 different results.
    Regards.
    Alberto

Maybe you are looking for