createJOINQuery {maDB}R Documentation

Create a SQL query that joins two or more tables

Description

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

Usage

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

Arguments

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.

Details

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.

Value

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

Author(s)

Johannes Rainer

See Also

dbGetComparisons

Examples

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


[Package maDB version 1.8.0 Index]