Viewing 15 posts - 4,591 through 4,605 (of 6,036 total)
UPDATE E
SET StartDate = getdate(), StartedBy = 1
FROM EmpApp E
INNER JOIN dbo.fnSplitString(@list,',') L ON E.EmpId = L.VALUE
January 8, 2007 at 5:59 pm
Assume you cannot create computed columns on source table.
In this situation I would create a view with
LEFT(determinant, 5) as deter
and perform selects for reports from this view.
January 8, 2007 at 5:55 pm
SELECT
CASE GROUPING(deter) WHEN 0 THEN deter ELSE 'All' END,
COUNT(*)
FROM (SELECT LEFT(determinant, 5) as deter
FROM response_master_incident
WHERE determinant like '28%'
AND Response_Date between @d1 and dateadd(ss, -1,...
January 8, 2007 at 3:44 pm
Not to mention users should not create static tables.
Never.
January 6, 2007 at 5:10 pm
To order by emp_id, cons_id:
select emp_id, cons_id
from (select top 6 emp_id, cons_id
from rand_sample s
order by newid()) DT
order by 1, 2
January 5, 2007 at 2:55 pm
You must use alias:
delete A
from @a A
left outer join @b-2 as b
on A.col1 = b.col1
and A.col2 = b.col2
and A.col3 = b.col3
WHERE b.col1 IS NULL
January 5, 2007 at 3:40 am
This behaviour is defined by ANSI standard.
You need to read a little about NULLs.
NULL means "Don't know".
If the value is NULL then it may be 'O', but it...
January 4, 2007 at 2:55 pm
In order to display something you need to retrieve it from somewhere.
Where those not mentioned days suppose to be taken from?
January 4, 2007 at 6:43 am
It must be rather something like this:
SELECT count(P.ID) as Persons,
count(M.ID) as Members,
count(P.ID) - count(M.ID) as NonMembers
FROM dbo.Person P
LEFT JOIN dbo.Membership M ON M.PersonID = P.ID
January 3, 2007 at 4:20 pm
So if someone will ask you to help to commit suicide and blow up some people around will you give him a hand?
If some guy will need a cover while...
January 3, 2007 at 4:25 am
Looks like some implicit conversion involved, e.g. when using ISNULL or CHARINDEX.
But without some relevant information cannot make any conclusions.
January 2, 2007 at 6:23 pm
TreatyID = substring(TreatyNumber, 6, 1)
is an actual query.
January 2, 2007 at 3:13 pm
So, what is your problem?
You don't know how to use SUBSTRING?
January 2, 2007 at 2:34 pm
Viewing 15 posts - 4,591 through 4,605 (of 6,036 total)