If you divide the reported hospital visits for medication B by those for medication A, you'll come up with the odds ratio. In this example, the odds ratio is 0.5. The ratio means that you have roughly a 50% greater chance of going to the hospital when taking medication A over medication B. This ratio is known as an unadjusted or crude ratio because it doesn't take anything into account except the reported number of hospital visits.
The numeric value of an odds ratio gives you some idea of what will happen when a patient is exposed to something -- in this case, asthma medication. An odds ratio of 1 means that exposure does not affect the outcome: In other words, the medication doesn't work. An odds ratio greater than 1 indicates higher odds of the outcome while a ratio less than 1 indicates lower odds of the outcome.
The trouble with a crude odds ratio is that it is entirely one-dimensional. It doesn't reflect the influence of confounding factors such as age, other medical conditions or even something as simple as access to a clinic versus an emergency department. Your opinion of the medications might change if you learned that all of the patients on medication A were also receiving treatment for lung cancer and all of the patients on medication B were in otherwise good health, or if you found out that patients on medication A lived five miles away from the hospital and 60 miles away from the nearest clinic.
Very few things in life have a clear cause and effect relationship. In statistics, the "other" factors which affect the relationship between two things are known as confounding variables. If just one variable affects the relationship, mathematicians will do a statistical adjustment to give a more accurate ratio. When all variables have been taken into account, the ratio is said to be fully adjusted. Because adjusting an odds ratio is very complex, researchers try to control as many variables as possible to ensure accurate results. In pharmaceutical trials, for instance, researchers will look for participants of the same age and gender with similar medical histories.