|
|
Archives of the TeradataForum
Message Posted: Wed, 12 Sep 2012 @ 10:41:48 GMT
Subj: | | Re: 3706: Syntax error |
|
From: | | Gorner, Tomas |
Hi,
If System_Dt is date, you probably need something like:
SELECT
a.System_Dt Sys_Dt,
a.Ownership_Desc Ownership_Desc,
a.Actl_Utilization_Nr Actl,
a.Vendor_Nr Vendor_Nr,
FROM
Vendor a
WHERE
a.System_Dt IN ('2012-05-10', '2012-05-09' ) ;
Just a small hint - when using alias, use it everywhere in the query, also in the WHERE condition - it's a good practice and it can save you a
lot of trouble.
Regards,
Tomas
| |