![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How to join two tables while one is using Date and another is using Timestamp on Oracle, for example, select * from Orders o, AuditLog a where o.TradeDate = a.EventTs Orders ======= TradeDate (Date) e.g. 14-JUN-08 AuditLog ========= EventTs (Timestamp) e.g. 12-JUN-08 10.28.53.083000000 AM Thanks! Regards |
#3
| |||
| |||
|
|
How to join two tables while one is using Date and another is using Timestamp on Oracle, for example, select * from Orders o, AuditLog a where o.TradeDate = a.EventTs Orders ======= TradeDate (Date) e.g. 14-JUN-08 AuditLog ========= EventTs (Timestamp) e.g. 12-JUN-08 10.28.53.083000000 AM Thanks! Regards |
#4
| |||
| |||
|
|
How to join two tables while one is using Date and another is using Timestamp on Oracle, for example, select * from Orders o, AuditLog a where o.TradeDate = a.EventTs Orders ======= TradeDate (Date) e.g. 14-JUN-08 AuditLog ========= EventTs (Timestamp) e.g. 12-JUN-08 10.28.53.083000000 AM Thanks! Regards |
#5
| |||
| |||
|
|
How to join two tables while one is using Date and another is using Timestamp on Oracle, for example, select * from Orders o, AuditLog a where o.TradeDate = a.EventTs Orders ======= TradeDate (Date) e.g. 14-JUN-08 AuditLog ========= EventTs (Timestamp) e.g. 12-JUN-08 10.28.53.083000000 AM Thanks! Regards |
#6
| |||
| |||
|
|
How to join two tables while one is using Date and another is using Timestamp on Oracle, for example, select * from Orders o, AuditLog a where o.TradeDate = a.EventTs Orders ======= TradeDate (Date) e.g. 14-JUN-08 AuditLog ========= EventTs (Timestamp) e.g. 12-JUN-08 10.28.53.083000000 AM Thanks! Regards |
#7
| |||
| |||
|
|
How to join two tables while one is using Date and another is using Timestamp on Oracle, for example, select * from Orders o, AuditLog a where o.TradeDate = a.EventTs Orders ======= TradeDate (Date) e.g. 14-JUN-08 AuditLog ========= EventTs (Timestamp) e.g. 12-JUN-08 10.28.53.083000000 AM Thanks! Regards |
#8
| |||
| |||
|
|
How to join two tables while one is using Date and another is using Timestamp on Oracle, for example, select * from Orders o, AuditLog a where o.TradeDate = a.EventTs Orders ======= TradeDate (Date) e.g. 14-JUN-08 AuditLog ========= EventTs (Timestamp) e.g. 12-JUN-08 10.28.53.083000000 AM Thanks! Regards |
#9
| |||
| |||
|
|
functions. Have you tried letting the implicit conversion do it's magic? It *should* simply snip off fractional seconds when converting timestamp to a date, but I haven't tried this. |
#10
| |||
| |||
|
|
functions. Have you tried letting the implicit conversion do it's magic? It *should* simply snip off fractional seconds when converting timestamp to a date, but I haven't tried this. |
![]() |
| Thread Tools | |
| Display Modes | |
| |