Thursday, 7 April 2016

Re: [firebird-support] VIEW optimization

 

On Thu, Apr 7, 2016 at 3:41 PM, Ann Harrison <aharrison@ibphoenix.com> wrote:
On Thu, Apr 7, 2016 at 2:27 PM, Gabor Boros gaborboros@yahoo.com [firebird-support] <firebird-support@yahoogroups.com> wrote:
2016. 04. 07. 19:31 keltezéssel, 'Mark Rotteveel' mark@lawinegevaar.nl
[firebird-support] írta:


Just in case you think Firebird should be able to ignore parts of an outer join,
let me disillusion you.


     select d.DepartmentName from Departments d
            left outer join Employees e on e.DeptID = d.DeptID

Suppose you have 10 Departments and 10 Employees, but all the
Employees have the same DeptID.  Then you should get the same
DepartmentName ten times.

The left outer join will return the nine unmatched Departments, returning
one DepartmentName for each unmatched Department.  The name of the
Department with 10 Employees will be returned 10 time.

Good luck,

Ann 


 


__._,_.___

Posted by: Ann Harrison <aharrison@ibphoenix.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? The Yahoo Mail app is fast, beautiful and intuitive. Try it today!

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu.  Try FAQ and other links from the left-side menu there.

Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.

__,_._,___

No comments:

Post a Comment