Staind Discography 1996-2012 NNJ.Q:
SELECT between rows/records
I have a table with two columns and multiple rows. Let's say it's called 'people' and it has 'id' and 'name'.
Now I need to write a query which will select all records between certain people. For example, I need to select all records of people between id 1 and id 3. Result should be records between id 1 and 3.
How to write such query?
EDIT:
id name
1 John
2 Michael
3 Josef
4 Svetla
result:
A:
To select all records of a table between 2 different rows, you just have to select all the rows that have an id > id2 and an id Q:
ImportError: No module named pyrlang
Related links:
Comments