get value from some tables