I have a table with Name and Area. I want to run a query that returns that table with the addition of a 'Special_COUNT' The count returns 1 on the firstmost Concat(Distinct(Name,Area); should return 0 otherwise For example:
Name | Area | Special_COUNT |
ABCD | US | 1 |
ABCD | US | 0 |*Same Name/Region no value
ABCD | Asia | 1 |*New Region
ABCDX | Asia | 1 |*New Name
How can I get the above 'Special_COUNT' column into the results of my query?