Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 273189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:25:11+00:00 2026-05-12T00:25:11+00:00

Please explain what is meant by tuples in sql?Thanks..

  • 0

Please explain what is meant by tuples in sql?Thanks..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T00:25:11+00:00Added an answer on May 12, 2026 at 12:25 am

    Most of the answers here are on the right track. However, a row is not a tuple. Tuples* are unordered sets of known values with names. Thus, the following tuples are the same thing (I’m using an imaginary tuple syntax since a relational tuple is largely a theoretical construct):

    (x=1, y=2, z=3)
    (z=3, y=2, x=1)
    (y=2, z=3, x=1)
    

    …assuming of course that x, y, and z are all integers. Also note that there is no such thing as a “duplicate” tuple. Thus, not only are the above equal, they’re the same thing. Lastly, tuples can only contain known values (thus, no nulls).

    A row** is an ordered set of known or unknown values with names (although they may be omitted). Therefore, the following comparisons return false in SQL:

    (1, 2, 3) = (3, 2, 1)
    (3, 1, 2) = (2, 1, 3)
    

    Note that there are ways to “fake it” though. For example, consider this INSERT statement:

    INSERT INTO point VALUES (1, 2, 3)
    

    Assuming that x is first, y is second, and z is third, this query may be rewritten like this:

    INSERT INTO point (x, y, z) VALUES (1, 2, 3)
    

    Or this:

    INSERT INTO point (y, z, x) VALUES (2, 3, 1)
    

    …but all we’re really doing is changing the ordering rather than removing it.

    And also note that there may be unknown values as well. Thus, you may have rows with unknown values:

    (1, 2, NULL) = (1, 2, NULL)
    

    …but note that this comparison will always yield UNKNOWN. After all, how can you know whether two unknown values are equal?

    And lastly, rows may be duplicated. In other words, (1, 2) and (1, 2) may compare to be equal, but that doesn’t necessarily mean that they’re the same thing.

    If this is a subject that interests you, I’d highly recommend reading SQL and Relational Theory: How to Write Accurate SQL Code by CJ Date.

    * Note that I’m talking about tuples as they exist in the relational model, which is a bit different from mathematics in general.

    **And just in case you’re wondering, just about everything in SQL is a row or table. Therefore, (1, 2) is a row, while VALUES (1, 2) is a table (with one row).

    UPDATE: I’ve expanded a little bit on this answer in a blog post here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 141k
  • Answers 141k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer No, the number of type parameters is fixed at compile… May 12, 2026 at 8:09 am
  • Editorial Team
    Editorial Team added an answer GWT does a bunch of DOM house keeping and you… May 12, 2026 at 8:09 am
  • Editorial Team
    Editorial Team added an answer You have to multiply the value with Windows's DPI resolution… May 12, 2026 at 8:09 am

Related Questions

What is meant by object serialization? Can you please explain it with some examples?
PLT Scheme 's documentation says: The rationale for providing print is that display and
I was scanning a third party source code using Findbugs (just to be cautious
I am pretty new to php, but I am learning! I have a simple

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.