Viewing 15 posts - 14,851 through 14,865 (of 19,564 total)
I have played with this some more to fit into the desired results and requirements.
select t.field1, (
select count(*) line_count from #table2 where field2 > t.field2 group by field1
)
from #table1 t
You'll...
April 14, 2010 at 4:10 pm
GSquared (4/14/2010)
CirquedeSQLeil (4/14/2010)
WayneS (4/14/2010)
CirquedeSQLeil (4/14/2010)
WayneS (4/14/2010)
Lynn Pettis (4/14/2010)
CirquedeSQLeil (4/14/2010)
Lynn Pettis (4/14/2010)
To the TinD I am going, fun you all can have.It looks like you can come back now.
And I did....
April 14, 2010 at 3:33 pm
Here is a SQLMagazine article on the topic.
http://www.sqlmag.com/article/tsql3/nifty-ways-to-use-for-xml-path-concatenation.aspx
April 14, 2010 at 3:32 pm
WayneS (4/14/2010)
CirquedeSQLeil (4/14/2010)
WayneS (4/14/2010)
Lynn Pettis (4/14/2010)
CirquedeSQLeil (4/14/2010)
Lynn Pettis (4/14/2010)
To the TinD I am going, fun you all can have.It looks like you can come back now.
And I did. Just...
April 14, 2010 at 3:08 pm
Lynn Pettis (4/14/2010)
CirquedeSQLeil (4/14/2010)
On the topic of case consistency - please don't ever try Microsoft CRM. It will absolutely drive you bonkers. CRM requires objects be created through...
April 14, 2010 at 3:00 pm
Alternatives to the Red Exclamation mark (which historically with MS has meant problems), use F5 or Alt-X.
April 14, 2010 at 2:51 pm
WayneS (4/14/2010)
Lynn Pettis (4/14/2010)
CirquedeSQLeil (4/14/2010)
Lynn Pettis (4/14/2010)
To the TinD I am going, fun you all can have.It looks like you can come back now.
And I did. Just waiting now...
April 14, 2010 at 2:48 pm
Yes, size will have an impact on performance - slightly. The larger the database and tables, the more data that may need to be maintained. You should keep...
April 14, 2010 at 2:46 pm
The Subquery will also throw an error
The multi-part identifier "#table1.field2" could not be bound.
On the line:
select field1, count(*) line_count from #table2 where field2 > #table1.field2 group by field1
April 14, 2010 at 2:43 pm
Guess I was wrong. I interpreted the problem to be that debugging was taking too long and that you wanted to debug.
Glad you found your answer.
April 14, 2010 at 2:36 pm
Lynn,
On the topic of case consistency - please don't ever try Microsoft CRM. It will absolutely drive you bonkers. CRM requires objects be created through the GUI. ...
April 14, 2010 at 2:23 pm
Lynn Pettis (4/14/2010)
That's why I write all system tables in lower case as well.
I hadn't considered that. Makes sense. I should probably check my...
April 14, 2010 at 2:21 pm
WayneS (4/14/2010)
The Green Triangle is to run in Debug mode, the Red Exclamation Point executes the query. You...
April 14, 2010 at 2:17 pm
Viewing 15 posts - 14,851 through 14,865 (of 19,564 total)