Guest User

Untitled

a guest
Jul 8th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE OR REPLACE FUNCTION web_adm_gateway_concurrent_calls_start_value(timestamp with time zone)
  2.   RETURNS bigint AS
  3. $BODY$
  4. BEGIN
  5.     (SELECT COUNT(*) FROM cdr
  6.             WHERE $1 BETWEEN sqltime AND sqltime_end
  7.             AND gateway_id IS NOT NULL);
  8. END;
  9. $BODY$
  10.   LANGUAGE sql;
Add Comment
Please, Sign In to add comment