Skip to content

Instantly share code, notes, and snippets.

@sajeetharan
Created April 19, 2019 09:53
Show Gist options
  • Save sajeetharan/985bd411e3e80ebb8134a16c684748ce to your computer and use it in GitHub Desktop.
Save sajeetharan/985bd411e3e80ebb8134a16c684748ce to your computer and use it in GitHub Desktop.
SELECT
CAST(BusinessEntityID AS varchar) AS [id],
Name AS [name],
AddressType AS [address.addressType],
AddressLine1 AS [address.addressLine1],
City AS [address.location.city],
StateProvinceName AS [address.location.stateProvinceName],
PostalCode AS [address.postalCode],
CountryRegionName AS [address.countryRegionName]
FROM
Sales.vStoreWithAddresses
WHERE
AddressType='Shipping'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment