| Subject: | Re: Ignoring Rows with Empty Fields? |
|---|---|
| From: | "Kronin555" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Mon, 28 Jul 2008 16:57:14 +0000 (UTC) |
| Newsgroups: | macromedia.coldfusion.database_access |
Why not just do: <cfquery name="getsimilar" datasource="#datasource#" maxrows="5"> SELECT catshortname, soshortname, retailer_name FROM merchants WHERE soshortname is not null and soshortname != '' AND catshortname='#getmerchant.catshortname#' ORDER BY retailer_name ASC </cfquery> The reason there's 2 checks is I'm not sure if you're storing empty values as nulls or empty strings. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Ignoring Rows with Empty Fields?, silstorm |
|---|---|
| Next by Date: | Re: Ignoring Rows with Empty Fields?, silstorm |
| Previous by Thread: | Re: Ignoring Rows with Empty Fields?, silstorm |
| Next by Thread: | Re: Ignoring Rows with Empty Fields?, Dan Bracuk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |