I want to know last five transactions or records from emp
table, from now?
Answer Posted / nitin
NAME EMP_ID
A 100
B 102
C 103
D 105
E 200
F 201
G 202
H 203
I 204
SELECT * FROM (select * from emp order by emp_id desc)
WHERE rownum <= 5
| Is This Answer Correct ? | 13 Yes | 12 No |
Post New Answer View All Answers
What are the constraints available in sql?
Why should I use postgresql?
Can a foreign key have a different name?
What is procedure explain with program?
What is a mutating table and a constraining table?
Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints
Which is better trigger or stored procedure?
What is pl sql block structure?
What is pl sql code?
What is a dynamic query?
how many triggers are allowed in mysql table? : Sql dba
What are different joins used in sql?
How does sql profiler work?
What is difference between left and right outer join?
Does sqlite need a server?