Jump to content

Help is needed in setting an interval


nemethpeter

Recommended Posts

Hello!

 

THere\'s a table with say 5 columns and 60 rows. How can i make a SELECT query, that selects the rows between 20 and 30? (there are id-s in every rows, but as some are usually deleted, it cannot be said, that rows between the id-s 20 and 30) I know, that there\'s a phrase called \'BETWEEN\', but dunno how may i apply it when talkin about rows...

 

Bye

 

NP

Link to comment
Share on other sites

Ya know, the problem is, that some rows might be deleted (just as i said) and the id-s may come like 1,3,4,5,8,10 and in this way saying that \"where id BETWEEN 1 and 10\" certainly doesn\'t produce 10 rows of data.

However, recently I\'ve heard that all rows should be processed, and in the array just the surplus should be deleted... What do you think?

 

Thanks for the answers:

 

NP

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.