Viewing 15 posts - 46 through 60 (of 443 total)
Almost same solution posted here...
http://www.sqlservercentral.com/Forums/Topic929079-145-1.aspx
June 1, 2010 at 4:45 am
How many scores are you expecting against Each user. Ist it 5 or Less / More than that?
June 1, 2010 at 4:43 am
I think problem is here;
UPDATE SOAllocation
SET sa.SMFixed = (ar.disbursementValue/(Select c.counts
FROM temp1 c
Where c.counts=114))
From
SOAllocation sa INNER JOIN
SOStagingTable ss ON sa.SO = ss.SO AND sa.FiscalYear = ss.FiscalYear
AND sa.DriverTimeFrame = ss.DriverTimeFrame...
June 1, 2010 at 4:40 am
Do you want same EMployeeID from desktop Application and Web Application? WHY?
June 1, 2010 at 4:33 am
I hope you dont mind dynamic sql...?
CREATE TABLE #mytable
(
ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED, --Is an IDENTITY column on real table
MACHINE_ID NVARCHAR(32),
TOOL_ID NVARCHAR(32),
ONHAND INT,
COLOR NVARCHAR(32)
)
--===== All Inserts into the...
May 31, 2010 at 11:46 pm
You can check the new requirement with the same query. Execute the query with @vVarTime variable first with StartTime and then with End time (or use OR operator in the...
May 31, 2010 at 3:58 am
Its just to check the multi dated shift and its end time. you can use variable here.
Declare @vShiftTable Table (ShiftID int, startTime datetime, endtime datetime)
Declare @vVarTime datetime
Declare @vMultiDateTime datetime
declare @start...
May 31, 2010 at 3:54 am
OK. Let me give an example.
I have one tblEmployee table with EmployeeID as Primary Key and another column DepartmentID.
Another tblDepartment with DepartmentID as Primary Key and another column...
May 31, 2010 at 3:27 am
urzsuresh (5/31/2010)
my higher person asking us to eliminate the funtions.
Is there still any problem in solution I posted? I thought you got the exact results?
May 31, 2010 at 1:50 am
GilaMonster (5/30/2010)
Atif Sheikh (5/30/2010)
Yes, Truncate is depricated in SQL Server 2008 as said by Steve. You can check tons of articles and blogs on this on the internet.
Truncate only was...
May 30, 2010 at 11:43 pm
arthur.cooper (5/28/2010)
That seems to work.Now my only issue is that it does not like the truncate_only in 2008. Did they change this for 2008 versus 2005?
Glad it worked.
Sorry for...
May 30, 2010 at 10:42 pm
David Portas (5/28/2010)
May 30, 2010 at 10:33 pm
I have submitted a script to accomplish this task. plz comment to make it meor efficient.
http://www.sqlservercentral.com/scripts/Stored+Procedures/70363/
May 28, 2010 at 5:30 am
I assume the answer to my question is 2.
Try this;
Select * from (
Select a.Machine_ID, a.TOOL_ID as Col1,IsNull(b.TOOL_ID,'') as Col2, Row_number() over (partition by a.Machine_ID order by a.Machine_ID) as rno
from #mytable...
May 28, 2010 at 5:17 am
Is there any defined limit of MachineID in #mytable?
May 28, 2010 at 4:52 am
Viewing 15 posts - 46 through 60 (of 443 total)