Click here to Skip to main content
16,005,281 members
Home / Discussions / Database
   

Database

 
AnswerRe: IS NULL vs. = 'NULL' Pin
nelsonpaixao9-Oct-08 12:52
nelsonpaixao9-Oct-08 12:52 
AnswerRe: IS NULL vs. = 'NULL' Pin
Mycroft Holmes9-Oct-08 16:00
professionalMycroft Holmes9-Oct-08 16:00 
QuestionORA-00936 missing expression Pin
StrayGrey9-Oct-08 2:37
StrayGrey9-Oct-08 2:37 
AnswerRe: ORA-00936 missing expression Pin
Al Ortega9-Oct-08 5:35
Al Ortega9-Oct-08 5:35 
GeneralRe: ORA-00936 missing expression Pin
StrayGrey9-Oct-08 6:02
StrayGrey9-Oct-08 6:02 
GeneralRe: ORA-00936 missing expression Pin
Wendelius9-Oct-08 6:39
mentorWendelius9-Oct-08 6:39 
GeneralRe: ORA-00936 missing expression Pin
Al Ortega9-Oct-08 16:40
Al Ortega9-Oct-08 16:40 
GeneralRe: ORA-00936 missing expression Pin
Wendelius9-Oct-08 18:23
mentorWendelius9-Oct-08 18:23 
Didn't quite understand your point? There's a good example in the article:
select *
  from
(select *
   from t
  order by id)
where rownum <= 10

which returns top 10 rows. Rownum is placed on the outer query and the inner query selects only columns from the table t. Rownum is used on the ordered result set to ensure that really top 10 rows based on id column are returned.

I understood that the original query in this question was doing top N fetch.

The need to optimize rises from a bad design

GeneralRe: ORA-00936 missing expression Pin
Al Ortega10-Oct-08 15:45
Al Ortega10-Oct-08 15:45 
GeneralRe: ORA-00936 missing expression Pin
Wendelius10-Oct-08 19:53
mentorWendelius10-Oct-08 19:53 
AnswerRe: ORA-00936 missing expression Pin
Wendelius9-Oct-08 6:37
mentorWendelius9-Oct-08 6:37 
Questionimporting sample database Pin
Motajo Tolu9-Oct-08 1:53
professionalMotajo Tolu9-Oct-08 1:53 
AnswerRe: importing sample database Pin
Blue_Boy9-Oct-08 2:10
Blue_Boy9-Oct-08 2:10 
QuestionWhen it comes to database, I suck:( Pin
Muammar©9-Oct-08 1:45
Muammar©9-Oct-08 1:45 
AnswerRe: When it comes to database, I suck:( Pin
Wendelius9-Oct-08 6:56
mentorWendelius9-Oct-08 6:56 
GeneralRe: When it comes to database, I suck:( Pin
Paul Conrad9-Oct-08 7:20
professionalPaul Conrad9-Oct-08 7:20 
GeneralRe: When it comes to database, I suck:( Pin
Muammar©9-Oct-08 10:56
Muammar©9-Oct-08 10:56 
GeneralRe: When it comes to database, I suck:( Pin
Wendelius9-Oct-08 11:01
mentorWendelius9-Oct-08 11:01 
AnswerRe: When it comes to database, I suck:( Pin
i.j.russell9-Oct-08 11:49
i.j.russell9-Oct-08 11:49 
AnswerRe: When it comes to database, I suck:( Pin
nelsonpaixao9-Oct-08 12:59
nelsonpaixao9-Oct-08 12:59 
GeneralRe: When it comes to database, I suck:( Pin
Muammar©10-Oct-08 0:40
Muammar©10-Oct-08 0:40 
QuestionPass Table Name to a function dynamically Pin
Mohammad Al Hoss8-Oct-08 22:01
Mohammad Al Hoss8-Oct-08 22:01 
AnswerRe: Pass Table Name to a function dynamically Pin
Ashfield8-Oct-08 22:57
Ashfield8-Oct-08 22:57 
AnswerRe: Pass Table Name to a function dynamically Pin
Mycroft Holmes9-Oct-08 16:15
professionalMycroft Holmes9-Oct-08 16:15 
Questionerror installing SQL Server 2008 Express Pin
Jassim Rahma8-Oct-08 21:21
Jassim Rahma8-Oct-08 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.