I want to know last five transactions or records from emp
table, from now?
Answers were Sorted based on User's Feedback
Answer / prakash r
Hi,
Please try the below query
Table
------
create table TEMP_SEARCH
(
F1 VARCHAR2(100),
F2 VARCHAR2(100),
F3 VARCHAR2(100)
)
select * from TEMP_SEARCH
Rownum F1 F2 F3
-----------------------------
1 1 500 DES1
2 2 600 DES2
3 3 550 DES3
4 4 760 DES4
5 5 899 DES5
select * from temp_search
minus
(select * from temp_search where rownum < (select count(*) -
2 from temp_search))
This will give the last two transaction
| Is This Answer Correct ? | 2 Yes | 7 No |
How many types of index are there?
What is 19 null in sql?
what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba
what is the command for user data type?
what is “go” in t-sql? : Transact sql
What is trigger and types?
What is composite primary key in sql?
Explain the PL/SQL compilation process.
types of exceptions and what is meant by pragma autonomous_transaction ?what is the use.
difference between pl/sql table and normal pl/sql table
Mention what problem one might face while writing log information to a data-base table in pl/sql?
What are synonyms in sql?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)