This topic is locked

SQL Issues

3/8/2014 9:45:27 AM
PHPRunner General questions
G
g_parry author

I am trying to output any duplicate records in a table and using the following query:

SELECT

ID,

First_Name,

Last_Name,

Address,

Address2,

Address3,

Postcode,

COUNT(*) AS c

FROM resident_permit

GROUP BY Address

HAVING c > 1

ORDER BY Address;
This works perfectly when I try running it against the database but phprunner keeps throwing up an error: ORDER BY fiels must match SELECT fields - I have selected autofix and skip but as soon as I try to run the applications I get a php error 256 "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 '; as Address; FROM resident_permit GROUP BY Address having ((c > 1)' at line 2"
If anyone can help they will have my eternal gratitude?

Sergey Kornilov admin 3/8/2014

If you want someone from support team to take a look at this post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.