Subject | Re: [firebird-support] computed column with max(value) of referening rows out of a child table |
---|---|
Author | Martijn Tonies |
Post date | 2004-07-09T13:28:37Z |
Hi,
( (SELECT MAX (<BIRTHDATE>) FROM <CHILDREN> WHERE <PARENTS_ID> =
PARENTS.ID ))
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
> I want toPARENTS.ID;
> ALTER TABLE <PARENTS>
> ADD <OLDESTCHILD> COMPUTED BY
> (SELECT MAX (<BIRTHDATE>) FROM <CHILDREN> WHERE <PARENTS_ID> =
>Use an extra set of parenthesis:
> but I get a
> Dynamic SQL Error
> -SQL error code = -104
> -Token unknown - line 3, char 3
> -select
>
> what did I wrong?
( (SELECT MAX (<BIRTHDATE>) FROM <CHILDREN> WHERE <PARENTS_ID> =
PARENTS.ID ))
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com