Author: Not specified Language: sql
Description: Not specified Timestamp: 2018-04-18 09:00:31 +0000
View raw paste Reply
  1. You Could try the other format FOR the case statement
  2.  
  3. CASE WHEN Product.type_id = 10
  4. THEN
  5. (
  6.   SELECT Statement
  7. )
  8. ELSE
  9. (
  10.   Other SELECT statement
  11.  
  12. )  
  13. END
  14. FROM Product
  15. WHERE Product.product_id = $pid
View raw paste Reply