If you want just a first selected row, you can:
select fname from MyTbl where rownum = 1
You can also use analytic functions to order and take the top x:
select max(fname) over (rank() order by some_factor) from MyTbl
More Related Contents:
- I want to search job and salary from employee table but I am getting error like invalid relational operator [closed]
- How do I limit the number of rows returned by an Oracle query after ordering?
- Oracle Joins – Comparison between conventional syntax VS ANSI Syntax
- SQL (ORACLE): ORDER BY and LIMIT [duplicate]
- How can I select from list of values in Oracle
- PLS-00428: an INTO clause is expected in this SELECT statement
- Alternatives to LIMIT and OFFSET for paging in Oracle [duplicate]
- How to get the last row of an Oracle table
- Using pivot on multiple columns of an Oracle row
- How can I get the number of days between 2 dates in Oracle 11g? [duplicate]
- Pivoting of data using two columns
- INSERT SELECT statement in Oracle 11G
- Sleep function in ORACLE
- SQL Error: ORA-00942 table or view does not exist
- Oracle – How to create a materialized view with FAST REFRESH and JOINS
- Nth max salary in Oracle
- Oracle – ORA-01489: result of string concatenation is too long [duplicate]
- Display names of all constraints for a table in Oracle SQL
- Autoincrement in oracle to already created table
- Oracle 11g – Check constraint with RegEx
- Issue when comparing result of to_char(myDate, ‘DAY’) to a string
- How to use a dynamic parameter in a IN clause of a JPA named query?
- Why does the wm_concat not work here?
- The network adapter could not establish the connection – Oracle 11g
- Oracle string aggregation
- Subtracting Dates in Oracle – Number or Interval Datatype?
- How to call Oracle MD5 hash function?
- Oracle RAC and sequences
- Using bind variables with dynamic SELECT INTO clause in PL/SQL
- Insert into from CTE