SQL language can achieve the rapid, accurate, efficient query in hospital of all the required information in the work, can supply a better service for the hospital management and decision. The methods is by using SQL language query hospital electronic medical records as the core of digital information. Compared to the artificial statistics, greatly improve the efficiency of statistical work. The conclusion is by using the SQL statement to exploring the relationship between the huge data in the database, to maximize the effectiveness of the data center, it is the necessary skill of in-formation manager.