halo there, i have some sql query question need to ask.i know maybe this is quite easy for others.but i really cant figure out how to query this thing i wan since i m quite poor in database sql .
hereby i have attached an image.
first, user can insert a set of string keywords to search --> apple, orange, pear. there are 3 tables involve. by default, if user didnt check the radio button, the system will search the result from table A which consist of( photoid, photoname and photokeywords). it will match the keywords and then display out the photo name as result.
my problem is..when the user CLICK on the radio button, the system still will do the searching same as below + do another matching to search the LKeywords in the table B which consist of( lightboxid, lightboxname, and LKeywords).
if it is match, then will go to table C(lgihtboxphoptoid,lightboxid, photoid) to see tat lightbox id tat get jz now got any photos id related or not . if ther eis the photoid in the table C, then get back the photo name from the table A.
i am using ASP with MS SQL.
i realy headache to get out this result. can someone plz help me? i need help. urgent