Viewing 15 posts - 3,931 through 3,945 (of 10,144 total)
sathiyan00 (10/8/2013)
with Improved SQL 8K “CSV Splitter” Function its taking around 25 sec
with xml its taking around 30sec
with substring its...
October 8, 2013 at 8:09 am
NineIron (10/8/2013)
October 8, 2013 at 6:08 am
Not only a faster solution, but a comparison of many including the two you've listed: DelimitedSplit8k[/url] by Jeff Moden et al.
October 8, 2013 at 5:56 am
Bhuvnesh (10/8/2013)
select * from TABLE where countryid = @country OR stateID = @stateid
select * from TABLE where...
October 8, 2013 at 5:26 am
homebrew01 (10/6/2013)
ChrisM@Work (10/1/2013)
select T2.COL1, T2.COL2, T1.COL1, T1.COL2, T1.COL3
from T1
join T2
on T1.COL4 = T2.COL3
where T2.COL4 != 'data1'
and T1.COL1 is not...
October 7, 2013 at 1:25 am
Jeff Moden (10/5/2013)
We're talking about computers here and it always fascinates me that an IN/OUT reader system...
October 7, 2013 at 1:20 am
Have you looked at the Actual Execution Plan for the statement? It may also be worth examining the equivalent SELECT statement during a busy period. Run this, substituting your real...
October 7, 2013 at 1:17 am
--------------------------------------------------------------------------------
-- Modified sample dataset
--------------------------------------------------------------------------------
DROP TABLE EMPTMS
CREATE TABLE EMPTMS
(Uidfirstname varchar (50),
Uidlastname varchar(50),
Reader int,
dtdate datetime);
SET DATEFORMAT YMD
INSERT INTO EMPTMS (uidfirstname, uidlastname, reader, dtdate) VALUES
('001','Alvin','1','2013-09-20 6:30:000 '),
('001','Alvin','2','2013-09-20 17:50:000 '),
('001','Alvin','1','2013-09-21 6:30:000 '),
('001','Alvin','2','2013-09-21 17:50:000...
October 4, 2013 at 7:23 am
Ohhh...thanks Wolfie. My code addresses hanging IN or OUT punches but not in this manner. I'll have a play.
The data set I posted up includes your extras and a few...
October 4, 2013 at 4:58 am
sharon27 (10/4/2013)
ChrisM@Work (10/4/2013)
Hi Sharon,reader 1 is IN, reader 2 is OUT?
yes sir..
Phew! That's going to help so much. Did you try the code I posted yesterday?
October 4, 2013 at 3:32 am
You need to cross join the calendar with the list of servers, like this:
;WITH Calendar AS (
SELECT
Server_range.ServerName,
Today = d.d,
Tomorrow = DATEADD(DAY, 1, d.d)
FROM dbo._dates d
CROSS APPLY...
October 4, 2013 at 3:04 am
sharon27 (10/4/2013)
October 4, 2013 at 2:19 am
You could use Jeff Moden's string splitter [/url]and pivot the result. Alternatively, if the number of columns is known up front, a CROSS APPLY cascade [/url]would be quicker.
October 4, 2013 at 1:18 am
shobanapraveen (10/3/2013)
Can any one help to get quick results while running query in PostgreSQL?when i run my query its taking such a long time due to huge data's in db.
Thanks,
Shobana
Have...
October 4, 2013 at 1:04 am
Viewing 15 posts - 3,931 through 3,945 (of 10,144 total)