WebFusion
11-07-2004, 11:32 PM
The following code pulls all records from fld6
"SELECT fld6 FROM main ORDER BY fld6"
But I want to query it so that it only selects certain data from fld6 based on fld2, so if fld2 contains let's say the word Apples then the query is:
SELECT fld6 FROM main WHERE fld2 = Apples ORDER BY fld6
Now the exact code above does not work but I am trying to find what syntax I am missing.
"SELECT fld6 FROM main ORDER BY fld6"
But I want to query it so that it only selects certain data from fld6 based on fld2, so if fld2 contains let's say the word Apples then the query is:
SELECT fld6 FROM main WHERE fld2 = Apples ORDER BY fld6
Now the exact code above does not work but I am trying to find what syntax I am missing.