BCA / B.Tech 10 min read

Object and Set Operations

Object and Set Operations in RDBMS:

Object and Set Operations play important roles in databases and programming, providing different ways to organize and process data.

Object Operations (from Object-Oriented Programming):
These operations relate to objects, which are instances of classes that bundle data and methods.
  • Instantiation: The process of creating an object from a class.
  • Method Invocation: Calling a method (function) on an object to perform an action.
  • Attribute Access: Reading or setting the properties (attributes) of an object.

Set Operations (in SQL):
These operations are used to combine the results of two or more SELECT statements.
  • UNION: Combines the result sets of two or more SELECT statements and returns distinct rows.
  • INTERSECT: Returns only the rows that appear in both result sets.
  • EXCEPT (or MINUS): Returns the rows from the first query that are not present in the second query.