Advertisement

12.06.2005 at 08:25PM PST, ID: 21655793
[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.0

"ora-01002" error

Asked by developer_cae in Oracle Database

Hi all
I have written the following sql statement for making a report in developer2000 report builder.

SELECT CS.SESSIONNO,DECODE(S.RANKREPAFTERRELEG,NULL,R.RANK,S.RANKREPAFTERRELEG) AS RANK,R.RANKCODE,SEM.SEMESTER,D.DISCIPLINE,E.EXAMINATION||' GRADES ' AS EXAMINATION,SD.SECTION,
to_char(SS.THCRHRS,'fm0.0'), to_char(LABCRHRS,'fm0.0'),
DECODE(SS.MAJORREPRESENTATION,NULL,SS.SUBJECTCODE,SS.MAJORREPRESENTATION) subcode ,
S.PAKNO,S.NAME,SER.SERVICE,S.COURSE,
SSS.SUBJECTCODE,G.GRADE,to_char(SSG.SGP,'fm00.00') as sgp,to_char(SSG.SCRHRS,'fm00.00') as scrhrs,to_char(SSG.SGPA,'fm0.00') AS SGPA,to_char(SSG.CGP,'fm000.00') as cgp,to_char(SSG.CCRHRS,'fm000.00') as ccrhrs,to_char(SSG.CGPA,'fm0.00') as CGPA,
to_char(SSG.MFCGP,'fm000.00') as mfcgp,to_char(SSG.MFCCRHRS,'fm000.00') as mfccrhrs,to_char(SSG.MFGPA,'fm0.00') as mfgpa
FROM
EXAMINATION.STUDENT S ,
EXAMINATION.STUDENTSUBJECTSCORE SSS,
EXAMINATION.STUDENTSEMESTERSCORE SSG,
EXAMINATION.SEMESTERSUBJECTS SS,
EXAMINATION.DISCIPLINE D,
EXAMINATION.EXAMINATION E,
EXAMINATION.GRADINGSYSTEM G,
EXAMINATION.RANK R,
EXAMINATION.SERVICE SER,EXAMINATION.SEMESTER SEM,
EXAMINATION.COURSESESSION CS, EXAMINATION.studentdiscipline sd
WHERE
S.PAKNO=SSS.PAKNO AND
S.PAKNO = SSG.PAKNO AND
SSS.PAKNO = SSG.PAKNO AND
SSS.DCODE=SSG.DCODE AND
SSS.SEMESTERCODE=SSG.SEMESTERCODE AND
SSS.EXAMCODE=SSG.EXAMCODE AND
SSS.DCODE=SS.DCODE AND
SSS.SEMESTERCODE = SS.SEMESTERCODE and
LTRIM(RTRIM(UPPER(ss.subjectcode)))=LTRIM(RTRIM(UPPER(sss.subjectcode))) and
SSS.SEMESTERCODE=SEM.SEMESTERCODE AND SSS.DCODE=D.DCODE AND
SSS.EXAMCODE=E.EXAMCODE AND
S.RANKCODE=R.RANKCODE AND
S.SERVICECODE=SER.SERVICECODE AND
S.COURSE=CS.COURSE AND
SD.PAKNO=S.PAKNO AND
SD.DCODE=SSS.DCODE AND
SD.DCODE=SSG.DCODE AND
SD.SEMESTERCODE=SSS.SEMESTERCODE AND
SD.SEMESTERCODE=SSG.SEMESTERCODE AND
S.RANKREPAFTERRELEG IS NULL AND
SSS.GRADECODE=G.GRADECODE AND LTRIM(RTRIM(S.COURSE))=LTRIM(RTRIM(:COURSECODE))
AND SSS.DCODE=:DCODE AND
SSS.SEMESTERCODE=:SCODE AND
SSS.EXAMCODE=:ECODE AND
S.COURSE=:COURSECODE AND
SS.COURSE=:COURSECODE AND
LTRIM(RTRIM(SD.SECTION))=LTRIM(RTRIM(:SECT)) and
s.pakno not in(select distinct pakno from relegatedstudents)
order by
R.RANKCODE,subcode

this works fine.
but there is only one case in which it gives the error "ORA-01002: fetch out of sequence" and that case is when i pass the following parameters to the report
:coursecode='64' (i.e Course)
:scode=4 (i.e  semester)
:sect='B-I' (i.e section)
:dcode=2 (i.e Discipline)Start Free Trial
[+][-]12.06.2005 at 08:34PM PST, ID: 15433789

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.06.2005 at 09:23PM PST, ID: 15433936

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.06.2005 at 10:18PM PST, ID: 15434100

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2005 at 01:43AM PST, ID: 15434714

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2005 at 06:27AM PST, ID: 15436172

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.08.2005 at 07:53PM PST, ID: 15450320

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.08.2006 at 11:41PM PST, ID: 15910564

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]02.09.2006 at 07:21PM PST, ID: 15919181

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.09.2006 at 11:37PM PST, ID: 15920158

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.14.2006 at 09:17PM PST, ID: 15957866

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]02.19.2006 at 03:35AM PST, ID: 15993416

View this solution now by starting your 30-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

Zone: Oracle Database
Sign Up Now!
Solution Provided By: CetusMOD
Participating Experts: 7
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-44