Skip to main content

SQL Report: Use a static string if variable is not passed

Comments

2 comments

  • Keshava Best

    Try this:

    SELECT
    PrjCode AS 'Project Code',
    PrjName AS 'Project Name',
    ValidFrom AS 'Valid From'
    FROM OPRJ
    WHERE PrjCode LIKE COALESCE(NULLIF([%0], ''), 'WMS%')
  • Felipe Lima

    Hi Keshava,  

    I followed your suggestion, and it worked perfectly! Thank you!  

    BR,
    Felipe

Please sign in to leave a comment.