Creating sub selects with the
Hi,
Reportbuilder Enterprise 6.03
we need to create a query like the one below using the
Query designer (and this is only a simple one)
SELECT achternaam AS Expr1, resourceid AS Expr2
FROM resources
WHERE (resourceid NOT IN
(SELECT resources.resourceid
FROM resources
INNER JOIN geplaatst ON resources.resourceid = geplaatst.resourceid
INNER JOIN opdrachten ON geplaatst.opdrachtid = opdrachten.opdrachtid
WHERE
(opdrachten.einddatum IS NULL) OR
(opdrachten.einddatum >= { fn CURDATE() })))
Is there an easier way than to manually add the complete subselect
in a single search clause. ??
Are there any replacements for the current Query designer. It works fine
but complex SQL statements are hard to define
- Subselects
- Union etc
regards
Paul Sjoerdsma
Reportbuilder Enterprise 6.03
we need to create a query like the one below using the
Query designer (and this is only a simple one)
SELECT achternaam AS Expr1, resourceid AS Expr2
FROM resources
WHERE (resourceid NOT IN
(SELECT resources.resourceid
FROM resources
INNER JOIN geplaatst ON resources.resourceid = geplaatst.resourceid
INNER JOIN opdrachten ON geplaatst.opdrachtid = opdrachten.opdrachtid
WHERE
(opdrachten.einddatum IS NULL) OR
(opdrachten.einddatum >= { fn CURDATE() })))
Is there an easier way than to manually add the complete subselect
in a single search clause. ??
Are there any replacements for the current Query designer. It works fine
but complex SQL statements are hard to define
- Subselects
- Union etc
regards
Paul Sjoerdsma
This discussion has been closed.
Comments
any replacements for the query designer that anyone else has developed which
we know of either.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com