Viewing 15 posts - 5,581 through 5,595 (of 14,953 total)
Things usually get quiet in these forums at this time of year.
December 28, 2010 at 6:22 am
Query the From and To dates into a single column, using a Union statement. I don't know the structure of your table, so can't help much with the details....
December 28, 2010 at 6:21 am
WayneS (12/27/2010)
GSquared (12/27/2010)
IF OBJECT_ID(N'tempdb..#Numbers') IS NOT NULL
DROP TABLE #Numbers;
CREATE TABLE #Numbers...
December 27, 2010 at 2:20 pm
I must be missing something if this won't work:
DECLARE @imported BIT;
SELECT @imported = null;
SELECT *
FROM #M_Vendor
WHERE DailysettlementYN = @imported
OR @imported IS NULL;
Change the value of the variable, as if it...
December 27, 2010 at 2:19 pm
Stephen, you do realize this question was from May, 2 years ago (2009), right?
December 27, 2010 at 2:13 pm
WayneS (12/27/2010)
declare @str varchar(500);
set @str = '| hello | world | I love...
December 27, 2010 at 2:11 pm
GilaMonster (12/27/2010)
Michael Valentine Jones (12/27/2010)
Does he post on SSC or some other web sites?Haven't seen him here, not in name or attitude.
He used to post on ExpertSexchange (sorry, I still...
December 27, 2010 at 1:50 pm
Yeah, that's SQL 2008 R2. It's not a patch, it's an upgrade, and that means you have to buy licenses for it and install them from media (disk or...
December 27, 2010 at 1:31 pm
CELKO (12/27/2010)
SQL has a CASE expression and think it is a CASE statement. Expressions return...
December 27, 2010 at 1:24 pm
SELECT LEFT(UserDesc, PATINDEX('%reports to%', UserDesc)-2)
from UserNames;
December 27, 2010 at 1:16 pm
Change:
select * from TableB where fname not in (select fname2 from TableA)
To:
select * from TableB where fname not in (select fname2 from TableA where fname2 is not null)
See if that...
December 27, 2010 at 1:14 pm
The first part is easy. It can be done in one Insert...Select if you just use the Row_Number() function.
IF OBJECT_ID(N'tempdb..#Numbers') IS NOT NULL
DROP TABLE #Numbers;
CREATE TABLE #Numbers (Number INT...
December 27, 2010 at 12:58 pm
Kit G (12/27/2010)
Richard Warr (12/24/2010)
Kit, I loved your song. I guess the UK has a higher proportion of atheists than the US...
December 27, 2010 at 12:37 pm
Viewing 15 posts - 5,581 through 5,595 (of 14,953 total)