I am trying to calculate the total rows in a table called DRAWING with the following query: Select field, platform, count(doc_id) as total from drawing group by field, platform;
but I also need to display the total of attachments/non-attachments for each platform
SQL:
select field,platform,count(doc_id) as attached from drawing where file_bin is not null group by field, platform;
select field,platform,count(doc_id) as non_attached from drawing where file_bin is null group by field, platform;
Is there a way to combine the 3 values into a view? e.g Field , Platform, Total, Attached, Non_attached