Jump to content
php.lv forumi

Recommended Posts

Posted

nezinu vai derēs:

 

SELECT anketetajs, COUNT(anketetajs) cnt FROM (
  SELECT DISTINCT anketetajs FROM whatever1
  UNION
  SELECT DISTINCT anketetajs whatever2)
GROUP BY anketetajs HAVING cnt=2

×
×
  • Create New...