Well, I don't even know if this is called a sub-select, but hopefully you get the idea... I am trying to create a report using 3 tables that need to pull based on the same user-entered date, but they don't really need to be linked per-se as master to detail tables, or anything like that. In fact I can't figure out a legitimate way to link them for my current purposes.
I just want:
count of date_modified from tablex based on date parameter.
count of date_created from tabley based on date parameter.
count of date_created from tablez based on date parameter.
It seems like this should be easy to do. I saw an example of a sql query set up like so:
select a.datemod_cnt, b.datecreated_cnt,c.datecreated_cnt
(
select count(tablex.date_modified) datemod_cnt
from
tablex
where
tablex.date_modified=?date
)a,
(
select count(tabley.date_created) datecreated_cnt
from tabley
where
tabley.date_created=?date
)b,
(
select count(tablez.date_created) datecreated_cnt
from tablez
where tablez.date_created=?date
)c
order by created_by
Hopefully I have all the commas, etc., in the right places.
Is there some way to do something like this in 8.5 Standard? I also have 9advanced loaded on my pc, but have not loaded SQL Designer due to a conflict with 8.5. Is SQL Designer the only way to go on this besides perhaps a stored procedure? Also, I have used subreports to provide this sort of multi-unlinked-table-select, but I would like to avoid needless querying if possible.
Maybe I am making this way too complicated.
Thanks for any/all help!
I just want:
count of date_modified from tablex based on date parameter.
count of date_created from tabley based on date parameter.
count of date_created from tablez based on date parameter.
It seems like this should be easy to do. I saw an example of a sql query set up like so:
select a.datemod_cnt, b.datecreated_cnt,c.datecreated_cnt
(
select count(tablex.date_modified) datemod_cnt
from
tablex
where
tablex.date_modified=?date
)a,
(
select count(tabley.date_created) datecreated_cnt
from tabley
where
tabley.date_created=?date
)b,
(
select count(tablez.date_created) datecreated_cnt
from tablez
where tablez.date_created=?date
)c
order by created_by
Hopefully I have all the commas, etc., in the right places.
Is there some way to do something like this in 8.5 Standard? I also have 9advanced loaded on my pc, but have not loaded SQL Designer due to a conflict with 8.5. Is SQL Designer the only way to go on this besides perhaps a stored procedure? Also, I have used subreports to provide this sort of multi-unlinked-table-select, but I would like to avoid needless querying if possible.
Maybe I am making this way too complicated.
Thanks for any/all help!