Viewing 15 posts - 691 through 705 (of 2,452 total)
LAG is available on SQL 2012.
what have you tried that isnt working?
May 14, 2016 at 3:23 am
good to hear it all worked out ok for you.
May 13, 2016 at 12:52 pm
-- CAVEAT.....
--I think that you need to clearly understand the structure of your data
--from your posts so far your sample tables and data keep changing
--if you find that the following...
May 13, 2016 at 12:48 pm
b.grove (5/13/2016)
So why create another document table duplicating the existing Document Signed...
May 13, 2016 at 9:53 am
b.grove (5/13/2016)
May 13, 2016 at 9:23 am
ganapathy.arvindan (5/13/2016)
Sir..Please sir..That is different requirement this one is different..sorry for bothering you
😉
so you have now changed table "emp" structure....
is table "emp1" still the same as you have previously posted,...
May 13, 2016 at 9:09 am
In another thread I asked you about the table structure
http://www.sqlservercentral.com/Forums/FindPost1785784.aspx
and you replied to say that it was correct........!!
May 13, 2016 at 7:49 am
ganapathy.arvindan (5/13/2016)
Create table emp(emp_code int,Fromdate DATETIME,Enddate DATETIME,shift INT,shifttype INT)INSERT INTO emp VALUES(635,'2014-05-01','2014-05-03',2,4)
INSERT INTO emp VALUES(635,'2014-05-07','2014-05-10',2,4)
INSERT INTO emp VALUES(635,'2014-05-14','2014-05-13',2,4)
It apppears that you are going around in circles here and in your...
May 13, 2016 at 7:46 am
ganapathy.arvindan (5/13/2016)
small bug...it is showing only enddate is nightshift..for example one employee is in night shift for a week(2,4) then this query working for enddate showing nightshiftThanks a lot
can you...
May 13, 2016 at 6:26 am
possibly ???
note i altered your sample data to get relevant results
Create table emp(emp_code int,Enddate DATETIME,shift INT,shifttype INT)
INSERT INTO emp VALUES(635,'20160503',2,1)
INSERT INTO emp VALUES(635,'20160508',2,1)
INSERT INTO emp VALUES(635,'20160514',1,1)
Create table emp1 (empid INT,shift...
May 13, 2016 at 5:36 am
Sean Lange (5/12/2016)
sestell1 (5/12/2016)
Automatic suppression of posts reported as spam by a certain threshold number of users...
May 12, 2016 at 3:14 pm
alex.sqldba (5/12/2016)
yes static and readonly.
ok...so other than the "data"...which can be easily migrated to v2014 (I assume?)...what else do you need.....logins/jobs/dts packages etc etc
spose what I am really asking.....why do...
May 12, 2016 at 3:02 pm
alex.sqldba (5/12/2016)
Small in this instance is 7GB.
Downtime wise, as long as I want really as it is to be (eventually) merged into our existing data. But wanted to...
May 12, 2016 at 2:49 pm
in your other post you said "In the process of migrating a small DB to SQL Server 2014"
maybe if we know what your definition of small is....and what the db...
May 12, 2016 at 2:34 pm
yb751 (5/12/2016)
Caz68 (5/12/2016)
I am using SQL server 2008 so assume that is MS SQL and not MYSQL as per my title apologies as I...
May 12, 2016 at 1:39 pm
Viewing 15 posts - 691 through 705 (of 2,452 total)