docs: syntax.sgml patch

Started by Robert B. Easterabout 25 years ago14 messagesdocs
Jump to latest
#1Robert B. Easter
reaster@comptechnews.com

I've made an attempt to better describe the FROM clause and table expressions
in general for the SQL Syntax: Expressions page in the User's Guide.

My patch replaces the "FROM clause" section that was in there with a section
called "Table Expressions". It includes a description of the FROM clause and
also the WHERE, GROUP BY, HAVING, ORDER BY, and LIMIT clauses. The JOIN
syntax is covered. Subqueries are also explained some.

There could be some mistakes or statements that imply a limitation that is
not true (maybe). I encourage people to review it and correct any mistakes
or clean up the language etc.

If it's not right for being applied, let me know. I'm hoping this material
will fit in and be developed further with more examples later.

--
-------- Robert B. Easter reaster@comptechnews.com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------

Attachments:

syntax.sgml.patchtext/english; name=syntax.sgml.patchDownload+536-554
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert B. Easter (#1)
Re: docs: syntax.sgml patch

"Robert B. Easter" <reaster@comptechnews.com> writes:

I've made an attempt to better describe the FROM clause and table expressions
in general for the SQL Syntax: Expressions page in the User's Guide.

A good start. Here are some suggestions for improving it.

1. I think this material should be moved out of the "Expressions"
section and made into its own level-1 section. In the first place,
it's now larger than the rest of the section put together, and in the
second place table expressions are not the same kind of expression that
the rest of the section is talking about. (Perhaps the "Expressions"
section should be retitled "Arithmetic Expressions" or some such.)
The mention of scalar subqueries does belong under arithmetic
expressions, but ISTM the rest of this doesn't.

Another possibility is to make a new level-1 section that talks about
the syntax of the SELECT statement in general, with subsections along
the lines of
Target list
[take this part out of Expressions]
Source table (FROM/WHERE/GROUP BY/HAVING)
[most of what you wrote]
Display constraints (ORDER BY/LIMIT)
[last part of what you wrote]
UNION/INTERSECT/EXCEPT
[to be written]

2. I don't much like the way you use the term "input table"; that seems
to me to connote a real table that is being used as one of the initial
inputs to a SELECT. Perhaps use something like "final derived table" to
refer to the output of the table expression, with "output table" being
the result of the SELECT itself.

3. The references to scope seem to just be confusing here. I'd leave
them out of this discussion and plan to develop a separate section
discussing name scope and outer references.

4. Your practice of showing several examples in a group and then
explaining them seems confusing, because it's not always clear which
example any particular sentence is referring to. I'd say keep to a
strict one-example, one-commentary alternation.

5. In some places you have {curly braces} around syntactic variables.
Don't do that, use the appropriate markup.

6. Both SQL92 and Postgres allow a HAVING clause without GROUP BY.
It's kinda pointless, perhaps, but it's allowed.

7. It's not correct to say that standard SQL only allows ORDER BY in
cursors; there's also

<direct select statement: multiple rows> ::=
<query expression> [ <order by clause> ]

regards, tom lane

#3Robert B. Easter
reaster@comptechnews.com
In reply to: Tom Lane (#2)
Re: docs: syntax.sgml patch

On Sunday 14 January 2001 15:45, Tom Lane wrote:

"Robert B. Easter" <reaster@comptechnews.com> writes:

I've made an attempt to better describe the FROM clause and table
expressions in general for the SQL Syntax: Expressions page in the User's
Guide.

1. I think this material should be moved out of the "Expressions"
section and made into its own level-1 section. In the first place,
it's now larger than the rest of the section put together, and in the
second place table expressions are not the same kind of expression that
the rest of the section is talking about. (Perhaps the "Expressions"
section should be retitled "Arithmetic Expressions" or some such.)
The mention of scalar subqueries does belong under arithmetic
expressions, but ISTM the rest of this doesn't.

Thanks for feedback!

I see what you are saying and I expected my stuff to not fit so well. The
FROM list section, which I replaced, doesn't really belong there either. The
whole outline of the SQL Syntax chapter could maybe use a redesign with a
structure that follows the breakdown of SQL as expressed in the SQL standards
documents and then Postgres extensions/compatibility chapters or material
mixed in.

The basic outline of the standard I read (SQL1999) is like:

1. Scope
2. Normative References
3. Definitions, notations, conventions.
4. Concepts
5. Lexical Elements
6. Scalar Expressions
Value Expression
Scalar Subquery
Case Expression
Element Reference
7. Query Expressions
Table Expression
FROM clause
WHERE clause
etc ...
8. Predicates
LIKE
BETWEEN
EXISTS
9. Data Assignment Rules and Routine Determination
10. Additional Common Elements
11. Schema Definition and Manipulation
12. Access Control
13. SQL-client modules
14. Data Manipulation
15. Control Statements
16. Transaction Management
17. Connection Management
18. Session Management
19. Diagnostics Management
20. Information Schema
21. Definition Schema
22. Status Codes

Anyhow, this outline could be a basis from which to build an "SQL Guide" or
something. Maybe calling it SQL Syntax is not the best. More than just pure
syntax is laid out. The semantics is explained too. The standard document
has a good structure but is very formal. Taking this structure and writing
something that is normal, readable english with real examples from PostgreSQL
would be something good but is a large task - basically, derive a document
based on the standard doc (no verbatim plagiarism though). Maybe not all of
the chapters above make sense for PostgreSQL now if it's not all implemented,
but that outline could be reserved, in a way, for future development.

The current "Expressions" section, as it is, might better be called "Scalar
Expressions" and then move the "Table Expressions" that I wrote under "Query
Expressions." etc ...

The reference section, from the man-pages etc, would still be good as like
quick reference cards.

Comments, anyone?

Another possibility is to make a new level-1 section that talks about
the syntax of the SELECT statement in general, with subsections along
the lines of
Target list
[take this part out of Expressions]
Source table (FROM/WHERE/GROUP BY/HAVING)
[most of what you wrote]
Display constraints (ORDER BY/LIMIT)
[last part of what you wrote]
UNION/INTERSECT/EXCEPT
[to be written]

2. I don't much like the way you use the term "input table"; that seems
to me to connote a real table that is being used as one of the initial
inputs to a SELECT. Perhaps use something like "final derived table" to
refer to the output of the table expression, with "output table" being
the result of the SELECT itself.

I agree. I want to use standard terminology and take the time to introduce
and define terms clearly before using them. I was afraid to use "derived
table" all over the place because I thought it was too vague sounding. The
result of the whole query is also a derived table so things are confusing
maybe. Also, I saw the "input table" term used in some other PostgreSQL
docs, so I thought it might be consistent. It can be worked on more and the
terms improved.

3. The references to scope seem to just be confusing here. I'd leave
them out of this discussion and plan to develop a separate section
discussing name scope and outer references.

Ok. I'm not sure where that fits right now either.

4. Your practice of showing several examples in a group and then
explaining them seems confusing, because it's not always clear which
example any particular sentence is referring to. I'd say keep to a
strict one-example, one-commentary alternation.

I know, its confusing. :) Examples need work.

5. In some places you have {curly braces} around syntactic variables.
Don't do that, use the appropriate markup.

It would be more like:

SELECT <select list> <table expression>

?? DocBook puts those curly braces on automatically when I use choice="req"
in a <arg> tag. Guess I can't use those DocBook tags all the time unless it
can do < and > with some other tag or option.

6. Both SQL92 and Postgres allow a HAVING clause without GROUP BY.
It's kinda pointless, perhaps, but it's allowed.

You're right, I've done it and it works like a WHERE clause. In SQL99, the
default in a HAVING clause, if group by is not specified, is GROUP BY (). A
GROUP BY () is called a <grand total>. I'll admit, the reading of the <group
by clause> is one of the more confusing ones. Whatever GROUP BY () is
supposed to do, PostgreSQL won't take it.

7. It's not correct to say that standard SQL only allows ORDER BY in
cursors; there's also

<direct select statement: multiple rows> ::=
<query expression> [ <order by clause> ]

regards, tom lane

Again, I'm reading SQL1999 so things are different. I managed to see a copy
of SQL92 and found what you quote. However, direct select statement is not
present in the SQL1999 file I've been reading. In the file I read, <order by
clause> is only used in a <declare cursor> definition. I guess they intend
that if you really want ordered results, you have to create a cursor for it
now. But it doesn't matter too much since PostgreSQL is working on SQL92
compatibility, right.

The documentation seems to need a lot of work. I'm not sure how radically it
can be changed since I don't want to disturb others work any. I've just been
trying to squeeze in my stuff where I can fit it! :)

