For the following code, the output displays two rows of data for some reason, it displays, team_name, punt_return, fair_catch, punt_ret_yd...any idea what is wrong with my code...thanks!
Code:
select team_name,
sum(Punt_ret) as Punt_ret,
nvl(punt_fair_catch, 0) as punt_fair_catch,
sum(Punt_ret_yd) as Punt_ret_yd,
case
when season <= 1993 then
'-'
else
to_char(sum(Punt_lng))
end as punt_lng,
case
when season <= 1993 then
'-'
else
Punt_ret_lng_is_td
end as Punt_ret_lng_is_td,
case
when season <= 1993 then
'-'
else
to_char(sum(Punt_ret_td))
end as Punt_ret_td
from customer_data.cd_football_retgame
WHERE game_code = 765667
and split_number = -1
and Punt_ret > 0
and team_id = 354
GROUP BY team_id, team_id_1032, team_name, season, punt_fair_catch, punt_ret_lng_is_td