cse 344
play

CSE 344 SECTION 4 RELATIONAL ALGEBRA v Formalism for describing - PowerPoint PPT Presentation

CSE 344 SECTION 4 RELATIONAL ALGEBRA v Formalism for describing queries Why RA? v Basis of rela4onal databases v Will make you a SQL wizard! Notes on RA v Mul4ple


  1. CSE 344 SECTION 4 – RELATIONAL ALGEBRA

  2. v Formalism ¡for ¡describing ¡queries ¡ Why RA? v Basis ¡of ¡rela4onal ¡databases ¡ v Will ¡make ¡you ¡a ¡SQL ¡wizard! ¡

  3. Notes on RA v Mul4ple ¡possible ¡query ¡plans ¡ v Logical ¡vs. ¡Physical ¡query ¡plans ¡ ¡

  4. Example: RA-to-SQL Person(id, ¡name, ¡countryid) ¡ Country(id, ¡name, ¡con4nent) ¡ ¡ SELECT C.id ¡ ¡ FROM Person P, Country C ¡ ¡ WHERE P.countryid = C.id ¡ ¡ AND C.continent=‘Africa’ ¡ ¡ GROUP BY C.id ¡ ¡ HAVING COUNT(*) > 10000000 ¡ Can ¡we ¡make ¡a ¡more ¡efficient ¡plan? ¡

  5. Demo in Azure!

  6. RA Reference Sheet

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend