Welcome to Help4Web.co.uk - Web Design Help, Html Tutorial, Php, Asp , SQL help and CCNA, MCSE definitions!
Google
Webkpop-web.com

     Main Menu

· Home
· Free Downloads
· Computing FAQ
· Contact Us
· Free Software Downloads
· Tech Forum
· Technology News
· Web Design Help
· Web Links
· Your Online Account
· Your PM



     Web Browser


     Website Links
Supermediastore! #1 in Computer media & Accessory

White Papers IT
Learn Korean
Chinese Pop Music
Advertise Kpop
Korean Pop Site Map
Web Design
Pop Music
Chinese Girls
HK Pop Korean Music
Lee Hyori
Hyori
Boa Park Ji Yoon
Baby Vox YG Family
Jeon Ji Hyun
1 Tym Ha Ji Won
Shyne Rain Bi
Shin Mina SM Town
Fly to the Sky
Korean Girls and Models
Nicholas Tse
161 Clan
보아
Edison Chen
Sung Hi Lee
Shinhwa
Andy Lau Jay Chou
White Papers
Case Study SES
Kelly Chen
Liu Yi Fei Sammi Cheng
Jordan Chan Music
Computer Jobs IT

Computer Help Forum and Programming Advice :: View topic - Select top 10 records except for the top 10 records
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log inLog in 

Select top 10 records except for the top 10 records

 
Post new topic   Reply to topic    Computer Help Forum and Programming Advice Forum Index -> SQL and Databases
View previous topic :: View next topic  
Author Message
londis
Web Design Newbie
Web Design Newbie


Joined: Jul 18, 2004
Posts: 47

PostPosted: Wed Oct 19, 2005 1:10 am    Post subject: Select top 10 records except for the top 10 records Reply with quote

I want an SQL query - select top 10 records except for the top 10 records.

Have some theory, i think it should work, i havnt figure it out yet. I couldnt get my sql running.

I just need a SQL statement that

SELECT TOP 10 records
FROM table
WHERE records NOT (SELECT TOP 10 from table)

its not working and it wont run as i expect it.

select top 10 * employees
from employees
where NOT employee_id IN (select top 10 employee_id from employee)

no views pls. just sql statement.

basically the query means select the next 10 records after the first top 10 records
Back to top
View user's profile Send private message
Jon
Web Design Admin
Web Design Admin


Joined: Jul 12, 2004
Posts: 72

PostPosted: Wed Oct 19, 2005 1:12 am    Post subject: Reply with quote

Did you try doing the following:

SELECT TOP 20 *
FROM Table T1
WHERE T1.Col1 NOT IN (SELECT TOP 10 Col1 FROM Table)
_________________
Free MusicCpopServer Definition
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Computer Help Forum and Programming Advice Forum Index -> SQL and Databases All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum







Learn Chinese | Learn cantonese | Learn Mandarin | Grace Park | Party Organisers | Kaila yu | Phone Card | Twins | Chinese Society | Loans UK | BokuMaro | CV Help Book | Chinese Wife | Korean Singles | British Born Chinese | Bae Yong Jun | Speak Korean | Chinese Models | Music | Information Security Management | Maritime Greenwich Campus | Covering Letters Help | Chinese Music | Jang Nara | SES | YG Family | Learn Korean | Firewall Definition | Server Definition | Wireless Network Definition | E-Commerce Definition | Sales Leads | Application Firewall | CCNA definitions | Research Papers | Webcast | CV Help

Author KPop Music :- Jon Bock ( Chinese Pop Music Learn Korean )
Produced by Kpop-Web Design Associates, all rights not reserved.
Internet Marketing and Search Engine Optimisation Software Defined Radio