Use "<", ">" and "AND" after the "WHERE" to filter your return. This works only if your testID is Serialized (ie 1,2,3). If they are uniqueID's, another field must be used in it's place.... ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://www.postgresql.org/search.mpl