An alternative way is to create a View in database.