Showing posts with label terms. Show all posts
Showing posts with label terms. Show all posts

Monday, March 12, 2012

Optimal SQL

Please excuse what is probably a no-brainer, but here goes.

Is there any difference, in terms of performance or any other pertinent
factor, between:

SELECT * FROM tblCustomers INNER JOIN tblCustomerOrders ON
tblCustomers.fldCustomerID = tblCustomerOrders.fldCustomerID

and

SELECT * FROM tblCustomers, tblCustomerOrders WHERE
tblCustomers.fldCustomerID = tblCustomerOrders.fldCustomerID

I note that if I type the latter into the SQL pane in a Data window,
SQL Server replaces it with the former.

TIA

Edward
--
The reading group's reading group:
http://www.bookgroup.org.ukShould give the same query plan.

Nigel Rivett
www.nigelrivett.net

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!|||If you examine the execution plans in Query Analyzer you will find the two
statements are identical. For INNER JOINs either syntax is legal and which
you use really comes down to readability and personal preference.

> I note that if I type the latter into the SQL pane in a Data window,
> SQL Server replaces it with the former.

One reason to avoid GUI query tools is that they tend to mess with the
formatting and syntax of your code. My advice is to use a proper query
editor, like Query Analyzer. In the long run you'll find you can write
better code much quicker that way.

--
David Portas
SQL Server MVP
--|||David Portas wrote:
> If you examine the execution plans in Query Analyzer you will find
the two
> statements are identical. For INNER JOINs either syntax is legal and
which
> you use really comes down to readability and personal preference.
> > I note that if I type the latter into the SQL pane in a Data
window,
> > SQL Server replaces it with the former.
> One reason to avoid GUI query tools is that they tend to mess with
the
> formatting and syntax of your code. My advice is to use a proper
query
> editor, like Query Analyzer. In the long run you'll find you can
write
> better code much quicker that way.
Thanks to you and Nigel. I agree with your distress at the way the GUI
tool in SQL Server messes with code - I like to have things laid out
just so, and it's no business of SQL Server to do it's nanny thing.
But that's Microsoft for you, the company that brought us Office
Assistant.

Unfortunately, for very involved outer joins with multiple tables, I'm
just not expert enough to craft the thing in QA, or rather I like to
see a graphical representation of the table relations. But I suppose I
could write it in QA, then paste it into a Data pane and see what the
GUI made of it.

Edward
--
The reading group's reading group:
http://www.bookgroup.org.uk

--
We are what we repeatedly do. Excellence, then, is not an act, but a
habit - Aristotle

Those heights by great men reached and kept
Were not obtained by sudden flight,
But they, while their companions slept
Were toiling upward in the night
- Longfellow

Wednesday, March 7, 2012

Operational and Analytical CRM??

Hi,
While going through an article I came across the subject terms and
wanted to ask the experts if these are "basically" the same thing as
"BI" or are these totally different?
I'll appreciate any pointers/help from anyone.
Thanks.
Dont' think they are the same. Here's my "guess"...
* CRM = Customer Relationsship Management - something about customers...but
in BI you can have lots of areas such as finance, sales, inventory and so
forth...
* however - i would guess that data mining could be relevant a lot in CRM on
websites and for that i would think an AS engine could be used
* In CRM there a many more processes related to customers - that could be
the operatonal CRM above and perhaps the analytical could be solved by
BI...?
"Learner" <wantnospam@.email.com> skrev i en meddelelse
news:MPG.1b1714e36d0ad7aa989703@.msnews.microsoft.c om...
> Hi,
> While going through an article I came across the subject terms and
> wanted to ask the experts if these are "basically" the same thing as
> "BI" or are these totally different?
> I'll appreciate any pointers/help from anyone.
> --
> Thanks.

Operational and Analytical CRM??

Hi,
While going through an article I came across the subject terms and
wanted to ask the experts if these are "basically" the same thing as
"BI" or are these totally different?
I'll appreciate any pointers/help from anyone.
Thanks.Dont' think they are the same. Here's my "guess"...
* CRM = Customer Relationsship Management - something about customers...but
in BI you can have lots of areas such as finance, sales, inventory and so
forth...
* however - i would guess that data mining could be relevant a lot in CRM on
websites and for that i would think an AS engine could be used
* In CRM there a many more processes related to customers - that could be
the operatonal CRM above and perhaps the analytical could be solved by
BI...?
"Learner" <wantnospam@.email.com> skrev i en meddelelse
news:MPG.1b1714e36d0ad7aa989703@.msnews.microsoft.com...
> Hi,
> While going through an article I came across the subject terms and
> wanted to ask the experts if these are "basically" the same thing as
> "BI" or are these totally different?
> I'll appreciate any pointers/help from anyone.
> --
> Thanks.