|
|
Archives of the TeradataForum
Message Posted: Thu, 18 Jul 2002 @ 12:49:15 GMT
Subj: | | Re: The Optimizer and Multi Inlists |
|
From: | | Geoffrey Rommel |
| The point...has anybody else experienced similiar problems with queries which fully quailify a table's PI ...? | |
No.
But I think your query alerts us to a deficiency in SQL. You can specify a single literal value or a list of values (corresponding to a
column), but you cannot specify a list of values arranged in rows and columns. Since SQL is specifically meant for dealing with tables, this
is a huge oversight. Wouldn't it be nice if you could write your query thus?
Select *
From TableA
Where (ColumnA, ColumnB, Geo_Area_ID,
Csvy_Rspn_ID, Pop_Sub_Grp_ID, Csvy_Prod_ID)
in
((182, 1, 1049, 101954, 100024, 100310),
(182, 1, 1107, 101954, 100024, 100310),
(182, 6, 1049, 101954, 100024, 100310),
(182, 6, 1107, 101954, 100024, 100310)) ;
--wgr
| |