{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

24-DeducDatabases

24-DeducDatabases - Discussion#24 Deductive Databases...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Discussion #24 Deductive Databases 1/21 Discussion #24 Deductive Databases
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Discussion #24 Deductive Databases 2/21 Topics Deductive Databases Turning Datalog into Relational Algebra Recursive Rules & the Least Fixed Point Algorithm
Image of page 2
Discussion #24 Deductive Databases 3/21 Deductive Databases Deductive database management systems answer queries based on methods related to proofs from rules and facts. Relational algebra operations can be used to more efficiently process deductive database queries.
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Discussion #24 Deductive Databases 4/21 Correspondence Between Relational Databases & Deductive Databases Schemes: f(A,B) b(C,D) Facts: f(1,1). f(1,2). f(2,3). Rules: b(x,y) :- f(y,x). b(x,y) :- f(x,z),f(z,y). Queries: b(1,x)? f(A, B) b(C, D) 1 1 1 2 2 3 b b ρ x C ρ y D π xy ( ρ A y ρ B x f ) b b ρ x C ρ y D π xy ( ρ A x ρ B z f | × | ρ A z ρ B y f) π x ρ D x σ C=1 b
Image of page 4
Discussion #24 Deductive Databases 5/21 Correspondence Between Relational Databases & Deductive Databases Schemes: f(A,B) b(C,D) Facts: f(1,1). f(1,2). f(2,3). Rules: b(x,y) :- f(y,x). b(x,y) :- f(x,z),f(z,y). Queries: b(1,x)? f(A, B) b(C, D) 1 1 1 1 1 2 2 1 2 3 3 2 b b ρ x C ρ y D π xy ( ρ A y ρ B x f ) b b ρ x C ρ y D π xy ( ρ A x ρ B z f | × | ρ A z ρ B y f) π x ρ D x σ C=1 b
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Discussion #24 Deductive Databases 6/21 Correspondence Between Relational Databases & Deductive Databases Schemes: f(A,B) b(C,D) Facts: f(1,1). f(1,2). f(2,3). Rules: b(x,y) :- f(y,x). b(x,y) :- f(x,z),f(z,y). Queries: b(1,x)?
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern