Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 3 – Queries and Reports
Introduction to Databases Querying data Creating reports
Queries Questions asked of one or more tables. Queries of queries. From simple: filtering on tables. To complex: calculations, operators. And the super-complex: internal relationships, specified joins. Powerful aspect of the database. Possible because of the relationships and normalised data.
Queries Queries are used to: Bring data from multiple tables together in one place. Perform calculations and summarize results. Patient record of operations received. Consultant record of operations performed. Number of specific operations in a particular hospital: yearly trends. Contact details for all patients having a particular operation
Reports Presentable data output. Tailored: layout and design. Tailored: groups and sorting. Tailored: conditional formatting to highlight aspects of the data.