--
-------- Robert B. Easter reaster@comptechnews.com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------

#4Peter Eisentraut
peter_e@gmx.net
In reply to: Robert B. Easter (#3)
Re: [PATCHES] docs: syntax.sgml patch

[ redirected to -docs ]

Robert B. Easter writes:

I see what you are saying and I expected my stuff to not fit so well. The

FROM list section, which I replaced, doesn't really belong there either. The

whole outline of the SQL Syntax chapter could maybe use a redesign with a
structure that follows the breakdown of SQL as expressed in the SQL standards
documents and then Postgres extensions/compatibility chapters or material
mixed in.

Not a bad idea. I think we already have it similar to that.

The basic outline of the standard I read (SQL1999) is like:

1. Scope
2. Normative References
3. Definitions, notations, conventions.

Skip that.

4. Concepts

Maybe tutorial?

5. Lexical Elements

We have that.

6. Scalar Expressions
Value Expression
Scalar Subquery
Case Expression
Element Reference

We have some of that. You're writing the rest. (?)

7. Query Expressions
Table Expression
FROM clause
WHERE clause
etc ...

You're writing that.

8. Predicates
LIKE
BETWEEN
EXISTS

This should be in the functions/operators chapter.

9. Data Assignment Rules and Routine Determination

This is sort of the function/operator resolution and type casting rules.
These are documented somewhere.

10. Additional Common Elements
11. Schema Definition and Manipulation
12. Access Control
13. SQL-client modules
14. Data Manipulation
15. Control Statements

These all have varyingly little documentation between the tutorial,
reference manual, smoke and mirrors.

16. Transaction Management

Documented

17. Connection Management
18. Session Management
19. Diagnostics Management
20. Information Schema
21. Definition Schema
22. Status Codes

We don't have these implemented.

Anyhow, this outline could be a basis from which to build an "SQL Guide" or
something.

The User's Guide is effectively the SQL Guide, it just isn't called that.
In the future we might want to ponder renaming it.

Maybe calling it SQL Syntax is not the best. More than just pure
syntax is laid out. The semantics is explained too. The standard document
has a good structure but is very formal. Taking this structure and writing
something that is normal, readable english with real examples from PostgreSQL
would be something good but is a large task - basically, derive a document
based on the standard doc (no verbatim plagiarism though).

I think you have the right idea. The schedule is probably too short to
accomplish all of this for 7.1, though.

5. In some places you have {curly braces} around syntactic variables.
Don't do that, use the appropriate markup.

It would be more like:

SELECT <select list> <table expression>

?? DocBook puts those curly braces on automatically when I use choice="req"
in a <arg> tag. Guess I can't use those DocBook tags all the time unless it
can do < and > with some other tag or option.

You can use choice="plain". I don't feel partial either way but I wonder
how it looks in print.

The documentation seems to need a lot of work. I'm not sure how radically it
can be changed since I don't want to disturb others work any. I've just been
trying to squeeze in my stuff where I can fit it! :)

