not equals in sql is <>, that may help On 9/28/05, Daniel Kessler <[EMAIL PROTECTED]> wrote: > I can't seem to see what is wrong with this query. I added the WHERE > line and it comes up with no records returned. Without the WHERE, it > comes up with two records, but one of them has publication_type as an > empty field. I know there are records that aren't empty. Here's the > query: > > <CFQUERY NAME="the_type" DATASOURCE="dpch"> > select publication_type > from publications > where publication_type !='' > group by publication_type > </CFQuery> > > Here's a dump of the db: > http://hhp.umd.edu/dbf/publications/db_display.cfm > > > thanks! > > -- > Daniel Kessler > > Department of Public and Community Health > University of Maryland > Suite 2387 Valley Drive > College Park, MD 20742-2611 > 301-405-2545 Phone > www.phi.umd.edu > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219492 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54