Please explain what is meant by tuples in sql?Thanks..
Whatever its use in mathematics, a tuple in RDBMS is commonly considered to be a row in a table or result set. In an RDBMS a tuple is unordered. A tuple in an MDDBMS is the instance of data in a cell with its associated dimension instances (members).
What is the tuple in a column family data store?
It's a shortened "N-tuple" (like in quadruple, quintuple etc.)
It's a row of a rowset taken as a whole.
If you issue:
SELECT col1, col2
FROM mytable
, whole result will be a ROWSET, and each pair of col1, col2 will be a tuple.
Some databases can work with a tuple as a whole.
Like, you can do this:
SELECT col1, col2
FROM mytable
WHERE (col1, col2) =
(
SELECT col3, col4
FROM othertable
)
, which checks that a whole tuple from one rowset matches a whole tuple from another rowset.
Tuples are known values which is used to relate the table in relational DB.
Tuple is used to refer to a row in a relational database model. But tuple has little bit difference with row.