5

what is the difference between minus and except in teradata?

Vivart
  • 14,900
  • 6
  • 36
  • 74

2 Answers2

5

They are equivalent, the difference being that except is ANSI compliant.

Joe Stefanelli
  • 132,803
  • 19
  • 237
  • 235
  • Hi I am new in Teradata so couldn't understand what does ANSI compliant means...could you please brief me on this? – Vivart Jan 05 '11 at 18:33
  • 1
    ANSI compliant means the syntax conforms to the ANSI standard for SQL. See [here](http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt). – Joe Stefanelli Jan 05 '11 at 18:41
  • It is advisable to leverage ANSI compliant SQL whenever possible. This avoids the potential for problem when Teradata specific features are deprecated as ANSI compliant replacements are introduced. (e.g. Window Aggregation vs OLAP functions such as MSUM()) – Rob Paller Feb 03 '11 at 03:32
1

Here is a good link for you:

SQL MINUS or EXCEPT Operator

Naveed
  • 41,517
  • 32
  • 98
  • 131