PHP MYSQL Combine two queries on one line -


i have database books onto course assigned '70' in status column, cancels in given '10'.

i want report on booked on course eliminating have cancelled.

the problem retains number, query below shows everyone. remove has 10 regardless of fact they've got 70 also.

where statuscode <>'10' , statuscode <>'20' , statuscode <>'30' , statuscode <>'40' , statuscode <>'50' , statuscode <>'60' , statuscode ='70' , statuscode <>'80' , statuscode <>'90' , statuscode <>'100' 

where statuscode ='70' , mod(cast(statuscode unsigned),10)=0 

update:

the subselect returns ids of users cancelled (status code=10) remove ids.

delete the_table t id in (select id the_table t statuscode='10') 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -