encyclopegia.org

FLWOR

FLWOR (pronounced 'flower') is an expression in the XQuery programming language that supports iteration and binding of variables to intermediate results.[src] FLWOR is an acronym for FOR, LET, WHERE, ORDER BY, RETURN.[src] FLWOR is loosely analogous to SQL's SELECT-FROM-WHERE and can be used to provide join-like functionality to XML documents.[src] *for creates a sequence of nodes *let binds a sequence to a variable *where filters the nodes on a boolean expression *order by sorts the nodes *return gets evaluated once for every node[src]

FLWOR (pronounced 'flower') is an expression in the XQuery programming language that supports iteration and binding of variables to intermediate results.[src] FLWOR is an acronym for FOR, LET, WHERE, ORDER BY, RETURN.[src] FLWOR is loosely analogous to SQL's SELECT-FROM-WHERE and can be used to provide join-like functionality to XML documents.[src] for creates a sequence of nodes let binds a sequence to a variable where filters the nodes on a boolean expression order by sorts the nodes return gets evaluated once for every node ==Example== for $d in doc("depts.xml")//deptno let $e := doc("emps.xml")//employee[deptno = $d] where count($e) >= 10 order by avg($e/salary) descending return { $d, {count($e)} , {avg($e/salary)} } First column of the XQuery request shows the for, let, where, order by and return keywords of the FLWOR paradigm.[src] In plain English, this could be read as "Get all departments that have more than ten employees, order these departments by decreasing average salary, and return a report of department numbers, head counts and average salary in each big department".[src] The result could look like: 17 25 12500 24 18 11327 3 32 10725 ==Example using Microsoft SQL Server== DECLARE @xml XML SET @xml = ' 42 27 a b ' SELECT x.y.query('for $s in self::node() return $s//item_1/text()') as i, x.y.query('for $s in self::node() return $s//item_2/text()') as j FROM @xml.nodes('/root_element') AS x(y); ==References==[src]

10 sentences · 10 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"FLWOR." encyclopegia.org, 2025, https://encyclopegia.org/wiki/flwor. Accessed 29 November 2026.

Chicago

"FLWOR." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/flwor.

APA

encyclopegia.org. (2025). FLWOR. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/flwor

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1318807495 · 0.5 · snapshot enwiki-001318807495

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.