Viewing 15 posts - 46 through 60 (of 117 total)
Sean Lange (3/30/2012)
select * from
(
SELECT
ROW_NUMBER() over(partition by e.EMP_ID order by x.r.value('@date_changed','DATETIME') desc) as RowNum,
e.EMP_ID,
e.EMP_NAME,
e.EMP_ORGANIZATION,
e.EMP_DEPARTMENT,
e.EMP_DT_TERMINATION,
...
March 30, 2012 at 9:51 am
Mark-101232 (3/30/2012)
SELECT e.EMP_ID,
e.EMP_NAME,
e.EMP_ORGANIZATION,
e.EMP_DEPARTMENT,
...
March 30, 2012 at 9:29 am
Here is the photo of the return data from my last statement.
March 30, 2012 at 9:14 am
OK, here are the EMP_ID's for all of these 4 employees.
/* SELECT * FROM EMPLOYEE WHERE EMP_NAME IN ('Whitehead, Molly','Gentry, Clinton A ','Crosby, Sherman','Riddle, Nichole') */
CREATE TABLE #EMPLOYEE2
(
EMP_ID INT,
EMP_NAME...
March 30, 2012 at 9:00 am
OK, here is my DDL and Sample Date, but yes the tables are not joining up. Again sorry for kindergarten type mistakes I may still be making. But this Sample...
March 30, 2012 at 8:39 am
capn.hector (3/26/2012)
njdevils39 (3/26/2012)
capn.hector (3/26/2012)
We need the DDL and sample data. im...
March 26, 2012 at 4:50 pm
capn.hector (3/26/2012)
We need the DDL and sample data. im supprised you...
March 26, 2012 at 3:59 pm
Lynn Pettis (3/26/2012)
March 26, 2012 at 3:28 pm
OK here is the XML FILE AND MY STORED PROCEDURE WHICH sort off works, just need to clean up the return values
<Rates>
<Rate date_changed="Nov 10 2011 7:28AM" not_active_since="07/27/2011"...
March 26, 2012 at 2:10 pm
Ok here we go, here is the photo of the result set that I need, but the last three columns need to be other numbers from the XML files in...
March 26, 2012 at 9:52 am
Yes and I gave you an example of the How the Columns from the XML should be structured
Date CHanged = "mOst recent Date"
From Pay_Rate = 'initial rate from Earliest...
March 26, 2012 at 9:28 am
I am not having any trouble retrieving data from the employee table. Its the Rate_history column I am having trouble with in employee_other table.
March 26, 2012 at 9:20 am
The temp table is the join of two tables, the employee table and the employee_other table. There is no source table in this stored proc.
Its a simple join statement of...
March 26, 2012 at 9:14 am
This seems harder than the prototype I created, all I have to do is join the two tables, but only extract items from the rate_history XML column.
Give me a...
March 26, 2012 at 8:58 am
create table employee
(
EMP_NAME VARCHAR(255),
EMP_ORGANIZATION VARCHAR(255),
EMP_DEPARTMENT VARCHAR(255),
EMP_DT_TERMINATION DATETIME
)
create table employee_other
(
DATECHANGED DATETIME,
FROM_PAY_RATE INT,
TO_PAY_RATE INT,
CHANGED_BY VARCHAR(255)
)
insert into employee
SELECT emp_name,
emp_organization,
...
March 26, 2012 at 8:40 am
Viewing 15 posts - 46 through 60 (of 117 total)