Advertisement

04.09.2007 at 05:10PM PDT, ID: 22500868
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

INDEX_DESC - Oracle

Asked by NeoTek in Databases Miscellaneous, Oracle Database

Tags: ,

I am trying to run the following query:

select /*+ INDEX_DESC(RPM_PRODUCTIONHEADER, PRODUCTION_ENDTIME_IDX) */  productionno, production_endtime
from rpm_productionheader

Here is my table:

CREATE TABLE TOP.RPM_PRODUCTIONHEADER
(
    PRODUCTIONNO                   VARCHAR2(128) NOT NULL,
    PRODUCTRE_ID                   VARCHAR2(128),
    PRODUCTREVERSION               VARCHAR2(16),
    PRODUCTID                      VARCHAR2(128),
    PRODUCTGRADE                   VARCHAR2(16),
    PRODUCTIONQUANTITY             NUMBER(9,3),
    PRODUCTIONUNIT                 VARCHAR2(32),
    PRODUCTIONPERIODTIME           DATE,
    PRODUCTIONSCHEDSTARTTIME       DATE,
    PRODUCTIONSCHEDENDTIME         DATE,
    ORDERID                        VARCHAR2(128) NOT NULL,
    ORDERBRANCHID                  VARCHAR2(128),
    PRODUCTIONLOTID                VARCHAR2(128),
    PRODUCTIONSTATUS               NUMBER(2,0) NOT NULL,
    PRODUCTIONRESULTQUANTITY       NUMBER(9,3),
    DESCRIPTION                    VARCHAR2(255),
    EQUIPPATHID                    VARCHAR2(32) NOT NULL,
    PRODUCTION_INPUT_QUANTITY      NUMBER(9,3),
    PROCESS_KIND                   VARCHAR2(1) NOT NULL,
    PROCESSING_ORDER               NUMBER(2,0) NOT NULL,
    PRODUCTION_STARTTIME           DATE,
    PRODUCTION_ENDTIME             DATE,
    ERP_PRODUCTIONNO               VARCHAR2(128) NOT NULL,
    PRODUCTION_LOADER_QUANTITY     NUMBER(9,3),
    CONSTRAINT RPM_PRODUCTIONHEADER_IDX PRIMARY KEY (PRODUCTIONNO) USING INDEX
        PCTFREE 10
        INITRANS 2
        MAXTRANS 255
        TABLESPACE EFACT_TBL
        STORAGE(INITIAL 13384K MINEXTENTS 1 MAXEXTENTS 2147483645 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
        LOGGING
)
PCTFREE 10
PCTUSED 40
MAXTRANS 255
TABLESPACE EFACT_TBL
STORAGE(INITIAL 104064K MINEXTENTS 1 MAXEXTENTS 2147483645 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
NOCACHE
LOGGING
/
COMMENT ON COLUMN TOP.RPM_PRODUCTIONHEADER.PRODUCTIONSTATUS IS '10:RECIEVED 30:WORKING 60:FINISHED 70:SENT'
/

Here is the index:

CREATE INDEX TOP.PRODUCTION_ENDTIME_IDX
ON TOP.RPM_PRODUCTIONHEADER
(PRODUCTION_ENDTIME)
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE EFACT_TBL
STORAGE(INITIAL 64K MINEXTENTS 1 MAXEXTENTS 2147483645 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
LOGGING
/

for some reason the query is not working.  There are no error messages, but the data is not sorted (by date desc).  Here is my oracle information:

BANNER
----------------------------------------------------------------
Oracle8i Release 8.1.7.4.1 - Production
PL/SQL Release 8.1.7.3.0 - Production
CORE      8.1.7.2.1      Production
TNS for 32-bit Windows: Version 8.1.7.4.0 - Production
NLSRTL Version 3.4.1.0.0 - Production

Any ideas?Start Free Trial
[+][-]04.09.2007 at 08:01PM PDT, ID: 18880122

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Databases Miscellaneous, Oracle Database
Tags: index_desc, oracle
Sign Up Now!
Solution Provided By: paquicuba
Participating Experts: 1
Solution Grade: B
 
 
[+][-]04.09.2007 at 08:01PM PDT, ID: 18880128

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.10.2007 at 08:12AM PDT, ID: 18882963

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32