0

I am using Postgres and have this query:

select d.id,d.santoral_id,d.tipointencion_id from intencion_detalle d
join intencion i ON (i.id=d.intencion_id)
where i.fecha='2017-08-29';

and this is the output: enter image description here

I want the row 6 and 7 that has the same santoral_id and tipointencion_id to be shown only once not multiple times, and in the same query I want to show the column description that is not in the image but exist in the table. How can I do this?

Toby Speight
  • 27,591
  • 48
  • 66
  • 103
matQ
  • 597
  • 2
  • 13
  • 27

0 Answers0