tns123j
12-12-2004, 05:22 PM
i have a DB with table named Products. pCategory lists several names of teams of varing leagues (NBA, NFL, MLB, etc...) I want a table to display only the NBA teams. I have a field named pGroup which has NBA, MLB, etc... for each team. How can I display all fields where pGroup="NBA." I thought the code would work below, but it didn't. thanks.
<% sql_getProducts = "SELECT DISTINCT pCategory WHERE pGroup="NBA" FROM products"
<% sql_getProducts = "SELECT DISTINCT pCategory WHERE pGroup="NBA" FROM products"