How to retrieve first and last records from a table?
Answer Posted / abc
SELECT * from empl WHERE ROWID IN (
SELECT MAX(ROWID) FROM empl
UNION
SELECT MIN(ROWID) FROM empl
);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.
Can multiple columns be used in group by in oracle?
WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?
Is a rollback possible to any savepoint?
How to enter a new row into a table interactively?
What are the different types of record groups in oracle? Explain each of them
What is system tablespace?
How to use "in" parameter properly?
why dont we assign not null constraint as table level constraint.
I just want to maintain data like an employee can belongs to 3 or more departments . We can resolve this by using composite key but it avoids normalization rules. So Can anyone tell me how can I maintain data.
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
Explain oracle instance.
Is oracle a relational database?
Select all the employees who were hired in last 2 years and who works in dept where max managers are working.
How to assign a table row to a record variable?