Generation

code to explanationSun, 19 Feb 2023

SELECT studentname, address + ', ' + pincode + ' ' + city + ', ' + country AS Address FROM students ​

The above query takes the columns address, pincode, city and country, concatenates them by using the + operator with a comma (,) and space ( ) in between each and returns the full address as Address.

Questions about programming?Chat with your personal AI assistant