Test: Location America

1

Please login or register to vote for this query.

(click on this box to dismiss)

Physics

Q&A for active researchers, academics and students of physics

-- List of Users in "america"
-- Not Case Sensitive

SELECT
    Top ##Top##
    ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], 
    Id AS [User Link], 
    Reputation,
    Location,
    --CreationDate,
    LastAccessDate,
    UpVotes,
    DownVotes
    
FROM
    Users
WHERE

    (
    lower(location) like lower('%america%')

  -- For the abbreviation right side match, lead with a space
  -- Enter dummy if not required
  --or lower(location) like lower('%##AbbreviationRight##')
     )
  
  -- exclusions
     and not
     (
     -- Enter dummy if not required
     lower(location) LIKE lower('%##Exclusion##%')
     or lower(location) = lower('America') -- equals America - Assume USA
     
     --Specific false positive results
     --  pulled out prior to "America" in the World count
     or location like '%USA%'
     or location like '%Ohio%'
     or location like '%China%'
     or location like '%Asia%'
     
     or lower(location) LIKE lower('%Americana%') -- Brazil
     
     or lower(location) LIKE lower('%North America%')
     or lower(location) LIKE lower('%South America%')
     or lower(location) LIKE lower('%Central America%')
     or lower(location) LIKE lower('%Latin America%')
     
     or lower(location) LIKE lower('%American Fork%')
     or lower(location) LIKE lower('%American Samoa%')
     
     or lower(location) LIKE lower('%United States%')
     or lower(location) LIKE lower('%United Sates of America%') -- typo
     
     or lower(location) LIKE lower('%dummy%')
     
     )
     
 order by location asc -- to pick out incorrect results

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results