ed.
I'm going to guess that it's because you didn't use a separate alias for the
FROM in the correlated subquery.
Doesn't STRPOS() return INTEGER, not TEXT?
--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
--
Sent via pgsql-sql mail
Tarlika Elisabeth Schmitz wrote:
Lew wrote:
That isn't a table structure, that's a freeform text structure. You
didn't state your question, Tarlika, but your database structure is
terrible. For example, "region" and "country" should be different
columns.
meanings in different areas - it can mean part of a
county, or state / province, or nation, or continent. "The Baltic region",
"the Northeast", "upstate", "the North Country", "Europe" are all regions.
The OP should share more about the semanti
esql.org/docs/9.0/interactive/functions-string.html>
<http://www.postgresql.org/docs/9.0/interactive/functions-string.html#FUNCTIONS-STRING-OTHER>
replace(string text, from text, to text)
--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
--
Sent vi
<= "2011/04/30"::date
will fail, and so would
NULL <= "2011/04/01"::date
, since none of these evaluates to TRUE.
--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
r precedence than NOT.
So the CHECK expression Scott indicated is equivalent to the parenthesis-minimal
CHECK ( NOT ( sex = 'f' AND stats IS NOT NULL ) )
or
CHECK ( sex != 'f' OR stats IS NULL )
--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf
docs/9.0/interactive/sql-expressions.html#SQL-SYNTAX-SCALAR-SUBQUERIES>
<http://www.postgresql.org/docs/9.0/interactive/functions-subquery.html>
Or try:
<http://lmgtfy.com/?q=SQL+subquery>
--
Lew
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
matter but it's only a WAG.
--
Lew
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
g/docs/8.4/interactive/functions-subquery.html>
It's still true of more than one equal subquery row is found. It's not true
multiple times, it's just true.
If mytable.id is not unique, then every row with that value will be selected,
but adding DISTINCT to the IN list won't ch
(top-posting corrected)
Thomas Kellerer wrote:
The standard *requires* the keyword.
the6campbells wrote:
the db2 [sic] family does not
Ergo DB2 is not standard-compliant in that regard.
--
Lew
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your
quenced and
not. For my learning, I use a system on Linux with Java and PostgreSQL. It
works just fine.
I'm not familiar with Grails.
--
Lew
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
.
That's the point of locales, to formalize such rules so that you can coerce
your system to follow one or another set as needed. That way you don't have
to agree or disagree with any rule, such as ignoring punctuation in the sort,
simply be aware of whether it applies to any give
ut this
epicyclic dance to accomodate FK references to autoincremented keys makes the
case that there is also a performance penalty, and in the more critical
performance area of code development and correctness than in the less critical
search speed area.
--
Lew
---(end o
ess you pointed out of marking something
"confidential" then placing it into the public eye in an archived forum where
it will be visible by everybody forever.
Now we can publish everything ever written at or by Infinite Computer
Solutions without fear of liability.
--
Lew
ut to be
a big problem. (One quick primer that can help you understand this
is at <http://www2.hursley.ibm.com/decimal/decifaq1.html>.)
Would you rather have wrong answers really, really fast, or right answers fast
enough?
--
Lew
---(
15 matches
Mail list logo