Viewing 15 posts - 31 through 45 (of 463 total)
Jeff Moden (2/11/2010)
---------------------------------------------------------------------------------
February 11, 2010 at 11:55 am
Can you show us what is there inside this? (if its not too big)
USP_PLM_COSTCENTER_EXPORT_VALIDATOR
---------------------------------------------------------------------------------
February 11, 2010 at 3:54 am
Jeff Moden (2/10/2010)
Nabha (2/10/2010)
Maybe I'm missing something but could it be as simple as this?
Regards,
Willem
That would give the records even if the employee is not active now.
...
---------------------------------------------------------------------------------
February 11, 2010 at 1:09 am
I am sure this is not what you are looking for,
Select * , Row_number() OVER (order by C),
(Select count(*) FRom T)
from T
post the query in this format and...
---------------------------------------------------------------------------------
February 10, 2010 at 7:43 am
Paarthasarathy (2/10/2010)
Let me explain exactly i want.
If we look the table, we have 3 records for the empid 1,
1st record on the 01-01-2005 was inserted when that employee actually...
---------------------------------------------------------------------------------
February 10, 2010 at 7:35 am
Maybe I'm missing something but could it be as simple as this?
Regards,
Willem
That would give the records even if the employee is not active now.
and the employee...
---------------------------------------------------------------------------------
February 10, 2010 at 7:31 am
Not sure if this will help. May be insufficient test data. I am assuming that the latest record (as per date) in emp table indicates the 'current' status of...
---------------------------------------------------------------------------------
February 10, 2010 at 7:18 am
I am sure I am getting this requirement all wrong, thats because you have not posted the query properly. have a look at this,
http://www.sqlservercentral.com/articles/Best+Practices/61537/
But if you are asking how...
---------------------------------------------------------------------------------
February 9, 2010 at 12:32 am
You can create the 'linked servers' and use the four part naming convention to access the data from linked server. Have a look in BOL about linked servers. It should...
---------------------------------------------------------------------------------
February 8, 2010 at 4:15 am
This is basic SQL stuff isnt it? you should've given it a try.
Not getting into the details of why would they keep two similar tables, here goes a way...
---------------------------------------------------------------------------------
February 7, 2010 at 11:40 pm
D i v y a R e d d y (2/4/2010)
http://www.sqlservercentral.com/try these after wards i will give other websites also.
hmm, I wonder how long he will take to complete...
---------------------------------------------------------------------------------
February 4, 2010 at 2:15 am
look at the line with bold font in the code below.
DECLARE @eventype VARCHAR(50)
DECLARE @time DATETIME
DECLARE @alert VARCHAR(500)
SELECT TOP 1...
---------------------------------------------------------------------------------
January 28, 2010 at 6:02 am
My wild guess is that you are looking for a dynamic SQL. This should get you started,
CREATE TABLE #TEST(FID int, Q01 int, Q02 int)
INSERT INTO #TEST VALUES (1, 1,...
---------------------------------------------------------------------------------
January 28, 2010 at 2:26 am
I would suggest the below,
If the columns are static, read this[/url]
Else IF its dynamic read this[/url]
ELSE (if you are stuck and need help) read this[/url]
Incidentally all three articles by...
---------------------------------------------------------------------------------
January 27, 2010 at 9:18 am
Will this do? 🙂
(borrowed the script from Chris)
SELECT *,
(SELECT AVG([grades])
FROM #duplicate2 T2
Where T2.FIRSTNAME = T1.FIRSTNAME
GROUP BY T2.FIRSTNAME ) AS [AVG]
FROM #Duplicate2 T1
---------------------------------------------------------------------------------
January 27, 2010 at 8:41 am
Viewing 15 posts - 31 through 45 (of 463 total)