Github user DaveBirdsall commented on a diff in the pull request:

    
https://github.com/apache/incubator-trafodion/pull/1001#discussion_r105228189
  
    --- Diff: docs/sql_reference/src/asciidoc/_chapters/sql_statements.adoc ---
    @@ -7784,6 +7784,117 @@ SELECT (SELECT a FROM t1) FROM t GROUP BY (SELECT a 
FROM t1);
     SELECT a+1 FROM t GROUP BY 1+a;
     ```
     
    +[[with_clause_syntax]]
    +=== Syntax Description of WITH clause
    +
    +WITH clause, known as Common Table Expressions (CTEs) or subquery 
factoring clause, was introduced in the SQL-99 standard and has been 
implemented into Trafodion R2.1.
    +
    +For the complex expression which is referenced multiple times within the 
body of SELECT Statement, WITH clause assigns it an alias which is treated like 
a temporary table or an inline view that lasts only for the duration of the 
query and can be referenced various times in the same query.
    --- End diff --
    
    Minor grammar suggestion: Consider "For a complex expression which is 
referenced multiple times within the body of a SELECT statement, the WITH 
clause assigns it an alias. The alias is treated like a temporary table or an 
inline view..."  (I changed "the" to "a" before "complex expression, added "a" 
before SELECT, and made "statement" lower case.)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to