I don't think you will disturb too many people...

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/

#5Robert B. Easter
reaster@comptechnews.com
In reply to: Peter Eisentraut (#4)
Re: [PATCHES] docs: syntax.sgml patch

We seem to be in agreement about the SQL documentation. That's cool. :)

I'd really like to see the "SQL Guide" when we can do it. As for the User's
Guide, you say it might be nice to rename it SQL Guide. That could be done
or have both. Maybe having both an SQL guide and a User's guide is best.

The SQL Guide would document all of the SQL language in PostgreSQL based on
the outline of the SQL standards docs and using as many standard terms as
possible without it being too cryptic/formal for normal readers.

The User's guide could focus on non-SQL things that users want to know, like
about psql, pgaccess, and other user apps, explain the basic architecture and
files involved in the system, and commands that are PostgreSQL-specific but
not SQL and not DBA-level commands.

The Admin guide covers those commands and programs (initdb/postmaster) that
affect the whole database management system, its tuning, backup and other
things. All the other guides could reference the SQL Guide when needing to
explain the full details of an sql command.

Again, everything is already similar to (or exactly) what I'm saying here! :)

Well, if you think the creation of the SQL Guide is really good, we can work
on the outline of this guide. This would be a toplevel guide like User's,
Admin, Programmer etc. We can look through the outline of the standards docs
more and have a good plan. Once we have a good outline, then its easy for
anyone to write sections and chapters to fill it in with material. I really
think we want to establish the outline before everyone jumps in and it
becomes a disorganized patchwork of documentation.

Let me know what you think. When I have the time, I will look at both the
basic outline in SQL92 Foundation and SQL99 Foundation. PostgreSQL wants
SQL92 compatibility, so we have to see how they differ and what chapters and
sections make sense in a PostgreSQL SQL Guide. At the same time, PostgreSQL
should be looking at SQL99 too for the future, at least for implementing some
intesting new features. I'm thinking to create detailed outlines from both
SQL92 and SQL99, then compare them and compare them both with PostreSQL.
Then, take from both outlines what is right for PostgreSQL and make that the
basic outline of the SQL Guide. Finally, after the outline as been poked
around by enough people on this list, post the skeleton (outline) of the SQL
Guide somewhere (in cvs maybe), and then anyone can write the sections and
chapters. Hopefully the chapters and sections in the outline will be good
enough and people won't try to write different chapter or section names. We
want to keep it so that every chapter and section has a clear mapping to the
offical SQL Foundation docs. The SQL Guide can make footnotes referring the
reader to see the corresponding SQL Foundation section for detailed
information. The SQL Guide would be like a novice to intermediate-level
guide to SQL while the SQL Foundation doc is like the advanced version.

I think it would be a good docs project and a nice opportunity to get into
those specs in detail and learn a lot. By making a new SQL Guide, I won't
have to worry about upsetting the existing docs too. :)

