Viewing 15 posts - 6,871 through 6,885 (of 10,144 total)
Congratulations to Paul White, who's joined the elite through hard work and outstanding contributions to the community. Well done Paul, very well deserved.
April 1, 2011 at 9:20 am
kp81 (3/11/2011)
I've just run it up and it's spot on what I need. I think the key was also in the
case when...
March 11, 2011 at 4:43 am
BeginnerBug (3/9/2011)
create table #sample(sno int identity,student_no int, head int,task varchar(50))insert into #sample (student_no,head,task) values(1,10,'tactical')
insert into #sample (student_no,head,task) values(10,20,'basket')
insert into #sample (student_no,head,task) values(20,40,'aerospace')
insert into #sample (student_no,head,task) values(40,10,'robot')
insert into #sample (student_no,head,task) values(10,40,'tackle')
insert...
March 9, 2011 at 7:07 am
Jeff Moden (3/9/2011)
Chris Morris-439714 (3/9/2011)
clarmatt73 (3/9/2011)
I have a stored procedure that has five union queries within it, the first and last queries in the code are the Header and...
March 9, 2011 at 6:11 am
You're welcome Matt. If you're still unsure, post up the whole query.
March 9, 2011 at 5:31 am
clarmatt73 (3/9/2011)
I have a stored procedure that has five union queries within it, the first and last queries in the code are the Header and Footer for the export...
March 9, 2011 at 4:35 am
Gianluca Sartori (3/9/2011)
Koen Verbeeck (3/8/2011)
Tom.Thomson (3/8/2011)
Kiara (3/8/2011)
Koen Verbeeck (3/8/2011)
(who for some bizarre reason love to...
March 9, 2011 at 2:18 am
Michael Tocik (3/8/2011)
dope!:blush:My mistake....I was joining on the wrong field
Easily done. Try to get into the habit of using table aliases:
SELECT i.order_number
FROM INVOICE_DETAIL_CONF_ALL i
INNER JOIN ORDER_EXTRACT_AUTO o
ON o.[Ord No]...
March 8, 2011 at 4:59 am
SQLkiwi (3/4/2011)
Exciting day - just had my first Simple Talk article published:http://www.simple-talk.com/sql/learn-sql-server/understanding-and-using-parallelism-in-sql-server/
Good lord Paul, they get better and better. You have an enviable skill, like Jeff M, at making the...
March 7, 2011 at 9:22 am
Dave Ballantyne (3/4/2011)
SQLkiwi (3/4/2011)
Copyright infringement is when you're reprinting the work without permission.
It is possible to...
March 4, 2011 at 5:17 am
Try this as an alternative:
;WITH CTE_Filter AS (
SELECT drugid
FROM dphadrugdata d
WHERE d.usagetype LIKE '%Non%'
AND d.active = 'Y'
GROUP BY drugid -- <<<---- dedupes, might not need this
) ...
March 2, 2011 at 7:15 am
Jim, here's an alternative method. Assuming your new codes are in column A then insert the following into B1 and B2:
="SELECT '" & A1 & "' AS NewCode UNION ALL"
="SELECT...
March 2, 2011 at 6:52 am
CirquedeSQLeil (3/1/2011)
Fal (3/1/2011)
David Benoit (3/1/2011)
Grant Fritchey (3/1/2011)
Well do you want video or just pictures?Just don't put either on The Thread. Please... 😀
Hey, I thought only code was barred on The...
March 2, 2011 at 3:21 am
GSquared (2/28/2011)
Jeff Moden (2/25/2011)
SQLkiwi (2/22/2011)
Steve Jones - SSC Editor (2/22/2011)
February 28, 2011 at 7:01 am
Viewing 15 posts - 6,871 through 6,885 (of 10,144 total)