Re: date range query help
| От | brian |
|---|---|
| Тема | Re: date range query help |
| Дата | |
| Msg-id | 4924D943.6020005@zijn-digital.com обсуждение исходный текст |
| Ответ на | Re: date range query help (novice <user.postgresql@gmail.com>) |
| Ответы |
Re: date range query help
|
| Список | pgsql-general |
novice wrote: > 2008/11/20 Adam Rich <adam.r@sbcglobal.net>: >> >> select call.call_id, >> call.datetime, >> mobile_custodian.user_id, >> call.mobile_no >> call.charge >> from call, mobile_custodian >> where call.mobile_no = mobile_custodian.mobile_no >> and call.datetime between mobile_custodian.issue_date >> and mobile_custodian.return_date > > sorry I get nothing :( > How about: SELECT call.call_id, call.datetime, mobile_custodian.user_id, call.mobile_no, call.charge FROM call LEFT JOIN mobile_custodian ON call.mobile_no = mobile_custodian.mobile_no AND call.datetime BETWEEN mobile_custodian.issue_date AND mobile_custodian.return_date;
В списке pgsql-general по дате отправления: