|
|
Archives of the TeradataForum
Message Posted: Thu, 14 Apr 2011 @ 11:41:51 GMT
Subj: | | Column match in WHERE clause |
|
From: | | JAMES PARK |
Dear users,
Thank you for your continuous support.
I'd like to match c.starttime column and a.LogDate + a.LogonTime columns. How should I modify below SQL?
SEL
.
.
FROM dbc.AccessLog a,
dbc.LogonOff b, dbc.QryLog c
WHERE
.
.
and cast(c.starttime as date) = a.LogDate
and cast(c.starttime as time) = a.LogonTime
.
.
ORDER BY a.LogonDate DESC, b.UserName;
Thank you in advance.
| |