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 / tdguy

If the columntype is timestamp, just max() function would
give you the result.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

My table got locked during mload due to a failed job. What do I do to perform other operations on it?

684


Explain the teradata primary index mechanics in detail with a diagram.

572


Name the five phases that come under MultiLoad Utility.

591


What are the uses of client software involved in teradata?

540


Explain the term 'tables' related to relational database management system?

601






What are default access rights in teradata? What explicit right can be given to a user?

656


What is meant by a Least Cost Plan?

629


Why do you get spool space errors? How do trouble-shoot them?

598


How do you verify a complicated sql?

635


Mention the procedure via which, we can run Teradata jobs in a UNIX environment.

574


Explain the parallel data extension in teradata?

662


Difference between inner join and outer join?

588


What are teradata utilities?

590


What do you mean by ttu in teradata?

573


How is MLOAD Client System restarted after execution?

605