Skyline operator

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

The Skyline operator is used in a query and performs a filtering of results from a database so that it keeps only those objects that are not worse than any other.

This operator is an extension to SQL proposed by Börzsönyi et al.[1] A classic example of application of the Skyline operator involves selecting a hotel for a holiday. The user wants the hotel to be both cheap and close to the beach. However, hotels that are close to the beach may also be expensive. In this case, the Skyline operator would only present those hotels that are not worse than any other hotel in both price and distance to the beach.

Proposed syntax

To give an example in SQL: Börzsönyi et al.[1] proposed the following syntax for the Skyline operator:

SELECT ... FROM ... WHERE ...
GROUP BY ... HAVING ...
SKYLINE OF [DISTINCT] d1 [MIN | MAX | DIFF],
                 ..., dm [MIN | MAX | DIFF]
ORDER BY ...

where d1, ... dm denote the dimensions of the Skyline and MIN, MAX and DIFF specify whether the value in that dimension should be minimised, maximised or simply be different.

Implementation

The Skyline operator can be implemented directly in SQL using current SQL constructs, however this has been shown to be very slow.[1] Other algorithms have been proposed that make use of divide and conquer, indices,[1] MapReduce[2] and general-purpose computing on graphics cards.[3]

References

  1. 1.0 1.1 1.2 1.3 Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.


<templatestyles src="Asbox/styles.css"></templatestyles>