mysql - Sqlite alias column give an error -
this table
create table if not exists `calls` ( `id` int(11) not null auto_increment, `date` timestamp not null, `type` int(11) not null, primary key (`id`) ) engine=innodb
and there data on its
now use query type data same day
select user.name_first calls.date days, (select group_concat(type) calls day(date) = day(days) ) calls join user on user.user_id = calls.user_id calls.id in (select max(id) calls group day(calls.date))
as see calls.date days
, try type data
(select group_concat(type) calls day(date) = day(days) )
its work on mysql result in mysql
but when try on sqlite
no such column: days (code 1): , while compiling
i read sqlite support alias
Comments
Post a Comment