Viewing 15 posts - 16 through 30 (of 38 total)
itpcpro (11/9/2011)
November 9, 2011 at 2:48 pm
itpcpro (11/9/2011)
November 9, 2011 at 2:14 pm
I realize this statement has a lot of date functions, but it will return a datetime for the day before at 5 pm.
DATEADD(hh, 17, DATEADD(dd, DATEDIFF(dd, 0, GETDATE())-1, 0))
November 9, 2011 at 12:57 pm
I have seen this used many times as well. It basically satisifies the syntax requirement of the "JOIN" clause without any joining fields. Produces same result as a "cross join".
November 9, 2011 at 11:01 am
applebyte (11/9/2011)
--
Msg 102,...
November 9, 2011 at 9:49 am
it appears this is a case of needing to "embed" the single quotes within a quoted string. Anytime a sql statement is embedded in a "string" all items normally single-quoted...
November 9, 2011 at 9:13 am
In your example, use "NOT LIKE" instead of "<>".
Does this correct the issue?
November 8, 2011 at 12:13 pm
Well, I suppose it would be preference. I would say in your situation that the import/export wizard may be a faster method to get the data copied. If you are...
November 8, 2011 at 11:38 am
Breakwaterpc (11/8/2011)
November 8, 2011 at 9:35 am
Breakwaterpc (11/8/2011)
First off, where is this variable "NewValue" getting used once it's cast? Doesn't appear anywhere in the...
November 8, 2011 at 9:08 am
Also, when you concatenate the data together, do you require any separators such as a Space or Period?
Here is a sample to get you started.....
USE CIVIL
GO
UPDATE r
SET comments =...
November 8, 2011 at 8:41 am
LOLCatLady (11/2/2011)
The INNER JOIN below with the select is pulling the correct data,...
November 7, 2011 at 11:02 am
skanth (11/7/2011)
select *
from
a,b,c
where
A.cash_id in
( select B.cash_id
from B
where B.cash_id = C.cash_id
)
Based on your query, all three...
November 7, 2011 at 9:14 am
Where I work, I started this same type of operation based on suggestions of other people while our tables were smaller. After a while, I realized this was not the...
November 5, 2011 at 12:57 pm
Viewing 15 posts - 16 through 30 (of 38 total)