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

enter image description here

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

enter image description here

but when try on sqlite

no such column: days (code 1): , while compiling

i read sqlite support alias


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -