This Question Is Answered:
 SQL needed for selecting only 10 records,Can anyone help me?
I have to write an SQL command that will return only the first 10 records of the table. Can anyone help me...
 19 Jun 2007 16:25
 Flag
 There are lots of ways to select first desired record or row from a database table. Here are some example SQL statements

That doesn't require additional application logic, but each database server requires different SQL syntax.

SELECT ROWNUM,column1,column2,column3
FROM table_name
WHERE ROWNUM
Unrated

2 ratings
  06 Jul 2007 11:03
 Flag
 Well The ANSI standerd is after evreything else (SELECT nn FROM ... WHERE ... ORDER by ... LIMIT 0,10 then the ; at the end NB, LIMIT works like this LIMIT (From Record , for x records) Honest hurt my head thiniking from record x to y that's just WORNG but we all learn
by   mrblowfelt   07 Mar 2008 01:09    
Comment
  
Comment
  

1000 words left

    


 In SQL Server the simplest method is to use "SELECT TOP 10 * FROM MYTABLENAME".
Unrated

2 ratings
by   Boris
  25 Sep 2007 21:50
 Flag

1000 words left

    


 In sql table define some primary key as emp_code

select * from tablename where emp_code between range1 and range2
Unrated

1 ratings
  17 Nov 2007 09:28
 Flag

1000 words left

    


 Select * from fetch first 10 rows only.

This is the query can be used when your database is DB2 .
Unrated

0 ratings
by   kingo
  17 Jan 2008 14:17
 Flag

1000 words left

    


Blurtit Tools:  Email to a Friend    Bookmark this page
What Are The Importance
Of Database Management
System?
What Are The Elements Of
A System? And What Are
The Components Of System?
What's The Difference Of
C++ And Java Script?
How To Write Order Of
Events In Microsoft Word?
Where Is Holmes On Homes
Moving To What Channe?
What are the three
dimensions of Distributed
Databases? Please
discuss.
What is the definition of
a table in a database?
Java Is Good Or .net,
What Are Advantages Of
Each,and Which Is Good
Comparatively
How To Differentiate
Between Equi Join And
Natural Join In SQL?
Briefly Explain With...
Are there any sites which
teach you how to
create,delete and update
a database?
My Blurtit
My Profile
My Questions
My Answers
Blurtit Features
Ask a Question
Answer a Question
Search an Answer
Categories
Tools
Link to Blurtit
Add Blurtit to Firefox
Search Engine
See Your Site Here
Link to Blurtit
RSS
Blurtit.com
About Us
Terms & Conditions
Privacy Policy
Contact Us
Advertise With Us
Help
International
 Chinese Site
 Japanese Site
To continue you need to be registered with us first.

I am already a Blurter, and need to login
I am not a Blurter yet, but would like to register