Displaying the underlying SQL statement  Using ANSI outer joins

Chapter 17: Defining DataWindow Objects

Joining tables

If the DataWindow object will contain data from more than one table, you should join the tables on their common columns. If you have selected more than one table, PocketBuilder joins columns according to whether they have a key relationship:

Deleting joins

PocketBuilder links joined tables in the Select painter Table Layout view. PocketBuilder joins can differ depending on the order in which you select the tables, and sometimes the PocketBuilder best-guess join is incorrect, so you might need to delete a join and manually define a join.

Figure 17-18: Dialog box for manually deleting and adding table joins

StepsTo delete a join:

  1. Click the join operator connecting the tables.

    The Join dialog box displays.

  2. Click Delete.

Adding joins manually

You also add joins through the Join dialog box.

StepsTo join tables:

  1. Click the Join button in the PainterBar.

  2. Click the columns on which you want to join the tables.

  3. To create a join other than an equality join, click the join operator in the Table Layout view.

    The Join dialog box displays.

  4. Select the join operator you want and click OK.





Copyright © 2004. Sybase Inc. All rights reserved. Using ANSI outer joins

View this book as PDF