hi,
I have a query which is giving me some trouble when returning the data from ms query.
The query was written in mysql query browser and returns 2 columns of data - a date and a number.
MS Query correctly processes the query but when the data is returned to excel only the second column is returned.
Here is the query:
SELECT
(SELECT
max(l.the_date)
FROM
nc_view_date_functions AS l
WHERE
l.week_of_year = d.week_of_year
AND l.yyyy = d.yyyy
) AS week_end_date,
count(r.consent_id) AS weekly_count
FROM
rg_resource_consents AS r
INNER JOIN nc_view_date_functions AS d
ON r.application_date = d.the_date
GROUP BY
d.yyyy, d.week_of_year;
Can anyone shed any light on this for me?
Many thanks
Bookmarks