Advertisement
jotaced

consulta servicios con ficha ambulatoria

Jun 21st, 2013
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.21 KB | None | 0 0
  1. SELECT  DISTINCT servicio.ser_codigo,
  2.  servicio.ser_nombre
  3. FROM servicio
  4. JOIN INGRESO ON INGRESO.SER_CODIGO=SERVICIO.SER_CODIGO
  5. JOIN FICHA ON FICHA.PAC_NUMFICHA = INGRESO.PAC_NUMFICHA
  6. WHERE FICHA.PAC_TIPO='A'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement