Column name is modified and the type is tinyint(1). How to fetch the column value as Yes/No using select query. And also I have 3 document name in one package while using select query the document name is split into three rows with same package name.
Here is the example for that column value has split into three rows: Expected Output:
name | data
abc | a,b,c
def | be
Actual Output:
name | data
abc | a
abc | b
abc | c
def | be
Here is the code:
select p.filename,p.version,doc.name from certificate_packages cp join packages p on cp.package_id=p.id left join package_documents pd on p.id=pd.package_id left join documents doc on doc.id=pd.document_id where cp.certificate_id=1099;
[![Attached the screenshot][1]][1]