Viewing 15 posts - 7,411 through 7,425 (of 10,144 total)
You mean like this?
SELECT BENCHMARK,
SUM(Number_of_INC) AS [Sum of Incumbents],
AVG(Number_of_INC) AS [Average of Incumbents],
AVG(AVG_SALARY) AS [Average Salary],
AVG(PAY_RANGE_MIN) AS [Average Pay Range Min],
AVG(PAY_RANGE_MIDPT) AS [Average Pay Range Mid],...
September 10, 2010 at 8:46 am
Brandie Tarvin (9/10/2010)
Chris Morris-439714 (9/10/2010)
Brandie, what's @=Pbbt?
It's like a raspberry, sticking one's tongue out, making the phbbt noise, and probably drenching everyone in the vicinity in the process.
You're the...
September 10, 2010 at 8:27 am
Balance (9/10/2010)
Thanks chap - code probably too embarassing to post!;-)
If you think there's room for improvement, then post it - don't be shy, we're all learners here.
Anyway, the coffee lands...
September 10, 2010 at 8:24 am
Brandie, what's @=Pbbt?
It looks like Cyclops eating a bacon butty badly.
September 10, 2010 at 8:16 am
Jeff's excellent article will explain string splitting - if you're unsure of anything, just ask.
This
(SELECT TOP 200 [n] = ROW_NUMBER() OVER(ORDER BY [name]) FROM master.dbo.syscolumns) n is a mini...
September 10, 2010 at 8:11 am
dbowlin (9/10/2010)
Stuart Davies (9/9/2010)
peripateticI walk every day, but usually in circles.
Similar to a groundsman then - who walks every day, frequently in circles 😛
September 10, 2010 at 7:26 am
There is no guarantee that rows will be returned in any particular unless ORDER BY is specified.
There is also no guarantee that rows will be inserted in a particular order,...
September 10, 2010 at 6:16 am
vani_r14 (9/8/2010)
I have a function called Split and i would like to know - If can call that function in the where clause of Select Statement. This is a Table...
September 10, 2010 at 5:37 am
the_rutter (9/10/2010)
September 10, 2010 at 5:02 am
Look at it again. A cross join doesn't have to generate millions and millions of rows, and since you've got a filter on the derived table, this one won't, it...
September 10, 2010 at 4:31 am
The question is moot really. Since neither the derived table mostRecentStatus
nor the table orderlinestatus are joined to orders or orderlines, you have a cross join.
Try this instead:
SELECT
o.[Order],
ol.product,...
September 10, 2010 at 3:49 am
This couldn't have come at a better time, Wayne & I had something similar this week. Can you post the ddl for the table, along with a few INSERTs to...
September 10, 2010 at 2:59 am
Please post the ddl for the table, and the complete update statement which you are currently using.
September 10, 2010 at 2:34 am
Alvin Ramard (9/9/2010)
Jeff Moden (9/9/2010)
dave-dj (9/9/2010)
As always the ladies and gents of sqlserver central have been a great help.!
Everyday...
September 10, 2010 at 2:17 am
-- the stored procedure returns a DATETIME data type:
DECLARE @MyDate nvarchar(255)
SET @MyDate = GETDATE()
SELECT @MyDate
-- 'Sep 9 2010 4:46PM'
-- You need to CONVERT the output to a character...
September 9, 2010 at 9:51 am
Viewing 15 posts - 7,411 through 7,425 (of 10,144 total)