Hi Can some one please help me write an oracle query to get the # of students taking a particular class.
I am using Oracel 9i I have a table with Student_id, classes, teacher and the values look like 111 Math;Social;Science Ms.Reed 112 Math;Science;PE Mr.Smith 113 PE;Social;Math Ms.Reed 114 Art;PE;Reading Mr.Jones (classes taken by students are stored in one field with ; separated values) I want the result to display as 1.Classname and studentcount Math 3 Science 2 Social 2 Art 1 PE 2 Reading 1 2. Classname studentcount groupedby teacher name Math 2 Ms.Reed Math 1 Mr.Smith Social 2 Ms.Reed Science 1 Mr.Smith Science 1 Ms.Reed PE 1 Mr.Smith -- You received this message because you are subscribed to the Google Groups "Oracle PL/SQL" group. To post to this group, send email to Oracle-PLSQL@googlegroups.com To unsubscribe from this group, send email to oracle-plsql-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Oracle-PLSQL?hl=en