I would like to know which of the following phrases are grammatical.
- administrative-only data
- administrative only data
- only-administrative data
- only administrative data
Number 1 is correct. "Administrative only" in this context is an adjective modifying "data." When you have word groups that act as adjectives, you often hyphenate them: