Click here to Skip to main content
16,006,531 members
Home / Discussions / Database
   

Database

 
GeneralRe: Data base logic Pin
Ah_Mohsen_aly11-Oct-06 7:35
Ah_Mohsen_aly11-Oct-06 7:35 
AnswerRe: Data base logic Pin
Colin Angus Mackay11-Oct-06 2:42
Colin Angus Mackay11-Oct-06 2:42 
GeneralRe: Data base logic Pin
Frank Kerrigan11-Oct-06 2:44
Frank Kerrigan11-Oct-06 2:44 
GeneralRe: Data base logic Pin
Colin Angus Mackay11-Oct-06 2:50
Colin Angus Mackay11-Oct-06 2:50 
QuestionProblems with SQL Pin
Britney S. Morales10-Oct-06 10:12
Britney S. Morales10-Oct-06 10:12 
AnswerRe: Problems with SQL Pin
Colin Angus Mackay11-Oct-06 2:45
Colin Angus Mackay11-Oct-06 2:45 
AnswerRe: Problems with SQL Pin
Frank Kerrigan11-Oct-06 2:47
Frank Kerrigan11-Oct-06 2:47 
AnswerRe: Problems with SQL Pin
Eric Dahlvang12-Oct-06 4:57
Eric Dahlvang12-Oct-06 4:57 
I am guessing that you want something like this:
select <code>TOP 10</code> * from users where codgroup = 1  <code>AND </code><code>usersortfield > 'last groups greatest value' ORDER BY </code><code></code><code>usersortfield</code>
EXAMPLE:
If you were ordering by LastName, you would do this to get the first 10:
select <code>TOP 10</code> * from users where codgroup = 1  </code><code><code>ORDER BY </code></code><code><code><code></code></code>LastName</code><code>
Then, when you want the next 10, you would take the lastname from the last record in the previous 10 and:
select <code>TOP 10</code> * from users where codgroup = 1  </code><code>AND </code><code><code></code><code><code></code></code>LastName <code></code></code><code>> </code><code><code>'</code><font class="messagetitle">Morales</font></code><code>' </code><code><code>ORDER BY </code></code><code><code><code></code></code>LastName

(Of course, you wouldn't use LastName alone, because it isn't unique enough...but you can see what I mean by this example.)


--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

GeneralRe: Problems with SQL Pin
Britney S. Morales13-Oct-06 2:19
Britney S. Morales13-Oct-06 2:19 
QuestionAnalysis Services 2000 - Member.FetchAllProperties Error Pin
Kevin McFarlane10-Oct-06 3:26
Kevin McFarlane10-Oct-06 3:26 
QuestionHIPAA Advice Pin
jajanes10-Oct-06 2:46
professionaljajanes10-Oct-06 2:46 
Questionstored-proc question Pin
flippydeflippydebop9-Oct-06 22:51
flippydeflippydebop9-Oct-06 22:51 
AnswerRe: stored-proc question Pin
yahao9-Oct-06 23:37
yahao9-Oct-06 23:37 
GeneralRe: stored-proc question Pin
flippydeflippydebop10-Oct-06 0:15
flippydeflippydebop10-Oct-06 0:15 
GeneralRe: stored-proc question Pin
Frank Kerrigan11-Oct-06 2:48
Frank Kerrigan11-Oct-06 2:48 
GeneralAccessing SQL via VPN firewall Pin
hairy_hats9-Oct-06 22:47
hairy_hats9-Oct-06 22:47 
GeneralRe: Accessing SQL via VPN firewall Pin
Colin Angus Mackay10-Oct-06 0:53
Colin Angus Mackay10-Oct-06 0:53 
GeneralRe: Accessing SQL via VPN firewall Pin
Frank Kerrigan11-Oct-06 3:08
Frank Kerrigan11-Oct-06 3:08 
QuestionMS Linked Servers and Triggers [modified] Pin
flippydeflippydebop9-Oct-06 3:47
flippydeflippydebop9-Oct-06 3:47 
AnswerMS Linked Servers and Triggers Solution/Hack! Pin
flippydeflippydebop10-Oct-06 0:15
flippydeflippydebop10-Oct-06 0:15 
QuestionSQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
steve_rm9-Oct-06 1:06
steve_rm9-Oct-06 1:06 
AnswerRe: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
yahao9-Oct-06 5:30
yahao9-Oct-06 5:30 
QuestionRe: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
steve_rm9-Oct-06 7:57
steve_rm9-Oct-06 7:57 
AnswerRe: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
Private_Void9-Oct-06 8:46
Private_Void9-Oct-06 8:46 
QuestionRe: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Pin
steve_rm9-Oct-06 22:17
steve_rm9-Oct-06 22:17 

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.