the 2 terms are often confused
yep. Exactly. Comes through lazy use of language, as much as anything, truncating the sentence.
CM2's example is a good one....
short version is,
racking
once FG is achieved is racking to secondary
vessel (or container, or any other variation of the word for a holding tank); this is done to clear the beer. Conditioning and aging occurs, due to the residual yeast in suspension. edit: usually done at cold temperatures....storage times can be up to months, particularly in the case of lagers.
racking
before sg is achieved, to allow for (usually) slower fermentation at a gentler pace, is
secondary fermentation. Although, as cm2 has correctly stated, secondary fermentation
can occur in the primary vessel (although this is less common). In this case, temperature would be dropped, to slow the fermentation. Traditionally (at least as far as Englih methodology), it would be dropped to around 8C, which would cause much of (but not all of) the yeast to drop out; then temperature would be raised again, into the fermentation range, to allow the (smaller volume of yeast) to continue fermentation at a slower rate untill FG is achieved. Regardless of whether it is a single vessel, or is racked, secondary fermentation refers to actual live active
fermentation. edit: this can then either be racked into the conditioning vessel, or crash chilled in it's current vessel, for clearing and/or further conditioning/aging, as per the above.
The two terms are, however, commonly (and erroniously) interchanged....