Relative Content

Tag Archive for sqlsql-server-2019

Get latest row based by date grouped by concat

I have an issue where I’m trying to retrieve the latest Date created row out of a ConCat column. But getting an error that it’s an invalid name. So I’m guessing you can’t do it this way?

Appending Data to A NULL Existing Record With SQL

I want to append data to a field in Issues.Comments from table Comments_Upload but I need to append the comments from c.Comments to any existing value in Issues.Comments and not just overwrite it. My code does not work when there is no existing value in i.Comments. How do I just update i.Comments with c.Comments if there is no existing value in i.Comments?