You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Mamta A. Satoor (JIRA)" <ji...@apache.org> on 2015/01/12 22:25:34 UTC
[jira] [Comment Edited] (DERBY-2238) Example of ScalarSubquery in
Derby Reference Manual is not ScalarSubquery
[ https://issues.apache.org/jira/browse/DERBY-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14274193#comment-14274193 ]
Mamta A. Satoor edited comment on DERBY-2238 at 1/12/15 9:24 PM:
-----------------------------------------------------------------
Kim and Myrna, following is another example which is similar to the one we are removing but is scalar subquery. Thanks
– Introduce a way of "generating" new data values,
– using a query which selects from a VALUES clause (which is an
– alternate form of a fullselect).
– This query shows how a table can be derived called "X" having
– 1 column "R1" and 1 row of data.
SELECT R1
FROM (VALUES('GROUP 1')) as X(R1);
was (Author: mamtas):
Kim and Myrna, following is another example which is similar to the one we are removing but is scalar. Thanks
– Introduce a way of "generating" new data values,
– using a query which selects from a VALUES clause (which is an
– alternate form of a fullselect).
– This query shows how a table can be derived called "X" having
– 1 column "R1" and 1 row of data.
SELECT R1
FROM (VALUES('GROUP 1')) as X(R1);
> Example of ScalarSubquery in Derby Reference Manual is not ScalarSubquery
> --------------------------------------------------------------------------
>
> Key: DERBY-2238
> URL: https://issues.apache.org/jira/browse/DERBY-2238
> Project: Derby
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 10.2.2.0
> Environment: http://db.apache.org/derby/docs/dev/ref/rrefscalarsubquery.html
> Reporter: Tomohito Nakayama
> Assignee: Myrna van Lunteren
> Labels: derby_triage10_11
> Attachments: DERBY-2238.diff, rrefscalarsubquery.html
>
>
> In the page, I found next example.
> -- Introduce a way of "generating" new data values,
> -- using a query which selects from a VALUES clause (which is an
> -- alternate form of a fullselect).
> -- This query shows how a table can be derived called "X" having
> -- 2 columns "R1" and "R2" and 1 row of data.
> SELECT R1,R2
> FROM (VALUES('GROUP 1','GROUP 2')) AS X(R1,R2)
> I think this is not ScalarSubquery because the result have two columns.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)