Skip to content

Tag: sql-server

Duplicate or same record in select query

I tried to execute a select query which I select from the different tables but I still getting duplicate record even I use “DISTINCT”. Below I attached the result from my query. Answer DE_Name is different between 2 rows. So it’s correct. To resolve your problem, just do it However, the root…

Fix Join table functions or not duplicate values?

So I have a query in NaviCat, it has a part that looks like this: As the Base table has the Identifier Number, but does not contain the Names of the person. It is connected properly and works. However, It is tripling some rows in certain cases. I can get a response back that looks similar to this I would

SQL CASE statement needs to handle Text

Apologies if this has been asked before – I’ve spent a couple of hours searching but not found anything that’s helped. It’s quite simple really – I’ve been asked to create a query which includes a field that when it was set up (not by me) was created as a VARCHAR instead of…