[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[orca-users:08432] Re: 処置の入力日の変更



こんにちは,島谷@恵庭です.

あと,今後,定義等が変更になるかもしれないので不安定ですが,
view_q002 を,ptid と sryymd で検索するのもありかもしれません.

orca=# select * from view_q002 where ptid=1702 and sryymd~'200512';
          hospid          | ptid | nyugaikbn | sryka |  sryymd  |  srycd1   |  srycd2   |  srycd3   |  srycd4   | srycd5
--------------------------+------+-----------+-------+----------+-----------+-----------+-----------+-----------+-----------
 JPN012310100008          | 1702 | 2         | 01    | 20051224 | 111700210 |           |           |           |
 JPN012310100008          | 1702 | 2         | 01    | 20051224 | 610406409 | 610409347 | 612320526 | 001000110 |
 JPN012310100008          | 1702 | 2         | 01    | 20051224 | 002000001 | 170001910 | 170000410 | 700030000 |
 JPN012310100008          | 1702 | 2         | 01    | 20051224 | 199000610 |           |           |           |
 JPN012310100008          | 1702 | 2         | 01    | 20051224 | 120003010 |           |           |           |
 JPN012310100008          | 1702 | 2         | 01    | 20051224 | 120002570 |           |           |           |
(6 rows)