Viewing 15 posts - 9,826 through 9,840 (of 26,489 total)
Steve Jones - SSC Editor (9/4/2012)
OK, not my day. Not sure how to break the news here that this person is in way, way, over their head.http://www.sqlservercentral.com/Forums/Topic1353224-2799-2.aspx#bm1354093
Not who I thought...
September 4, 2012 at 1:34 pm
Luis Cazares (9/4/2012)
select
program,
Completed_task,
timestamp
from
WorkQueue
where type IN ('Software', 'Hardware', 'Software/Hardware')
and status...
September 4, 2012 at 1:15 pm
Should do something like this:
with basedata (
name,
addy,
ph,
grade
) as (
select
name,
...
September 4, 2012 at 1:12 pm
Have you looked at DATETIME2 and TIME? They can go to 7 decimal places in precision and DATADIFF will go to nanoseconds if I remember correctly. Also, I...
September 4, 2012 at 1:03 pm
SQL_NuB (9/4/2012)
Lynn Pettis (9/4/2012)
SQL_NuB (9/4/2012)
Lynn Pettis (9/4/2012)
How do you decide what date you want from your data?
that date is in the table, so when I do select max(timestamp) from workqueue,...
September 4, 2012 at 12:18 pm
Sean Lange (9/4/2012)
sivajii (9/4/2012)
http://www.sqlservercentral.com/articles/Indexing/68439/
here i didn't understand
if there is an simple example means i can i understand easily
select * from sys.indexes
select * from sys.index_columns...
September 4, 2012 at 12:14 pm
Or something like this:
select
program,
Completed_task,
timestamp
from
WorkQueue
where
((type = 'Software' and status = 'Active')...
September 4, 2012 at 12:07 pm
SQL_NuB (9/4/2012)
Lynn Pettis (9/4/2012)
How do you decide what date you want from your data?
that date is in the table, so when I do select max(timestamp) from workqueue, that's the most...
September 4, 2012 at 11:54 am
How do you decide what date you want from your data?
September 4, 2012 at 11:50 am
Depending on your data, since we are now in September, and you want data for say 2012-08-29 where you may have data from before and after this date you may...
September 4, 2012 at 11:47 am
eugene.pipko (9/4/2012)
--------------
Msg 241, Level 16, State 1, Line 9
Conversion failed when converting date and/or time...
September 4, 2012 at 11:42 am
Give this a try. Any questions, please ask.
create table #temp
(SchoolName varchar(12),
GradeCode int);
insert into #temp values ('SchoolName', 1);
insert into #temp values ('SchoolName', 2);
insert into #temp values ('SchoolName', 3);
insert into...
September 4, 2012 at 11:21 am
Both do the same for me:
with testdata as ( -- this cte is only used to provide the test data for the code below
select
cast(dt.MyTime as time)...
September 4, 2012 at 10:26 am
eugene.pipko (9/4/2012)
Trying to use your last solution in the query and get an error:
--------------
Msg 241, Level 16, State 1, Line 9
Conversion failed when converting date and/or time from...
September 4, 2012 at 10:21 am
After seeing Luis's code, retested mine without the stuff, it still works:
with testdata as ( -- this cte is only used to provide the test data for the code below
select
...
September 4, 2012 at 10:10 am
Viewing 15 posts - 9,826 through 9,840 (of 26,489 total)