Stringsql1="SELECT * FROM "+tableName+" WHERE "+primaryKey+" in (SELECT MIN("+primaryKey+") FROM "+tableName+" GROUP BY "+metaData+" HAVING COUNT("+metaData+")>1) UNION ALL ";
Stringsql1="SELECT * FROM "+tableName+" WHERE "+primaryKey+" in (SELECT MIN("+primaryKey+") FROM "+tableName+" GROUP BY "+metaData+" HAVING COUNT("+metaData+")>1) UNION ALL ";
Stringsql2="SELECT * FROM "+tableName+" WHERE "+metaData+" not in (SELECT MIN("+metaData+") FROM "+tableName+" GROUP BY "+metaData+" HAVING COUNT("+metaData+")>1);";
Stringsql2="SELECT * FROM "+tableName+" WHERE "+metaData+" not in (SELECT MIN("+metaData+") FROM "+tableName+" GROUP BY "+metaData+" HAVING COUNT("+metaData+")>1);";
Stringdirtysql="SELECT * FROM "+tableName+" WHERE "+metaData+" in (SELECT MIN("+metaData+") FROM "+tableName+" GROUP BY "+metaData+" HAVING COUNT("+metaData+")>1);";