I just performed this query:
SELECT CONCAT( fname, '|', lname, '|', email, '|', prime_city, '|', prime_state, '|', prime_zip )
FROM contacts
WHERE id =1
... and I get nothing from my tables, even though there is a record with an ID of 1.
On a hunch after looking at the data - I did this:
SELECT CONCAT( fname, '|', lname, '|', email)
FROM contacts
WHERE id =1
... excluding the fields that had a NULL value. It worked perfectly. So I did a bunch of other tests, and sure enough, of I preform a query with the CONCAT in either a field-select position or the WHERE clause and any of the fields are null, it does not recognize the row and I get back bad results.
This seems REALLY weird to me... or is this normal behavior in SQL?