Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE OR REPLACE FUNCTION web_adm_gateway_concurrent_calls_start_value(timestamp with time zone)
- RETURNS bigint AS
- $BODY$
- BEGIN
- (SELECT COUNT(*) FROM cdr
- WHERE $1 BETWEEN sqltime AND sqltime_end
- AND gateway_id IS NOT NULL);
- END;
- $BODY$
- LANGUAGE sql;
Add Comment
Please, Sign In to add comment