Advertisement

05.27.2008 at 09:33AM PDT, ID: 23435417
[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!

9.6

How to display row value of each class as a column value

Asked by jyothsna1803 in SQL Query Syntax, PL / SQL

Tags:

How to display row value of each class as a column value

ID      NAME      CLASS            HOURS      SCHOOLNAME
1      Allen      Maths            12      school1
2      Sam      Maths            12      school1
4      Pam      Maths            10      school1
3      Sam      Comp            10      school1
9      Smith      Comp            15      school1
7      Smith      Phy            20      school1
5      Pam      Phy            12      school1
6      Pam      Accounts      15      school1
8      Smith      Accounts      12      school1
10      Adams      Business      30      school1
11      Anthony      Comp            20      school2
12      Chris      Business      20      school2
13      Chris      Accounts      20      school2
14      Angelo      Maths            20      school3
15      Angelo      Accounts      15      school3
16      Robert      Accounts      15      school3
17      Robert      Maths            15      school3

                  




I wanted output like below for School1

Name      maths      Comp      Phy      Accounts      Business
Allen      12      0      0      0            0
Sam      12      10      0      0            0
Pam      10      0      12      15            0
Smith      0      15      20      12            0
Adams      0      0      0      0            30


I wanted output like below for School2

Name            Comp      Accounts      Business
Anthony            20      0            0
Chris            10      20            20


I wanted output like below for School3

Name      maths      Accounts
Angelo      20      15
Robert      15      15
how to wriite a single query, Also i may add /delete school/class anytime. Query should support mesans everything dynamically should get the data.
Thanx in advanceStart Free Trial
[+][-]05.27.2008 at 10:42AM PDT, ID: 21653904

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.

 
[+][-]05.27.2008 at 01:30PM PDT, ID: 21655414

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.

 
[+][-]05.27.2008 at 01:45PM PDT, ID: 21655549

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.

 
[+][-]05.27.2008 at 08:36PM PDT, ID: 21657515

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.

 
[+][-]05.30.2008 at 12:30PM PDT, ID: 21680728

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.

 
[+][-]06.02.2008 at 06:20AM PDT, ID: 21691665

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.

 
[+][-]06.02.2008 at 08:23AM PDT, ID: 21692807

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

Zones: SQL Query Syntax, PL / SQL
Tags: SQL/PL/SQL
Sign Up Now!
Solution Provided By: mark_wills
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628