Working with partitioned tables