I'm trying to select 1000 customers that have placed exactly 1 order. Everything is in the Orders table.
select * from
Orderhaving count(CustomerID) = 1 limit 1000
So basically all records that have only one occurence of the CustomerID in the entire table. This returns an empty result set and there are 100,000s in the table.