Link to home
Start Free TrialLog in
Avatar of dina78
dina78Flag for Afghanistan

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”
Avatar of Pratima
Pratima
Flag of India image

use isnull(colname,1)

ASKER CERTIFIED SOLUTION
Avatar of enachemc
enachemc
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What dbms are you using?