CREATE OR REPLACE FUNCTION core.get_state_sales_tax_rate(_state_sales_tax_id integer) RETURNS decimal_strict2 LANGUAGE plpgsql AS $function$ BEGIN RETURN rate FROM core.state_sales_taxes WHERE state_sales_tax_id=$1; END $function$