The fundamental querying structure of SQLf is the multi-relational block. The conception of this structure is based on the three basic operations of the relational algebra: projection, cartesian product and selection, and the application of fuzzy sets’ concepts. The result of a SQLf query is a fuzzy set of rows that is a fuzzy relation instead of a regular relation. A basic block in SQLf consists of a SELECT clause, a FROM clause and an optional WHERE clause. The semantic of this query structure is:
The following is an example of a SELECT query that returns a list of hotels that are cheap. The query retrieves all rows from the Hotels table that satisfice the fuzzy predicate cheap defined by the fuzzy set μ=(∞, ∞, 25, 30). The result is sorted in descending order by the membership degree of the query.
Bosc, P.; Pivert, O. (1995). "SQLf: a relational database language for fuzzy querying". IEEE Transactions on Fuzzy Systems. 3 (1): 1–17. doi:10.1109/91.366566. ISSN 1063-6706. /wiki/IEEE_Transactions_on_Fuzzy_Systems ↩
Bosc, P.; Pivert, O. (2000). Knowledge Management in Fuzzy Databases. Heidelberg: Physica-Verlag HD. pp. 171–190. ISBN 978-3-7908-1865-9. 978-3-7908-1865-9 ↩
Bosc, P.; Pivert, O. (2000). "SQLf Query Functionality on Top of a Regular Relational Database Management System". Knowledge Management in Fuzzy Databases. Studies in Fuzziness and Soft Computing. Vol. 39. pp. 171–190. doi:10.1007/978-3-7908-1865-9_11. ISBN 978-3-7908-2467-4. 978-3-7908-2467-4 ↩
Bosc, Patrick; Pivert, Olivier (1995). "On the Efficiency of the Alpha-Cut Distribution Method to Evaluate Simple Fuzzy Relational Queries". Fuzzy Logic and Soft Computing. Advances in Fuzzy Systems — Applications and Theory. Vol. 4. pp. 251–260. doi:10.1142/9789812830753_0029. ISBN 978-981-02-2345-8. 978-981-02-2345-8 ↩