how do i create a view or meterialize view on object type.

Thanks.