Viewing 15 posts - 1,036 through 1,050 (of 3,957 total)
ChrisM@Work (12/4/2013)
dwain.c (12/3/2013)
Steve,I thought you might want to see this:
http://www.sqlservercentral.com/Forums/FindPost1519227.aspx
By alerting you, I am not vouching for its veracity.
Dwain, I thought some of that code looked familiar - didn't we...
December 4, 2013 at 6:29 am
You can also build a calendar table on-the-fly:
WITH SampleData (accountid, stockid, startdate, enddate) AS
(
SELECT 1,2,CAST('2012-01-02' AS DATETIME),CAST('2012-01-31' AS DATETIME)
UNION ALL SELECT 1,3,'2013-01-31',...
December 3, 2013 at 6:20 pm
Take a look at these two articles by Jeff Moden on Crosstabs:
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns [/url]
December 3, 2013 at 5:59 pm
Here's another way that avoids DISTINCT:
SELECT a.IPCode, ID
FROM Profile a
JOIN
(
SELECT IPCode
FROM Profile
GROUP BY IPCode
...
December 3, 2013 at 5:54 pm
If you must do your formatting with SQL (hint: I agree with Sean), you might want to take a look at this article to give you some ideas:
December 3, 2013 at 5:29 pm
This problem should be solvable without a loop.
However, if you'd like a tested solution you're going to need to help us help you by providing:
- DDL to create the tables...
December 3, 2013 at 5:25 pm
GordonLiddy (12/3/2013)
December 3, 2013 at 5:20 pm
Steve,
I thought you might want to see this:
http://www.sqlservercentral.com/Forums/FindPost1519227.aspx
By alerting you, I am not vouching for its veracity.
December 3, 2013 at 5:19 pm
I heard somewhere that TEXT data type is being deprecated.
Is there any reason you can't use a VARCHAR(8000) type? That would be a pretty long text message.
And are all...
December 2, 2013 at 10:38 pm
OldFashionGang (12/2/2013)
December 2, 2013 at 6:11 pm
pietlinden (12/2/2013)
Writing a Catch-all query is not a great idea either. Gail Shaw has a great article on that here: http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries
To add to pietlinden's suggestion regarding Gail's article, here's...
December 2, 2013 at 5:37 pm
Your answers to short-circuiting the CSQ is something I've been wondering about for quite some time, without really knowing how to go about testing for it.
So thanks!
December 1, 2013 at 11:31 pm
Jeff Moden (12/1/2013)
dwain.c (12/1/2013)
December 1, 2013 at 7:18 pm
Lynn Pettis (12/1/2013)
dwain.c (12/1/2013)
Lynn Pettis (12/1/2013)
Revenant (11/30/2013)
Steve Jones - SSC Editor (11/30/2013)
Personally I have no issue with stores opening on Thanksgiving. The...
December 1, 2013 at 5:54 pm
Lynn Pettis (12/1/2013)
Revenant (11/30/2013)
Steve Jones - SSC Editor (11/30/2013)
Personally I have no issue with stores opening on Thanksgiving. The first time I...
December 1, 2013 at 5:35 pm
Viewing 15 posts - 1,036 through 1,050 (of 3,957 total)