Viewing 15 posts - 481 through 495 (of 2,007 total)
Alexander-449406 (10/3/2012)
October 3, 2012 at 8:57 am
dwain.c (10/3/2012)
Jason-299789 (10/3/2012)
October 3, 2012 at 6:54 am
I've answered the counting question before. I didn't get the job in the end, but I suspect it was due to experience rather than interview technique (when I asked them...
October 3, 2012 at 5:30 am
Mac1986 (10/1/2012)
DECLARE @XHours INT = 2160
SELECT StartDateTime=DATEADD(day, DATEDIFF(day, 0, WQ.WorkQueueEndWorkDate), 0),WQ.WorkQueueEndWorkDate as 'EndDateTime'
FROM...
October 1, 2012 at 7:16 am
I've had a backup of a DB linked to me in a PM once or twice.
Same as Gail, I'll generally just tell them that questions should be posted in the...
October 1, 2012 at 2:17 am
t.brown 89142 (10/1/2012)
e.g.
SELECT CONVERT(VARCHAR(10), GETDATE(), 120) -- get...
October 1, 2012 at 2:04 am
sqlrd22 (9/19/2012)
That worked great, thank you. I'm slowly learning..
Glad it worked. Check this link for other formatting options for datetimes. Bear in mind that this is generally slower than a...
September 19, 2012 at 4:35 am
I guess the easiest thing to do would be to change your query to this: -
SELECT *
FROM [dbo].[DATAFLOW_CLOB]
WHERE RAW_CLOB LIKE 'AAA|E0221002|_|'+CONVERT(VARCHAR(8),GETDATE(),112)+'%ecp%';
You should look into string splitting, as well.
September 19, 2012 at 3:57 am
Sample data used: -
SELECT EID,AbsenceType,AbsenceStartDate,AbsenceEndDate
INTO #yourSampleData
FROM (VALUES(769,'Holiday','2012-06-25 00:00:00.000','2012-06-25 23:59:59.000'),
(769,'Holiday','2012-06-26 00:00:00.000','2012-06-26 23:59:59.000'),
...
September 19, 2012 at 3:12 am
September 18, 2012 at 6:57 am
skizzly (9/18/2012)
note taken on guidelines for posting 🙂
Very new to SQL and never used the APPLY operator. So learning hard and fast, or least trying to. Only one...
September 18, 2012 at 4:56 am
skizzly (9/18/2012)
new here so be kind....:)
I have a task to identify all students in a dataset of 49K that have multiple open attendances at schools.
I can pull all students...
September 18, 2012 at 3:46 am
ben.brugman (9/17/2012)
Thanks for the script en the results from the script. I have added some results. (Using 2 distinct machines and using two runs on each).
Used the script of...
September 17, 2012 at 6:26 am
ben.brugman (9/15/2012)
with a as ( select 123 as n union all...
September 17, 2012 at 1:43 am
ChrisM@Work (9/14/2012)
dwain.c (9/13/2012)
;WITH SourceNums AS (
SELECT num FROM (VALUES (1),(2),(5),(7),(8),(9)) a (num)
), MyNums AS (
SELECT num=a.num + 10*b.num +...
September 14, 2012 at 3:41 am
Viewing 15 posts - 481 through 495 (of 2,007 total)