call datatype and use select to make selection of data