dina78
asked on
replacing number
If I have the following result of crosstab query
Product 1 Product 2 Product 3 Product4
Customer 1 5.5 666
Customer 2 .222 454
Customer 3 258 252 365
Customer 4
Customer 5 25 25
Based on this result I would like to run another query that will leave the null value but replace the numbers with “1”
Product 1 Product 2 Product 3 Product4
Customer 1 5.5 666
Customer 2 .222 454
Customer 3 258 252 365
Customer 4
Customer 5 25 25
Based on this result I would like to run another query that will leave the null value but replace the numbers with “1”
use isnull(colname,1)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What dbms are you using?