no
Code:
where brnd_logo not like "/medlogs/*" and brnd_logo <>""
is the where clause, and there are two conditions that must be met (applied to the rows being returned
WHERE tells the SQL engine that effectivley you want to apply a filter
brnd_logo NOT LIKE "/medlogs/*"
is the first condition and uses two settings
we are telling the SQL engine to search for the pattern/match "/medlogs/*", thats the LIKE "/medlogs/*" bit but we only want those rows which do not have "/medlogs/*" in thats the NOT bit. we can use the wil card symbols *, or % if we are using ANSI SQL compatability mode, to say doesn't matter what is exists beyond the specified text
eg
"*rbusiness*" would mean match any row with rbusiness anywhere in it
"rbusiness*" would mean match any row with rbusiness at the start
"*rbusiness" would mean match any row with rbusiness at the end of it
more recnet databases implement regular expressions, which I think can be used in access/JET, buyt trust me you don't want to dablle in REGEX just yet.
is the second term, where we are saying the vlaue of the column brnd_logo should not equal "" ie not an emtpy string
you glue together the various conditions using OR or AND as the result of the where clause, much like an if statement is a boolean value so we use boolean operators
so the whole where clause is
Code:
where brnd_logo not like "/medlogs/*" and brnd_logo <>""
as said elsehwere SQL is a complete language in its own right, dedicated to databases and manipulation of databases/data.
just to give you a flavour of SQL in SELECT statements have a read of
this. Although SQL is now an ISO and ANSII standard virtually no manufacturer has a totally complaint SQL implemenation. not all have every SQL function, most if not all have there own little wrinkles. so whats good for MySQL version 5.5 may not be good for other MySQL versison, let alone DB2, Access/JET. SO dont' get to hung up about every SQL term in that reference, but it should give you a flavour of how an SQL statement can be built up and what it can comprise. BTW Access uses * as a wildcard byt default unless you tell it to use SQL compatability mode when the wild card symbol becomes %.