Hi Guys,
I have a mysql table, it has several columns, one of which is location.
The field is empty(blank) for some records, and in others it has the full URL of the document.
My table is called table_records.
What I need to do is display the number of records that have the url stated.
I tried the following:
1)SELECT COUNT DISTINCT location FROM table_records HAVING LENGTH(location) > 3;
2)SELECT COUNT DISTINCT(location) FROM table_records HAVING LENGTH(location) > 3;
3)SELECT location FROM table_records WHERE location <> "";
Nothing works
Can anybody help?
Thanks
Chuck