Case when exists in postgresql. Thanks Fabian, i try with CASE.

Case when exists in postgresql. Based on the rental rates 0.