Hello, need to replace NULL values with text (letter A or ... or N/A)
Example If is null to write ...
Error is
Code
Conversion failed when converting the varchar value 'A1' to data type int.
SQL
SELECT (CASE WHEN prazno2 IS NULL THEN CONCAT('A',id) ELSE prazno2 END) as Rb FROM DBO.cte
Jaydeep PatilRank #205 · 11.7K reputationPosted Jul 17, 2022, 3:50 AM EDT
cast(product_id AS UNSIGNED)Sachin SinghRank #66 · 26.2K reputationPosted Jul 17, 2022, 4:15 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jul 17, 2022, 5:14 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jul 17, 2022, 3:55 AM EDT