DRUG OFFENSES: There is one primary distinction between drug offenses in California; "personal use" and "sales".
Personal use: These cases involve possession of small amounts and/or being under the influence. If there is no viable defense, these cases can usually be resolved under the "Deferreed Entry of Judgement" statutes or a "Prop 36" program, both of which require attendance in drug treatment/education classes.
Sales:
Cases involving possession, manufacture or cultivation for sale are considerably more complicated and have far more serious consequences involving county jail or prison sentences. However, these charges can often be challenged based upon a lack of quanitity or a lack of equipment or conditions indicating sales.