Skip to content
Advertisement

refactor duplication of SELECT inside CASE inside SELECT statement

how to refactor this select statement to remove duplication

are there exists easy options without joins, maybe something like with statements that can be used inside select?

N.B.

project has many entries, entry has one product

Advertisement

Answer

May be use CTE instead?

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement