Ive created the following code , to select items from my sql database.
the field m.avatar is an image data type and is eithor NULL or contains data such as <system byte> etc
im wanting to select the data from the database even if m.avatar is null or has data. And it wont seem to let me.
The error it gives is, incorrect syntax near '.'. error.
SELECT ISNULL(m.avatar, 0 ) AS m.avatar, m.memberid, f.topicID, f.postID, f.postTITLE, f.postBY, f.postDATE
FROM forum_posts AS f LEFT JOIN
memberinfo AS m ON f.postBY = m.username
GROUP BY m.memberid, m.avatar, f.topicID, f.postID, f.postTITLE, f.postBY, f.postDATE
ORDER BY postID DESC
ANy help would be appreciated, thank you .
the field m.avatar is an image data type and is eithor NULL or contains data such as <system byte> etc
im wanting to select the data from the database even if m.avatar is null or has data. And it wont seem to let me.
The error it gives is, incorrect syntax near '.'. error.
SELECT ISNULL(m.avatar, 0 ) AS m.avatar, m.memberid, f.topicID, f.postID, f.postTITLE, f.postBY, f.postDATE
FROM forum_posts AS f LEFT JOIN
memberinfo AS m ON f.postBY = m.username
GROUP BY m.memberid, m.avatar, f.topicID, f.postID, f.postTITLE, f.postBY, f.postDATE
ORDER BY postID DESC
ANy help would be appreciated, thank you .