Viewing 15 posts - 31 through 45 (of 89 total)
I learned from Advanced TSQL (ben-gan,moreau): http://www.apress.com/book/bookDisplay.html?bID=72
April 16, 2006 at 11:57 pm
You can select the results of a proc into another proc (see BOL: exec). You can also return a valid parameter from a proc as an output parameter but table...
April 16, 2006 at 11:54 pm
If you are going to use a subquery the "with rollup" is unnecessary. But you do need another aggregate 😉
select sum(x.gt)
from (
...
February 10, 2006 at 3:18 am
Take out the columns in the select. You need them in the group by but you are not required to return them. Also your distinct is redundant with the group...
February 9, 2006 at 7:30 am
As long as you are exporting to the same file that should work.
January 19, 2006 at 5:18 pm
SELECT MediaNewsId, MediaNewsHeadline, MediaNewsReleaseDate, MediaNewsBody
FROM CC_MediaNews
WHERE PublishOnIntra = Case when @readonly = 1 then 1 else PublishOnIntra end
and StoryStatus = 4
...
January 19, 2006 at 8:23 am
I love Mac. They are pretty, work well and the interface just makes sense. Everytime I use one even if it is for a minute or two I miss it....
January 19, 2006 at 8:02 am
Anytime I wanted to format sql data in Excel I transformed it to xml and wrote a stylesheet. Lot of gotchas around xml and a learning curve though so for...
January 19, 2006 at 7:49 am
I like sage (plugin for Firefox) but I don't have much to compare it to.
I like pluck - the folder set up is good and it's a web app....
December 18, 2005 at 6:30 pm
On intelisence... Ultraedit has a form of intellisence and you can pretty easily edit the source file. I still use it over management studio (for a lot of reasons:-). ...
December 18, 2005 at 6:23 pm
there is no reason to have month and yr tables. these values can be calculated other ways. Simply have a date column in the sale table. things like 'sale by...
April 16, 2005 at 9:15 am
line numbers are on the bottom of the screen. there is no way to display them on the side but ctrl-g will get you there.
i have never seen anyway...
April 15, 2005 at 2:14 pm
it seems you cannot reference a udf in a computed col from any other database not just tempdb. You would have to create the function in tempdb.
i.e - this...
April 15, 2005 at 1:34 pm
yes because the nvarchar is limited to 4000. exec is not limited this way and you can join multiple variables. i.e - exec @sql+@sql etc.
April 14, 2005 at 3:00 pm
Dbcc traceon(257)
For the session...this will format the results for QA screen.
March 30, 2005 at 7:21 am
Viewing 15 posts - 31 through 45 (of 89 total)