What are the location codes of all the documents?
select distinct location_code from document_locations
Whole document ids
select distinct document_id from document_locations
What is the date in location from of document id 81?
select date_in_location_from from document_locations where document_id = '81'