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
How many codd's rules are satisfied by teradata database?
What is meant by a node?
What are the steps involved after the disk manager passes the request?
Difference between star and snowflake schemas?
What are different table types used in teradata?
What is a clique?
What is a dimension table?
how can we analyze the locks ?
What are the string manipulation operators and functions associated with teradata?
What is spool space? Why do you get spool space errors?
Highlight a few of the advantages that ETL tools have over Teradata.
What are the design features involved in teradata?
what is sysdba and sysdbc ? which has high priority ?
Explain and compare pros and cons of start schemas?
tomorrow i have interview in infosys.can someone pour any suggestions or any interview questions. thank you