Skip to content

Simplify SQL query with string as array parameters

I’m trying to find a way to simplify my stored procedure. When I try to query using single parameter it went well but when using array, the retrieval process took so long. Any idea how will I simplify this? Someone suggested to me to put StringAsArray into temp table but I don’t know exactly what …

Capturing difference between 2 tables in one table

I understand my mistake with creating questions in StackOverflow, so I want to rewrite my question. I have two tables. One of them is my target table with old data and the source table with new data. Implicitly I want to compare these 2 tables and get information on which columns have been changed and changed…

Find numeric record number in string

I’ve been using this site for longer than I can remember, but I’ve never had to ask a question before – I’ve always been able to find what I need – but this one could use some SQL expertise for the best approach since it’s kind of a worst case. I have a text comment field t…

NULL in SQL need it Removed [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 months ago. Improve this question I would like to remove the “Null” in my week Column. Any help…

How to join two total tables using sql?

For a university work we have two tables in sql: table1: table2: I need to join the two tables by adding the total number of people in each city. So I tried to do: However, if a city A appears in table 1 and does not appear in table 2 this would not work. The same would happen if a