Sql.Net Class Library Documentation

SqlExpression.SubQuery Method (String)

Creates a SqlExpression which represents a subquery.

public static SqlExpression SubQuery(
   string queryText


Text of the subquery.

Return Value

A new SqlExpression


In many cases you can use an inner or outer JOIN instead of a subquery. If you prefer using subqueries it is recomended that you construct the subquery using another instance of SelectQuery, render it using the correct renderer and pass the resulting SQL statement to the queryText parameter.

See Also

SqlExpression Class | Reeb.SqlOM Namespace | SqlExpression.SubQuery Overload List