Advertisement
Advertisement
| 05.15.2008 at 12:48AM PDT, ID: 23404216 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: |
"SELECT text, device.screen_name, type, status_code, " + "device.device_id device_id , to_char(record_time + (?)/24, 'hh:mi am') dispatch_time2, " + "cast(record_time as TIMESTAMP) rec_date, ( (sysdate - record_time) * 24 * 60) lapsed_time , " + "client_forms.name form_name,message.sequence_number sequence_number FROM message, client_forms, " + "device WHERE message.client_id = ? and message.device_id = ? " + "AND client_forms_id = client_forms.id(+) AND (type = 1 or type = 2 or type = 3) " + "AND device.device_id = message.device_id ORDER BY record_time desc "; |