On Monday 15 January 2001 16:03, Peter Eisentraut wrote:

[ redirected to -docs ]

Robert B. Easter writes:

I see what you are saying and I expected my stuff to not fit so well.
The

FROM list section, which I replaced, doesn't really belong there either.
The

whole outline of the SQL Syntax chapter could maybe use a redesign with a
structure that follows the breakdown of SQL as expressed in the SQL
standards documents and then Postgres extensions/compatibility chapters
or material mixed in.

Not a bad idea. I think we already have it similar to that.

The basic outline of the standard I read (SQL1999) is like:

1. Scope
2. Normative References
3. Definitions, notations, conventions.

Skip that.

4. Concepts

Maybe tutorial?

5. Lexical Elements

We have that.

6. Scalar Expressions
Value Expression
Scalar Subquery
Case Expression
Element Reference

We have some of that. You're writing the rest. (?)

7. Query Expressions
Table Expression
FROM clause
WHERE clause
etc ...

You're writing that.

8. Predicates
LIKE
BETWEEN
EXISTS

This should be in the functions/operators chapter.

9. Data Assignment Rules and Routine Determination

This is sort of the function/operator resolution and type casting rules.
These are documented somewhere.

10. Additional Common Elements
11. Schema Definition and Manipulation
12. Access Control
13. SQL-client modules
14. Data Manipulation
15. Control Statements

These all have varyingly little documentation between the tutorial,
reference manual, smoke and mirrors.

16. Transaction Management

Documented

17. Connection Management
18. Session Management
19. Diagnostics Management
20. Information Schema
21. Definition Schema
22. Status Codes

We don't have these implemented.

Anyhow, this outline could be a basis from which to build an "SQL Guide"
or something.

The User's Guide is effectively the SQL Guide, it just isn't called that.
In the future we might want to ponder renaming it.

Maybe calling it SQL Syntax is not the best. More than just pure
syntax is laid out. The semantics is explained too. The standard
document has a good structure but is very formal. Taking this structure
and writing something that is normal, readable english with real examples
from PostgreSQL would be something good but is a large task - basically,
derive a document based on the standard doc (no verbatim plagiarism
though).

I think you have the right idea. The schedule is probably too short to
accomplish all of this for 7.1, though.

5. In some places you have {curly braces} around syntactic variables.
Don't do that, use the appropriate markup.

It would be more like:

SELECT <select list> <table expression>

?? DocBook puts those curly braces on automatically when I use
choice="req" in a <arg> tag. Guess I can't use those DocBook tags all
the time unless it can do < and > with some other tag or option.

You can use choice="plain". I don't feel partial either way but I wonder
how it looks in print.

The documentation seems to need a lot of work. I'm not sure how
radically it can be changed since I don't want to disturb others work
any. I've just been trying to squeeze in my stuff where I can fit it! :)

I don't think you will disturb too many people...

--
-------- Robert B. Easter reaster@comptechnews.com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------

