Defining a range partition

In range partitioning, Adaptive Server distributes rows among partitions according to values in the partitioning keys. The partitioning key or keys of each row are compared with a set of upper and lower bounds to determine which partition the row belongs to.

StepsCreating range partitions

  1. Double-click the Databases folder in the left pane.

  2. Double-click the icon of the database with the table to partition.

  3. Double-click the User Tables folder.

  4. Double-click the icon of the table to repartition.

  5. Select the Data Partitions folder.

  6. Double-click the Repartition icon in the right pane. The Create Partition wizard opens. The wizard asks for this information:

    Table 17-6: Inputs to the Create Partition wizard

    Input

    Description

    Range

    Choice of partitioning strategy.

    Partition Key Columns

    Table columns that determine how the table is to be partitioned.

    Partition Name

    Name of partition (optional).

    Segment

    Segment name (optional).

    Values

    One or more upper bounds for each partition.

    After you have chosen a partitioning strategy and key column, the Partition Specification dialog box opens. Enter partition values.

  7. Enter the name of a partition in the Partition Name box (optional).

  8. Select a segment from the drop-down list in the Segment box (optional).

  9. Enter values for the partition. The values must be of the same datatype as the column.

  10. Click OK.

  11. Repeat steps 7 through 10 until you have defined values for all range partitions.