Subject | Re: FB 2.1.1 slow performance with subselect |
---|---|
Author | eddressel |
Post date | 2009-02-09T20:20:39Z |
Wanting to brush up on my SQL.... where do I find help on the new
features in 2.x? Maybe these are not 2.x issues... I'm looking at your
SQL, and it's well over my head. If there's a better place to answer
these questions, please let me know.
Specific questions:
current transaction, correct?
would that make sense?
Thanks
Ed Dressel
features in 2.x? Maybe these are not 2.x issues... I'm looking at your
SQL, and it's well over my head. If there's a better place to answer
these questions, please let me know.
Specific questions:
> with temp_order(order_id) asthat creates a temp table, correct? It's only available inside the
current transaction, correct?
> and exists(select null from online_order k2If I was writing this I would have probably added 'select first 1...':
> where k2.order_date > 01.01.2009'
> and k2.customer = 16244
> and k2.rdb$db_key > k.rdb$db_key))
would that make sense?
> select x.* from online_order xI thought it created a temp order, what is x.*?
> join temp_order t on x.order_id = t.order_id
> order by x.order_id
Thanks
Ed Dressel