$crs->as_query,
'(SELECT COUNT( * )
FROM (
- SELECT me.artistid, MAX( cds.year ) AS newest_cd_year,
+ SELECT me.artistid, MAX( cds.year ) AS newest_cd_year
FROM artist me
LEFT JOIN cd cds ON cds.artist = me.artistid
GROUP BY me.artistid
me.cdid,
DISTINCT(foo, bar),
me.genreid,
- (SELECT me.name, me.rank FROM artist me WHERE ( artistid 1 )),
+ (SELECT me.name, me.rank FROM artist me WHERE ( artistid 1 ))
FROM cd me'
=> [qw/title cd_id foo bar genreid name rank/],
DISTINCT(foo, bar),
me.genreid,
(SELECT me.name, me.rank FROM artist me WHERE ( artistid 1 )),
- COUNT( me.cdid ) AS cnt,
+ COUNT( me.cdid ) AS cnt
FROM cd me'
=> [qw/title len cd_id foo bar genreid name rank cnt/],
{