#6Bruce Momjian
bruce@momjian.us
In reply to: Robert B. Easter (#1)
Re: docs: syntax.sgml patch

I know this SQL Guide has been discussed, but what should be done with
this patch?

[ Charset ISO-8859-1 unsupported, converting... ]

I've made an attempt to better describe the FROM clause and table expressions
in general for the SQL Syntax: Expressions page in the User's Guide.

My patch replaces the "FROM clause" section that was in there with a section
called "Table Expressions". It includes a description of the FROM clause and
also the WHERE, GROUP BY, HAVING, ORDER BY, and LIMIT clauses. The JOIN
syntax is covered. Subqueries are also explained some.

There could be some mistakes or statements that imply a limitation that is
not true (maybe). I encourage people to review it and correct any mistakes
or clean up the language etc.

If it's not right for being applied, let me know. I'm hoping this material
will fit in and be developed further with more examples later.

--
-------- Robert B. Easter reaster@comptechnews.com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------

[ Attachment, skipping... ]

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#7Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#6)
Re: docs: syntax.sgml patch

Bruce Momjian writes:

I know this SQL Guide has been discussed, but what should be done with
this patch?

I believe he's going to revise it to address Tom Lane's suggestions.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/

#8Robert B. Easter
reaster@comptechnews.com
In reply to: Peter Eisentraut (#7)
Re: docs: syntax.sgml patch

I worked on the ORDER BY paragraphs some more. See what you think of it now.
The patch is attached. :)

On Thursday 18 January 2001 18:48, Peter Eisentraut wrote:

Bruce Momjian writes:

I know this SQL Guide has been discussed, but what should be done with
this patch?

I believe he's going to revise it to address Tom Lane's suggestions.

--
-------- Robert B. Easter reaster@comptechnews.com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------

Attachments:

syntax.sgml.patch.3text/english; name=syntax.sgml.patch.3Download+532-560
#9Peter Eisentraut
peter_e@gmx.net
In reply to: Robert B. Easter (#5)
SQL Guide

Robert B. Easter writes:

We seem to be in agreement about the SQL documentation. That's cool. :)

I thought about this some more and came to the conclusion that the outline
used in the SQL standard is not appropriate to use for such an SQL guide.
The SQL standard is organized "bottom-up", it explains the meaning of each
syntactic clause and then assembles more complex clauses as it goes along.
The result is that the plain-old SELECT statement is not discussed until
chapter 17 of part 5, which is in essence just about the last thing
overall. This is okay for what that document is: it's a plain language
version of a grammar specification.

For our purposes we need to organize the thing top-down. We start with
the big four commands SELECT, INSERT, UPDATE, DELETE with simple cases,
then move on to more complicated things such as joins and subqueries. Of
course the lexical rules still go first, and the basics of the scalar
expression syntax as well, but we don't want to define ordering or joining
rules before introducing the SELECT command. I came up with an outline
like this:

1. Lexical structure [done]
2. Simple selects and Inserts
3. Expression syntax, complicated selects
4. Delete and Update
5. Joins, Subqueries, Naming scope, Unions
6. Aggregates
7. Ordering
8. Creating tables in all its glory, maybe more than one chapter

This would be the generic part (applicable to any SQL RDBMS). Following
this would be the existing chapters about data types, functions, type
conversion, concurrency control.

I'd really like to see the "SQL Guide" when we can do it. As for the User's
Guide, you say it might be nice to rename it SQL Guide. That could be done
or have both. Maybe having both an SQL guide and a User's guide is best.

We don't have a lot of material to have both, but we can divide them into
<part>s. Really, the current split between books is primarily so you can
print them individually without having to buy a ton of paper. It is not
necessarily a mandate to make a library out of it. ;-)

The Admin guide covers those commands and programs (initdb/postmaster) that
affect the whole database management system, its tuning, backup and other
things. All the other guides could reference the SQL Guide when needing to
explain the full details of an sql command.

Correct. The Admin Guide is basically defined as comprising all activity
that needs to be done on the server system.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/

#10Peter Eisentraut
peter_e@gmx.net
In reply to: Robert B. Easter (#8)
Re: docs: syntax.sgml patch

I've checked this in, or at least I used it as the starting point for what
I did. The GROUP BY and ORDER BY explanations seemed really complicated,
so I disabled them for now. They need to be made simpler, and an example
would be nice. Essentially, this section is now the description of the
SELECT command; maybe it should be named like that, too.

Robert B. Easter writes:

I worked on the ORDER BY paragraphs some more. See what you think of it now.
The patch is attached. :)

On Thursday 18 January 2001 18:48, Peter Eisentraut wrote:

Bruce Momjian writes:

I know this SQL Guide has been discussed, but what should be done with
this patch?

I believe he's going to revise it to address Tom Lane's suggestions.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/

#11Robert B. Easter
reaster@comptechnews.com
In reply to: Peter Eisentraut (#10)
Re: docs: syntax.sgml patch

Thanks for getting some of the table expressions into the docs. I think it
will be helpful to people. I'll see what I can do with the GROUP BY and
HAVING clauses, unless you beat me to it! Thanks again.

On Sunday 21 January 2001 17:14, Peter Eisentraut wrote:

I've checked this in, or at least I used it as the starting point for what
I did. The GROUP BY and ORDER BY explanations seemed really complicated,
so I disabled them for now. They need to be made simpler, and an example
would be nice. Essentially, this section is now the description of the
SELECT command; maybe it should be named like that, too.

Robert B. Easter writes:

I worked on the ORDER BY paragraphs some more. See what you think of it
now. The patch is attached. :)

On Thursday 18 January 2001 18:48, Peter Eisentraut wrote:

Bruce Momjian writes:

I know this SQL Guide has been discussed, but what should be done
with this patch?

I believe he's going to revise it to address Tom Lane's suggestions.

--
-------- Robert B. Easter reaster@comptechnews.com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------

#12Robert B. Easter
reaster@comptechnews.com
In reply to: Peter Eisentraut (#10)
Re: docs: syntax.sgml patch

I saw the commented sections about GROUP BY etc. I've taken another try at
GROUP BY in the patch (attached). I moved the commenting to cover ORDER BY
and LIMIT now.

On Sunday 21 January 2001 17:14, Peter Eisentraut wrote:

I've checked this in, or at least I used it as the starting point for what
I did. The GROUP BY and ORDER BY explanations seemed really complicated,
so I disabled them for now. They need to be made simpler, and an example
would be nice. Essentially, this section is now the description of the
SELECT command; maybe it should be named like that, too.

Robert B. Easter writes:

I worked on the ORDER BY paragraphs some more. See what you think of it
now. The patch is attached. :)

On Thursday 18 January 2001 18:48, Peter Eisentraut wrote:

Bruce Momjian writes:

I know this SQL Guide has been discussed, but what should be done
with this patch?

I believe he's going to revise it to address Tom Lane's suggestions.

--
-------- Robert B. Easter reaster@comptechnews.com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------

Attachments:

syntax.sgml.patch.4text/english; name=syntax.sgml.patch.4Download+141-74
#13Robert B. Easter
reaster@comptechnews.com
In reply to: Peter Eisentraut (#10)
Re: docs: syntax.sgml patch

Woops. syntax.sgml.patch.5 is attached. Don't use syntax.sgml.patch.4, it
has a mistake in it. Sorry. (Hopefully no other errors!)

On Sunday 21 January 2001 17:14, Peter Eisentraut wrote:

I've checked this in, or at least I used it as the starting point for what
I did. The GROUP BY and ORDER BY explanations seemed really complicated,
so I disabled them for now. They need to be made simpler, and an example
would be nice. Essentially, this section is now the description of the
SELECT command; maybe it should be named like that, too.

Robert B. Easter writes:

I worked on the ORDER BY paragraphs some more. See what you think of it
now. The patch is attached. :)

On Thursday 18 January 2001 18:48, Peter Eisentraut wrote:

Bruce Momjian writes:

I know this SQL Guide has been discussed, but what should be done
with this patch?

I believe he's going to revise it to address Tom Lane's suggestions.

--
-------- Robert B. Easter reaster@comptechnews.com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------

Attachments:

syntax.sgml.patch.5text/english; name=syntax.sgml.patch.5Download+141-74
#14Bruce Momjian
bruce@momjian.us
In reply to: Robert B. Easter (#13)
Re: docs: syntax.sgml patch

Robert, this in all in CVS, right?

Woops. syntax.sgml.patch.5 is attached. Don't use syntax.sgml.patch.4, it
has a mistake in it. Sorry. (Hopefully no other errors!)

On Sunday 21 January 2001 17:14, Peter Eisentraut wrote:

I've checked this in, or at least I used it as the starting point for what
I did. The GROUP BY and ORDER BY explanations seemed really complicated,
so I disabled them for now. They need to be made simpler, and an example
would be nice. Essentially, this section is now the description of the
SELECT command; maybe it should be named like that, too.

Robert B. Easter writes:

I worked on the ORDER BY paragraphs some more. See what you think of it
now. The patch is attached. :)

On Thursday 18 January 2001 18:48, Peter Eisentraut wrote:

Bruce Momjian writes:

I know this SQL Guide has been discussed, but what should be done
with this patch?

I believe he's going to revise it to address Tom Lane's suggestions.

--
-------- Robert B. Easter reaster@comptechnews.com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------

[ Attachment, skipping... ]

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026