Visual Treat
2013-01-22 07:49:50 UTC
example:
To count the number of gold medals with the students in BLUE team and RED team and show it separately.
-Select team, sum(gold) from student where team='BLUE' or team='RED' group by team.
or
To count the number of gold medals with the students in various team and show it team wise.
-Select team, sum(gold) from student group by team.
now both the queries to be executed without using 'group by'. How?