<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Hey,<BR>
<BR>
I need a query for the following,<BR>
<BR>
given a table with this vales<BR>
<BR>
| id | parent_id | question_id |<BR>
| 1 | 1 | 1 |<BR>
| 2 | 1 | 1 |<BR>
| 3 | 1 | 2 |<BR>
| 4 | 1 | 2 |<BR>
<BR>
<BR>
Knowing only that I am searching for the parent_id = 1<BR>
I need a query that searches for<BR>
parent_id = 1 and then for each matching record, the older entry,<BR>
meaning the result should only have the records with id 2 and 4,<BR>
<BR>
any hint?<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>