problem with query

From: Ricardo Javier Aranibar León <ricardo_jal(at)hotmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Cc: ricardo_jal(at)linuxmail(dot)org, jaranibar(at)heilsbergbol(dot)com
Subject: problem with query
Date: 2002-09-19 19:48:21
Message-ID: F1086XQQez1enAqpfkN000002fb@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi list,

First sorry if this message arrive in your box mail twice,
I need your colaboration,I like a table or view with this information from 2
tables "ticket" and "orden_respuesta".
Note, that the tti (TTI02000008) doesn't have links to "numorden" in the
table orden_respuesta, if someone can help me i will thankfull

numtti | numorden | tt | usuario | estado |
tipo
-------------+---------------------------+--------+---------+----------+-------------
TTI02000006 | ORD02000046, ORD02000045..| 100029 | joroza | CERRADO |
ESPECIFI
TTI02000007 | ORD02000064, ORD02000061..| 100051 | joroza | REVISION |
ESPECIFI
TTI02000008 | (***void***) | 100049 | joroza | REVISION | IP
TTI02000009 | ORD02000040 | 56729 | joroza | CERRADO |
FACTURA

//////////////
table ticket//
//////////////
hb=# select tti, tt, usuario, estado, tipo from ticket;
tti | tt | usuario | estado | tipo
-------------+--------+---------+----------+-------------
TTI02000006 | 100029 | joroza | CERRADO | ESPECIFICO
TTI02000007 | 100051 | joroza | REVISION | ESPECIFICO
TTI02000008 | 100049 | joroza | REVISION | IP
TTI02000009 | 56729 | joroza | CERRADO | FACTURACION

///////////////////////
table orden_respuesta//
///////////////////////
hb=# select * from orden_respuesta ;
numorden | numtti
-------------+-------------
ORD02000046 | TTI02000006
ORD02000045 | TTI02000006
ORD02000044 | TTI02000006
ORD02000043 | TTI02000006
ORD02000042 | TTI02000006
ORD02000064 | TTI02000007
ORD02000061 | TTI02000007
ORD02000040 | TTI02000009

regards,
Ricardo

_________________________________________________________________
Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com

Browse pgsql-sql by date

  From Date Subject
Next Message Ricardo Javier Aranibar León 2002-09-19 20:30:29
Previous Message Ricardo Javier Aranibar León 2002-09-19 19:11:40 problem with query