I'm having problem with the following:
create table tab1 (col1 double precision, col2 double precision)
Insert into tab1
select distinct col1, null
from tab1
I can't do that, because of error column "col2" is of type double precision but expression is of type text
But this has no error:
Insert into tab1
select col1, null
from tab1
Why do I have an error with distinct and no error without it?
::double precisionafter theNULL.;after the create table?