Hi, i've a problem with a mysql query but i'm not sure if it mysql can do it, or i can only handle it with php.
i've a table that looks like this
id | s1 | s2 | s3 | s4 | s5 |
7 | NULL| 1 | NULL| NULL | 1 |
i need to do a search, that only returns fields s2 and s5, because i do not need fields that have NULL values in them. should this be done in sql query, or i should rely on php to parse e results for me? (i've got many s* fields, so this may take a while)
a short ques: if i want to search two tables, can i do this? select * from tbl1,tbl2 where tbl1field=1,tbl2field=2 ?
would appreciate any help! thank you!