A description is given of a variety of users and circumstances for which queries are made, and the problems and limitations of general-purpose systems are discussed. The authors examine different types of databases in both function and structure. They then present the set of query capabilities developed for use with The Medical Record (TMR). Database structures and query languages are explored for each method, along with advantages and disadvantages of each approach. General problems in query expressions, query vocabulary, and query definitions are discussed.