Viewing 15 posts - 6,286 through 6,300 (of 15,381 total)
Do you remember basic order of operations from math class?
You have this.
OTAL_PR / OT_Hrs + OT_amt + OT_shift * 100
Since you didn't use any parenthesis this is nothing like what...
November 14, 2013 at 7:43 am
halifaxdal (11/14/2013)
Select Distinct Category from menuGroup
ORDER BY (CASE Category
WHEN 'SVP' THEN 1
WHEN 'OS' THEN 2
WHEN...
November 14, 2013 at 7:35 am
//Ravi (11/14/2013)
Sean, yes it is Looping/cursor type of insert. I hate using cursors, but the application, into which the data is being inserted in, can't handle set based...
November 14, 2013 at 7:15 am
Grant Fritchey (11/13/2013)
Lynn Pettis (11/13/2013)
Lynn Pettis (11/13/2013)
It is 23:27 Afghan time. Three minutes until my phone interview. Wish me luck!
Just finished the interview, and I feel like a...
November 13, 2013 at 3:53 pm
brad.mason5 (11/13/2013)
November 13, 2013 at 3:40 pm
David Tooker (11/13/2013)
Im still getting the same output with the new code?
Here is the output I get with the code I posted.
LocationBatch IDFile #Last NameFirst NameCancel PayPay #Reg EarningsRate CodeTax...
November 13, 2013 at 3:33 pm
Something like this should do it.
SELECT
B.Location,
'EXEMPT' as 'Batch ID',
A.EmpId as 'File #',
B.EmpLastName as 'Last Name',
B.EmpFirstName as 'First Name',
'y' as 'Cancel Pay',
NULL as 'Pay #',
NULL as 'Reg Earnings',
2 AS 'Rate Code',
NULL...
November 13, 2013 at 2:37 pm
I saw this thread earlier and totally agreed with Koen about the syntax errors. The way it was posted is just completely illegible. I took your post and ran...
November 13, 2013 at 12:16 pm
Well the sample data seems to match up with the description. However, the description is totally unclear. Why do values start changing in July? You mention something about multiple intersections,...
November 13, 2013 at 11:48 am
In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form of INSERT INTO statements
3. Expected results...
November 13, 2013 at 11:39 am
Take a look at the links in my signature about cross tabs. It explains how to do this thing quite nicely.
November 13, 2013 at 9:49 am
duplicate post. Direct replies here. http://www.sqlservercentral.com/Forums/Topic1513950-391-1.aspx
November 13, 2013 at 9:48 am
duplicate post. Direct replies here. http://www.sqlservercentral.com/Forums/Topic1513950-391-1.aspx
November 13, 2013 at 9:48 am
SteveEClarke (11/13/2013)
November 13, 2013 at 8:01 am
Viewing 15 posts - 6,286 through 6,300 (of 15,381 total)