The Capital table contains state capitals. Location values are latitude and longitude in spatial reference system 4326.
ST_DISTANCE() computes each capital’s distance in meters to 40° latitude and -100° longitude. MySQL uses the British spelling ‘metre’ rather than the American spelling ‘meter’.
1. The supertype must specify NOT FINAL to allow subtypes.
2. GlobalAddressType is a subtype of AddressType with an additional property.
3. GlobalAddressType overrides the FormatAddress function.
4. The global FormatAddress function adds the country the formatted address.