Hello,
Here is an example :
Table 1
ID - Name
1 - 'Mr Blogs'
2 - 'Mr Blobby'
3 - 'Mr Smith'
4 - 'Mr Morris'
5 - 'Mr Jackson'
Table 2
ID - Cust ID
1 - 1
2 - 1
3 - 5
4 - 3
5 - 1
How would I, using SQL, be able to count How many customers (Table one) has atleast 1 or more occurences in Table 2?
So in this example, the result would be 3.
I know it is possible using PHP's If's and whiles, but I dont think that is the best option.
Thanks again,
James Morris