You're working on a data transformation pipeline in Snowflake. You need to create a SQL UDF called that accepts the following parameters: 'price' (NUMBER) (NUMBER) (BOOLEAN) The function should calculate the final price after applying the discount. If the customer , an additional 5% discount should be applied on top of the initial discount. Choose all the valid SQL UDF definitions that accurately implement the requirements. Only one Discount Percentage needs to apply to the base price.

Correct Answer: A,C,E
Options A, C and E are correct. Option A correctly calculates the discount by first applying the initial discount and then the additional member discount multiplicatively. Option C adds the member discount to the base discount and then applies it, which is mathematically correct. Option E follows the same as Option A but has more explicit calculations. Option B is incorrect because the additional 5% is calculated based on original price, not already discounted price. Option D is also wrong since the addition discount is already handled as one whole number. This tests understanding of conditional logic and discount calculations within SQL UDFs, as well as multiple ways to achieve the same correct outcome.