Jump to content

Talk:SQL: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 90: Line 90:
So that part of the article should say:
So that part of the article should say:
query results are either [[set]]s or [[multisets]], where the same row may occur multiple times in [[multiset]]s.
query results are either [[set]]s or [[multisets]], where the same row may occur multiple times in [[multiset]]s.
if everybody agree.

Revision as of 10:25, 17 July 2021

Template:Vital article


This article was the subject of a Wiki Education Foundation-supported course assignment, between 6 September 2020 and 6 December 2020. Further details are available on the course page. Student editor(s): ASCXX (article contribs).

Hello fellow Wikipedians,

I have just modified 2 external links on SQL. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:

When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.

This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}} (last update: 5 June 2024).

  • If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
  • If you found an error with any archives or the URLs themselves, you can fix them with this tool.

Cheers.—InternetArchiveBot (Report bug) 16:47, 4 June 2017 (UTC)[reply]

DQL, DCL, DDL and DML

The link to data query language redirects to Query_language that is very general and very vague about SQL. The links for DCL, DDL and DML try to be a combination of a relevant language in general and SQL specifically, but perhaps that is relevant to each of those other pages. Sam Tomato (talk) 02:03, 21 March 2019 (UTC)[reply]

Turing completeness

The change in "&oldid=947475103" stated that " ... the most recent SQL standard actually *is* Turing complete, but many popular implementations are not ...". This raises the question of what we are speaking about: Reflects the article the SQL standard or the numerous implementations?--Kelti (talk) 08:34, 27 March 2020 (UTC)[reply]

Is SQL an open format?

In the second Infobox (file format), SQL is introduced as an Open (Yes value) format.

Although it is not a "free standard" and we should buy it, it costs about CHF 178.00 !!! Do we should change "Open format" to "No" by this criteria?

Thanks, Hooman Mallahzadeh (talk) 10:10, 31 May 2020 (UTC)[reply]

Seems fair to change this to "no" based on this criteria and from Open format, even SQL is a text-based format. See also List of open formats. +mt 21:51, 1 June 2020 (UTC)[reply]
@Mwtoews: Thanks for your reply, Here is the definition of open format:
OPEN FORMAT - We will say that a file format is open if the mode of presentation of its data is transparent and/or its specification is publicly available.
In here: SQL#ITTF publicly available standards and technical reports
and here: https://standards.iso.org/ittf/PubliclyAvailableStandards/index.html
Explicitly stated that it is "Publicly Available".
I changed it to "Yes (but not free)" value.
Thanks again, Hooman Mallahzadeh (talk) 05:23, 2 June 2020 (UTC)[reply]

HiveQL or HQL be considered as SQL ?

Curious to know whether HiveQL or the language similar to SQL but used in a Hadoop cluster environment and used via Hive interface can be considered as a type of SQL? --TheHiveBeeline (talk) 21:11, 2 September 2020 (UTC)[reply]

SQL does stand for Structured Query Language

I've added a source confirming that Donald D. Chamberlin intended SQL to stand for "Structured Query Language." Some people say it doesn't stand for anything; hopefully this will put that claim to rest. Qzekrom (she/her • talk) 16:56, 14 January 2021 (UTC)[reply]

Distributed SQL vs SQL

I do not think my description of Distributed SQL database architecture should be merged into this article despite the tag. If I were to create the term I would have called them Distributed Relational. While they do execute SQL in a distributed manner, the means it which they (Spanner, Cockroach, et al) achieve consistency and how they store data is more interesting than that they support SQL the language. In my opinion User:CommanderWaterford's addition of a merge tag seems to be a reaction to the name of the technology rather than the contents of the article. Reboot (talk) 19:58, 26 January 2021 (UTC)[reply]

Reboot, this doesn't appear to be gaining any traction. I've removed the tag from the Distributed SQL article, which I think was added in error before you finished writing the article. I see has since been reviewed as part of the NPP process, so I think we can draw a line under this now. Best GirthSummit (blether) 18:03, 29 January 2021 (UTC)[reply]

Lists or multisets aka bags

The article says:

tables and query results are lists of rows; the same row may occur multiple times, and the order of rows can be employed in queries (e.g. in the LIMIT clause)

A relational database with no extensions, contains relations in the mathematical sense, i.e. A relation is a subset of the cross product of sets, thus a set. For efficiency reasons, those relations are indexed by keys.For efficiency reasons, those relations are indexed by keys.or efficiency reasons, those relations are indexed by keys. I don't remember the LIMIT clause, but in principle an SQL query may produce a bag as a result. Depending on what is queried, repeated rows may be meaningful or not. Those tables with repeated rows, i.e. bags also called multisets, are not part of the database relations, they are inferred. A relational database should be normalized to model the world it represents. Having bags instead of sets in the database, could make normalization not possible, because the normal forms have smaller relations from which queries infer either relations which may be projected in bags. Those bags in actual queries are ordered for efficiency, not logical, reason. On the other hand, lists are successions, the order is meaningful. while and while . So that part of the article should say:

query results are either sets or multisets, where the same row may occur multiple times in multisets.

if everybody agree.