Hi,
I am trying to create a table as follows:
I am getting error 1064. Any ideas where I am going wrong?
The version of MySQL that I am running is: 4.1
I am running the query from MySQL Control Center
Thanks
Dabase
I am trying to create a table as follows:
Code:
CREATE TABLE `criteria` (
select PGC.PGC_P_ID, P_Title, GROUP_CONCAT(A_ID,'|', C_Title) AS Criteria
from tblproductsgroupcriteria PGC
join tblproducts P on PGC_P_ID = P_ID
join tblproductsgroupindustry PGI on PGInd_P_ID = P_ID
join tblcriteria C on PGC_C_ID = C_ID
join tblcriteriagroupapplication CGA on C_ID = CGA_C_ID
join tblapplication A on CGA_A_ID = A_ID
where (PGC_C_ID = 8 or PGC_C_ID = 19)
and PGInd_I_ID =3
group by PGC.PGC_P_ID order by P_Title, A_Title
)
I am getting error 1064. Any ideas where I am going wrong?
The version of MySQL that I am running is: 4.1
I am running the query from MySQL Control Center
Thanks
Dabase