Viewing 6 posts - 1 through 6 (of 6 total)
Hey Ratbak,
Thanks again, I tried SELECT CAST('A1-'+CustomerID as text) as CustomerID FROM Customers
Get the message. Conversion failed when converting the varchar value 'C25-' to data type int. Any help would...
January 28, 2022 at 10:55 pm
Haha, thanks Jeff. Feel a bit better now writing these queries knowing everything will remain unchanged. Just a quick question. I tried the CAST in w3school's sandbox and it worked...
January 28, 2022 at 5:26 pm
Hey, sorry for the late reply. I did try out your method from SQL Server 2018 R.2 but because my initial column was an integer, it wasn't able to convert...
January 27, 2022 at 6:26 pm
Awesome. I'm concatenating to a PK field, so I guess I can get away with either. Thank you again! 😀
January 21, 2022 at 1:20 am
Hi Grant, Thank you for your kind words of motivation. Looking forward to expand the learning.
January 20, 2022 at 8:37 pm
Thank you for confirming with me RatBak. appreciate your help
January 20, 2022 at 8:35 pm
Viewing 6 posts - 1 through 6 (of 6 total)