I am running the following SQL's and am getting a 3706 error with the subject description.
results look like:
Chapter_id first_two
07040000 07
03090201 03
08030000 08
I appreciate any help and thank you in advance.
Code:
[b]1[/b]
create table temporaryDB.ao_test1 as (
select chapter_id from warhouse.chapter group by 1
) with data;
[b]2[/b]
create table temporaryDB.ao_test2 as(
select
chapter_id
,substr (chapter_id,1,2) as first_two
from
temporaryDB.ao_test1 group by 1,2) with data;
[b]3
select
chapter_id
, first_two
[COLOR=red],(concat (first_two,'000000') as high_level_chapter_id [/color]
from
temporaryDB.ao_test2;
[/b]
Chapter_id first_two
07040000 07
03090201 03
08030000 08
I appreciate any help and thank you in advance.