From: --CELKO-- on 3 Feb 2010 10:52
"A problem well stated is a problem half solved." -- Charles F.
Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, data types, etc. in
your schema are. If you know how, follow ISO-11179 data element naming
conventions and formatting rules. Temporal data should use ISO-8601
formats. Code should be in Standard SQL as much as possible and not
Sample data is also a good idea, along with clear specifications. It
is very hard to debug code when you do not let us see it. If you want
to learn how to ask a question on a Newsgroup, look at:
If you don't know anything about RDBMS, then get a copy of the
simplest intro book I know --
The mess you posted has no key, way to have a key and nothing to
establish an ordering.