Skip to content

Commit

Permalink
Minor change (cleaning)
Browse files Browse the repository at this point in the history
  • Loading branch information
grischoun committed Jul 22, 2016
1 parent dac1f4c commit bd0c780
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/proba.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

DROP FUNCTION public.total_score(m_id integer, end_id integer, team_id INTEGER) CASCADE ;
-- DROP FUNCTION public.total_score(m_id integer, end_id integer, team_id INTEGER) CASCADE ;

CREATE OR REPLACE FUNCTION total_score(m_id integer, team_id INTEGER) RETURNS BIGINT AS
$$
Expand All @@ -12,9 +12,8 @@ where ends.team_instance_id = team_id and matches.id = m_id;
--where ends.team_instance_id = 4995 and matches.id = 14510;
$$ LANGUAGE SQL;

select total_score(14510, 12, 4995);

DROP VIEW MATCH_ENDS;
-- DROP VIEW MATCH_ENDS;

CREATE OR REPLACE VIEW MATCH_ENDS AS
SELECT tournaments.id as tourn_id, matches.id as Match,
Expand Down

0 comments on commit bd0c780

Please sign in to comment.