|
David W Noon wrote: Yes this is a valid SQL statement use similar ones a great deal. The problem with nested queries is they can only return 1 record per match. Another problem can be performance it has to run for every record in order tables and it occurs pre filter conditions
I read the question as Gary wanted the entire orders table with the greatest timestamp from the logs table.... Quoting Gary "How can I select all from orders and the last (latest) entry from the orders_log?" |
- [SQL] simple (?) join Gary Stainburn
- Re: [SQL] simple (?) join Oliveiros C,
- Re: [SQL] simple (?) join Oliveiros C,
- Re: [SQL] simple (?) join David W Noon
- Re: [SQL] simple (?) join justin
- Re: [SQL] simple (?) join David W Noon
- Re: [SQL] simple (?) join justin
- Re: [SQL] simple (?) join David W Noon
- Re: [SQL] simple (?) join justin
- Re: [SQL] simple (?) join Gary Stainburn
- Re: [SQL] simple (?) join Oliveiros C,
- Re: [SQL] simple (?) join David W Noon
- Re: [SQL] simple (?) join Gary Stainburn
- Re: [SQL] simple (?) join Oliveiros C,
- Re: [SQL] simple (?) join justin
- Re: [SQL] simple (?) join Raj Mathur
- Re: [SQL] simple (?) join Claus Guttesen
