SQL server -T-SQL questions and examples.
Lessons once learned and now recorded.
TOP(1) solution for “Subquery returned more than 1 value” error
If you connecting to a table using subquery, you might experience an error “Subquery returned more than 1 value“, that will crash your SQL. Here is an elegant and powerful solution that (1) cures the error and (2) allows to locate your desired row more precisely. For example, you […]