﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Teradata  / Teradata Database  / SET with UPI / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Sat, 21 Nov 2009 19:02:53 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SET with UPI</title><link>http://www.teradata.com/teradataforum/Topic16006-9-1.aspx</link><description>1.- Duplicate row check works different with INSERT...SELECT (remove duplicates silently) and INSERT INTO...VALUES (raise errors)2.- If there is a UNIQUE restriction on a SET table (UPI, USI...) Teradata uses this restriction (less costly) instead of the 'SET' duplicate row check.More information here (in spanish):http://carlosal.wordpress.com/2009/02/16/tablas-set-y-multiset-en-teradata/http://carlosal.wordpress.com/2009/07/06/tablas-set-y-multiset-en-teradata-ii/(Google translate is your friend...)HTH.Cheers.Carlos.</description><pubDate>Mon, 06 Jul 2009 05:04:31 GMT</pubDate><dc:creator>CarlosAL</dc:creator></item><item><title>RE: SET with UPI</title><link>http://www.teradata.com/teradataforum/Topic16006-9-1.aspx</link><description>HI,Can anybody clear this please???</description><pubDate>Sat, 04 Jul 2009 23:31:06 GMT</pubDate><dc:creator>prakhar</dc:creator></item><item><title>RE: SET with UPI</title><link>http://www.teradata.com/teradataforum/Topic16006-9-1.aspx</link><description>Hi Carlos,I am bit confused as which one of you is saying correct ,also i was unable to understand anything as all in spanishCould you please write something from that extract in english explaining how really teradata checks SET command i.e mechanism involved in it as it is important for me to present all aspects in front of team to remove those 100 tables from SET to MULTISETRegards,</description><pubDate>Sat, 04 Jul 2009 05:15:37 GMT</pubDate><dc:creator>prakhar</dc:creator></item><item><title>RE: SET with UPI</title><link>http://www.teradata.com/teradataforum/Topic16006-9-1.aspx</link><description>This may be not true for INSERT...SELECT's. If there is an UPI on a SET TABLE, Teradata silently removes duplicates BEFORE the INSERT and there will be no 'Duplicate unique prime key error' (thus the 'duplicate checking' occurs no matter if there is an UPI or not).It is explained here (in spanish) http://carlosal.wordpress.com/2009/02/16/tablas-set-y-multiset-en-teradata/HTHCheers.Carlos.</description><pubDate>Fri, 03 Jul 2009 08:57:57 GMT</pubDate><dc:creator>CarlosAL</dc:creator></item><item><title>RE: SET with UPI</title><link>http://www.teradata.com/teradataforum/Topic16006-9-1.aspx</link><description>If a table has any unique index (primary or secondary) there is never any duplicate row checking.   Checking for duplicate rows would be redundant in that case, so the Teradata software recognizes that it is not necessary.</description><pubDate>Thu, 02 Jul 2009 12:02:11 GMT</pubDate><dc:creator>Jim Chapman</dc:creator></item><item><title>SET with UPI</title><link>http://www.teradata.com/teradataforum/Topic16006-9-1.aspx</link><description>I am stuck with a strange situation ....I am having about 100 tables in my system which areSET+UPI defined upon thatSET----system level check to ensure no duplicate rows are thereUPI----table level check to ensure a particular column has no repeated values thus identifying a row uniquelyMy doubt is that will SET+UPI combination will do duplicate row checking or only single time checking will be done?Also what is the process that really goesi mean to say 1st SET is checked then UPI check is done or it's vice versa...Please clarify as i need to change all 100 tables if SET+UPi is a problem...Also please clarify how really SET checking and UPI checking is done by Teradata while inserting dataRegards,</description><pubDate>Thu, 02 Jul 2009 11:11:00 GMT</pubDate><dc:creator>prakhar</dc:creator></item></channel></rss>