Hello, I am writing an sql code from a database using the ORDER BY command. It is sorting/listing "Business_Name" in that field. However, I have null or blank inputs in the "Business_Name" field. Is there a way to put the null or blank inputs at the bottom of the list instead of the top? $sql="SELECT * FROM listings ORDER BY Bus_State, Bus_City, Business_Name"; Regards, Matt
Can you not just avoid selecting NULL entries? SELECT * FROM listings WHERE Business_Name is not NULL ORDER BY Bus_State, Bus_City, Business_Name J.D.
And you can also order by ascending or descending SELECT * FROM listings WHERE Business_Name is not NULL ORDER BY Bus_State, Bus_City, Business_Name DESC SELECT * FROM listings WHERE Business_Name is not NULL ORDER BY Bus_State, Bus_City, Business_Name ASC Code (markup):