1 / 5

Relational Databases

Relational Databases. Querying Relational Databases. Querying Relational Databases. Steps in creating and using a (relational) database 1 . Design schema; create using DDL 2 . “Bulk load” initial data 3 . Repeat: execute queries and modifications.

Download Presentation

Relational Databases

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Relational Databases Querying Relational Databases

  2. Querying Relational Databases Steps in creating and using a (relational) database 1. Design schema; create using DDL 2. “Bulk load” initial data 3. Repeat: execute queries and modifications

  3. Querying Relational Databases Ad-hoc queries in high-level language • All students with GPA > 3.7 applying to Stanford and MIT only • All engineering departments in CA with < 500 applicants • College with highest average accept rate over last 5 years • Some easy to pose; some a bit harder • Some easy for DBMS to execute efficiently; some harder • “Query language” also used to modify data

  4. Querying Relational Databases Queries return relations (“compositional”, “closed”)

  5. Querying Relational Databases Query Languages • Relational Algebra • SQL IDs of students with GPA > 3.7 applying to Stanford Select Student.ID From Student, Apply Where Student.ID=Apply.ID And GPA>3.7 and college=‘Stanford’

More Related