Re: how to join dynamic SQL results with another query
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Sat, 12 Jun 2010 23:09:28 +0200
--CELKO-- (jcelko212@xxxxxxxxxxxxx) writes:
Have you thought about BASICS? First of all there is no such thing as
a "pivot query"; look at the defintion of a query. This term is
Microsoft crap.
Joe: this group is devoted to Microsoft crap. Think about the BASICS
before you spew on your keyboard.
Dynamic SQL says that you are a realllly baaad SQL programmer with a
realllly baad schema.
No, it says in this case that the relational model that SQL is built
on for good or bad has a shortcoming in that it cannot address the
common need for an output there the columns is based on the data.
Your approach is totally wrong and will mess up your company; but you
will get kludges on line that will give you enough time to update your
resume. Since I have
3 decades cleaning this stuff, I should be happy.
If you go on like this I can sooner or later put "three decades
of cleaning up after Joe Celko's posts in the newsgroups" on my CV.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: how to join dynamic SQL results with another query
- From: new DBA in '09
- Re: how to join dynamic SQL results with another query
- From: Tony Rogerson
- Re: how to join dynamic SQL results with another query
- References:
- how to join dynamic SQL results with another query
- From: new DBA in '09
- Re: how to join dynamic SQL results with another query
- From: --CELKO--
- how to join dynamic SQL results with another query
- Prev by Date: Re: how to join dynamic SQL results with another query
- Next by Date: Re: Finding all table and fields that are involved in a one to many relation (on many side) with a given field
- Previous by thread: Re: how to join dynamic SQL results with another query
- Next by thread: Re: how to join dynamic SQL results with another query
- Index(es):
Relevant Pages
|