[SalesForce] How to get the Billing or Shipping address in Account objects as a single data

Is there a way to get the billing or shipping address in account object as a single data? Currently the address data is split across several fields like

Street
Address
City
State
Zip
Country

Is there any field called "BillingAddress" exists? Please suggest.

Best Answer

https://www.salesforce.com/us/developer/docs/api/Content/compound_fields_address.htm

After v30 Sfdc introduced compound field.This is read only field which is available on Account object

A sample SOQL will be as below

SELECT Name, BillingAddress FROM Account