Viewing 15 posts - 11,761 through 11,775 (of 15,381 total)
In order to retrieve the output of a select in a stored proc you have to first insert it somewhere. A temp table is the most logical place from what...
June 4, 2012 at 8:53 am
Make sure your command prompt is "running as an administrator". You can right click a command prompt shortcut and select "Run as Administrator". I ran into this issue when first...
June 4, 2012 at 8:52 am
jbalbo (6/4/2012)
I have the following which picks up data up to 6 times , but if there are only 4 entries I want the last two to be blank...
June 4, 2012 at 8:37 am
Here is the sql with some formatting:
SELECT (
SELECT COUNT(*)
FROM account A
WHERE STAT = 'O'
AND dormant = 'N'
AND code = '200'
GROUP BY code
) active
,(
SELECT COUNT(*)
FROM account
WHERE OPEN_DATE BETWEEN '7-MAY-2012'
AND '31-MAY-2012'
AND code...
June 4, 2012 at 8:23 am
flashykez (6/4/2012)
June 4, 2012 at 8:18 am
weisen678 (6/4/2012)
now, I come back to this project, I tested on the code you created, then I get this error message
Msg 213, Level 16, State 1, Procedure InventoryLow, Line 4
Column...
June 4, 2012 at 8:16 am
Jeff Moden (6/2/2012)
Sean Lange (6/1/2012)
Tables in sql are by definition an unordered collection of data.
Heh... I've heard that. 😀 However, while that is the general mantra of database...
June 4, 2012 at 7:57 am
Stefan Krzywicki (6/1/2012)
Sean Lange (6/1/2012)
Stefan Krzywicki (6/1/2012)
SQLRNNR (6/1/2012)
Stefan Krzywicki (6/1/2012)
Revenant (6/1/2012)
Stefan Krzywicki (6/1/2012)
Cath Trimble (6/1/2012)
By the way, the houses near the tech center sure are expensive - about $250,000...
June 1, 2012 at 12:22 pm
Stefan Krzywicki (6/1/2012)
SQLRNNR (6/1/2012)
Stefan Krzywicki (6/1/2012)
Revenant (6/1/2012)
Stefan Krzywicki (6/1/2012)
Cath Trimble (6/1/2012)
By the way, the houses near the tech center sure are expensive - about $250,000 and up I think?...
June 1, 2012 at 10:46 am
aureolin (6/1/2012)
You could do something like:Where left(Diag1,3) > 'C00' and left(Diag1,3) < 'C97' ...
This would be non-sargable so performance could very easily become a big issue.
or you could create a...
June 1, 2012 at 10:13 am
Yes what will work as a solid performance enhancement for sql server may not be the same in Oracle. For example in Oracle it might be better to use a...
June 1, 2012 at 9:48 am
michaelh-731356 (5/31/2012)
INSERT INTO @Authors (AuthorName)
SELECT AuthorName
from tblAuthors
ORDER BY AuthorName
However in SQL 2012, the Authors are not inserted by the Order...
June 1, 2012 at 8:45 am
Your issues could be slightly different than mine.
Msg 208, Level 16, State 1, Line 1
Invalid object name 'dbo.PSFDOC'.
Seriously you know better by now. Maybe somebody else has a new one...
June 1, 2012 at 8:35 am
Well you didn't mention that this was an attempt to learn a concept until quite late. Regardless the same need for ddl and such still exists. Just because it is...
June 1, 2012 at 8:07 am
I also heard it's been called the "wifebeater" in America because it makes the rednecks too drunk
ROFL!!! Now that is an urban myth over there. There are two major...
June 1, 2012 at 7:39 am
Viewing 15 posts - 11,761 through 11,775 (of 15,381 total)