Skyline operator
The skyline operator is the subject of an optimization problem and computes the Pareto optimum on tuples with multiple dimensions.[src] This operator is an extension to SQL proposed by Börzsönyi et al.[src] to filter results from a database to keep only those objects that are not dominated by any other point on all dimensions.[src] The name skyline comes from the view on Manhattan from the Hudson River, where those buildings can be seen that are not hidden by any other.[src] A building is visible if it is not dominated by a building that is taller or closer to the river (two dimensions, distance to the river minimized, height maximized).[src] Another application of the skyline operator involves selecting a hotel for a holiday.[src] The user wants the hotel to be both cheap and close to the beach.[src] However, hotels that are close to the beach may also be expensive.[src] 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.[src]
The skyline operator is the subject of an optimization problem and computes the Pareto optimum on tuples with multiple dimensions.[src] This operator is an extension to SQL proposed by Börzsönyi et al.[src] to filter results from a database to keep only those objects that are not dominated by any other point on all dimensions.[src] The name skyline comes from the view on Manhattan from the Hudson River, where those buildings can be seen that are not hidden by any other.[src] A building is visible if it is not dominated by a building that is taller or closer to the river (two dimensions, distance to the river minimized, height maximized).[src] Another application of the skyline operator involves selecting a hotel for a holiday.[src] The user wants the hotel to be both cheap and close to the beach.[src] However, hotels that are close to the beach may also be expensive.[src] 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.[src] p \succ q \Leftrightarrow \forall i \in [n].[src] p[i] \succeq q[i] \wedge \exists j \in [n].[src] p[j] \succ q[j].[src] Dominance ( p \succ q ) can be defined as any strict partial ordering, for example greater (with \succ := > and \succeq := \geq ) or less (with \succ := and \succeq := \leq ).[src] Assuming two dimensions and defining dominance in both dimensions as greater, we can compute the skyline in SQL-92 as follows: WITH tuples(id, i, j) as (values(1,1,1), (1,2,1), (1,1,2)) SELECT * FROM tuples t1 WHERE NOT EXISTS ( -- which is not dominated by SELECT * FROM tuples t2 -- a tuple that is WHERE t2.i >= t1.i and t2.j >= t1.j -- at least as good in all dimensions AND (t2.i > t1.i or t2.j > t1.j) -- and better in at least one dimension ); SELECT ...[src] FROM ...[src] WHERE ...[src] GROUP BY ...[src] HAVING ...[src] SKYLINE OF [DISTINCT] d1 [MIN | MAX | DIFF], ..., dm [MIN | MAX | DIFF] ORDER BY ...[src] where d 1 , ...[src] d m 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.[src] Without an SQL extension, the SQL query requires an antijoin with not exists : SELECT ...[src] FROM (...) q WHERE NOT EXISTS ( SELECT * FROM (...) p WHERE p.d1 [ =] q.d1 AND ...[src] AND p.dm [ =] q.dm AND (p.d1 [ ] q.d1 OR ...[src] OR p.dm [ ] q.dm )) ==References==[src]
34 sentences · 34 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Skyline operator." encyclopegia.org, 2026, https://encyclopegia.org/wiki/skyline-operator. Accessed 30 November 2026.
Chicago
"Skyline operator." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/skyline-operator.
APA
encyclopegia.org. (2026). Skyline operator. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/skyline-operator
Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON