TCS recently asked this question
I have records like below
Emp id Empname Salary DateTimestamp
1 AA 6000 20120609:11:30
1 AA 7000 20120609:12:30
1 AA 8000 20120609:01:30
I want to exceute records max timestamp(20120609:01:30)
Answer Posted / rkraju
HI,
U WANT TO DISPLAY MAX TIMESTAMP
SO THE QUERY IS
SELECT * FROM TABLENAME WHERE DATETIMESTAMP IN(SELECT
MAX(DATETIMESTAMP) FROM TABLENAME);
| Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
Different phases of multiload?
Is multi insert ansi standard?
What are the various etl tools in the market?
Highlight a few of the important components of Teradata?
How you will check the version of teradata?
What are the things to be considered while creating secondary index?
What is oltp?
Name the five phases that come under MultiLoad Utility.
Syntax for case when statement?
What is upsert statement in teradata?
List out some of the primary characteristics of teradata.
What is the maximum number of dml can be coded in a multiload script?
What are default access rights in teradata?
What are the different methods ot loading a dimension table? A fact table etc?
Steps to create a data model?