createJOINQuery             package:maDB             R Documentation

_C_r_e_a_t_e _a _S_Q_L _q_u_e_r_y _t_h_a_t _j_o_i_n_s _t_w_o _o_r _m_o_r_e _t_a_b_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     This function creates SQL query strings that allow to join all
     available tables from the 'maDB' database.

_U_s_a_g_e:

     createJOINQuery(join, with, select = "*", r = TRUE)

_A_r_g_u_m_e_n_t_s:

    join: One of the two database tables that should be joined.

    with: The database table with which the first one should be joined.

  select: The attributes (column names) of the tables that should be
          returned. By default every column will be returned.

       r: Attribute for joining the 'comparisons' table with any other
          table. If 'r=TRUE' the entries of the 'comparisons' table
          will be joined with the other table using the information for
          the red signal channel, if 'r=FALSE' the informtion for the
          green signal channel will be used.

_D_e_t_a_i_l_s:

     Basically this function should ease the usage for the 'maDB'
     database. The list of tables that can be joined are: 'comparisons,
     signal_channels, arrays, samples and experiments'.

_V_a_l_u_e:

     A string that can be used in the 'dbSendQuery' (package RdbiPgSQL)
     function to retrieve the data.

_A_u_t_h_o_r(_s):

     Johannes Rainer

_S_e_e _A_l_s_o:

     'dbGetComparisons'

_E_x_a_m_p_l_e_s:

     ##
     ## join the comparison table with the samples table
     createJOINQuery(join="comparisons",with="samples")

