Advertisement

09.05.2008 at 12:57PM PDT, ID: 23707530
[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!

8.7

Problem with query.

Asked by mathieu_cupryk in Oracle 10.x, Oracle Database, PL / SQL

The following is not returning four rows.
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
PROCEDURE get_Sales_Grades    (cur_out                IN OUT      t_cursor,
                               p_price_list_hdr_id    IN          price_list_dtl.price_list_hdr_id%TYPE,
                               p_status               OUT NOCOPY  varchar2)
IS
 
BEGIN
  p_status := 'Success';
  OPEN cur_out
    FOR
      -- EXCEPTION
      SELECT B.grade_pool_code, D.pool_part_code, B.grain_class_name, B.grade_protein_pct, 
             E.strght_code, C.strght_price_amt, E.tough_code, E.damp_code, E.stone_code, E.tough_stone_code, E.damp_stone_code,
             D.wht_tough_disc_amt, D.wht_damp_disc_amt, D.wht_stone_disc_amt,
             D.durum_tough_disc_amt, D.durum_damp_disc_amt, D.durum_stone_disc_amt,
             D.bly_tough_disc_amt, D.bly_damp_disc_amt, D.bly_stone_disc_amt,
             D.desigtd_bly_tough_disc_amt, D.desigtd_bly_damp_disc_amt,D.sct_effctv_dtm
             FROM  price_like_grade A, grade_code_dtl B, price_list_dtl C, price_list_hdr D,
                  (Select grade_code_dtl_id,
                          max(CASE code_type_name when 'STRAIGHT' then disc_code else null end) as  Strght_Code, 
                          max(CASE code_type_name when 'TOUGH' then disc_code else null end) as  Tough_Code,
                          max(CASE code_type_name when 'DAMP' then disc_code else null end) as  Damp_Code,
                          max(CASE code_type_name when 'STONE' then disc_code else null end) as  Stone_Code,
                          max(CASE code_type_name when 'TOUGH STONE' then disc_code else null end) as  Tough_Stone_Code,
                          max(CASE code_type_name when 'DAMP STONE' then disc_code else null end) as  Damp_Stone_Code
                          from grade_item
                          group by grade_code_dtl_id) E
             WHERE A.price_like_type_name = 'Exception'
             AND   B.grade_code_dtl_id = A.grade_code_dtl_id  --Problem i think is here. Look at the images.
             AND   C.grade_code_dtl_id = A.like_grade_code_dtl_id
             AND   C.price_list_hdr_id = p_price_list_hdr_id
             AND   D.price_list_hdr_id = C.price_list_hdr_id
             AND   E.grade_code_dtl_id = B.grade_code_dtl_id
      ORDER BY grade_pool_code, grain_class_name; -- Changed to sort on long name
  EXCEPTION
    WHEN OTHERS THEN
         p_status := 'Failure: ' || SQLERRM;
END get_Sales_Grades;
Attachments:
 
price_like_grade
price_like_grade
 
 
grade_code_detail
grade_code_detail
 
 
price_list_dtl
price_list_dtl
 
[+][-]09.05.2008 at 01:03PM PDT, ID: 22403193

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.

 
[+][-]09.05.2008 at 01:06PM PDT, ID: 22403220

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.

 
[+][-]09.05.2008 at 01:13PM PDT, ID: 22403309

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.

 
[+][-]09.05.2008 at 01:20PM PDT, ID: 22403367

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.

 
[+][-]09.05.2008 at 01:22PM PDT, ID: 22403382

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.

 
[+][-]09.05.2008 at 01:40PM PDT, ID: 22403574

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.

 
[+][-]09.05.2008 at 01:48PM PDT, ID: 22403647

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.

 
[+][-]09.05.2008 at 01:53PM PDT, ID: 22403692

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.

 
[+][-]09.05.2008 at 01:56PM PDT, ID: 22403728

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.

 
[+][-]09.05.2008 at 02:01PM PDT, ID: 22403783

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.

 
[+][-]09.06.2008 at 11:23PM PDT, ID: 22410356

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.

 
[+][-]09.07.2008 at 04:55AM PDT, ID: 22411015

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: Oracle 10.x, Oracle Database, PL / SQL
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628