/build/static/layout/Breadcrumb_cap_w.png

I'm trying to add a total to the end of a query this is what I came up with please help some one

mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT COUNT (*) FROM Machine WHERE ((OS_NAME like '%XP%') AND (OS_NAME like '%W' at line 2] in EXECUTE(
"SELECT GROUP_CONCAT(DISTINCT IF(LABEL.NAME NOT LIKE 'HDN_LABEL_%', LABEL.NAME, NULL) SEPARATOR '\n') AS LABEL_NAME, OS_NAME, USER_LOGGED  FROM MACHINE  LEFT JOIN MACHINE_LABEL_JT ON (MACHINE_LABEL_JT.MACHINE_ID = MACHINE.ID)  LEFT JOIN LABEL ON (LABEL.ID = MACHINE_LABEL_JT.LABEL_ID) WHERE ((OS_NAME like '%XP%') AND (OS_NAME like '%Windows%'))  GROUP BY MACHINE.ID ORDER BY LABEL_NAME, OS_NAME, USER_LOGGED,
SELECT COUNT (*) FROM Machine WHERE ((OS_NAME like '%XP%') AND (OS_NAME like '%Windows%')) GROUP BY TOTAL RESULT LIMIT 0")


0 Comments   [ + ] Show comments

Answers (0)

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