8' Safe Query Languages - PowerPoint PPT Presentation

About This Presentation
Title:

8' Safe Query Languages

Description:

computed on any valid database input. Safety is tied to program verification, ... It is undecidable in general (Halting problem) ... – PowerPoint PPT presentation

Number of Views:35
Avg rating:3.0/5.0
Slides: 5
Provided by: Syed90
Learn more at: http://cse.unl.edu
Category:

less

Transcript and Presenter's Notes

Title: 8' Safe Query Languages


1
8. Safe Query Languages
  • Safe program its semantics can be at
    least partially
  • computed on any
    valid database input.
  • Safety is tied to program verification,
  • because only safe programs are correct.
  • Safety is a concern in any programming
    language.
  • It is undecidable in general (Halting
    problem).
  • Is it possible to verify in certain cases
    that a
  • query is safe?

2
  • 8.1 Safety Levels
  • Closed form output database contains same type
    of
  • constraints as the input
    database.
  • Evaluation output database may contain more
    complex
  • constraints than the input
    database.
  • Recognition any tuple can be tested to be in
    the output
  • ?-Recognition for any tuple a it can be
    tested whether
  • the output contains a
    tuple b such that
  • a i b i lt ?
    for all i.
  • Approximation lower, upper bounds can be given
    for output

3
  • 8.2 Restriction
  • Restriction only allow certain combinations of
  • (constraints, queries) to
    guarantee safety.
  • Advantage easy to check
  • Disadvantage limits flexibility and
    expressiveness

4
  • 8.4 Safe Refinement and Projection Queries
  • Refinement queries
  • always safe because they only add
    constraints.
  • Projection queries
  • closed-form evaluable if the UOR contains
    only
  • Linear constraints
  • Addition constraints
  • Polynomial constraints
Write a Comment
User Comments (0)
About PowerShow.com