Viewing 15 posts - 3,001 through 3,015 (of 3,957 total)
SQL Padawan (8/20/2012)
SELECT DISTINCT @holder1 = s1.SaleID,@holder2 = LocationID
FROM #Sale s1
INNER JOIN #SaleLocationXref SLX1 ON S1.SaleID = SLX1.SaleID
INNER...
August 20, 2012 at 7:17 pm
Jeff Moden (8/20/2012)
August 20, 2012 at 6:21 pm
laurie-789651 (8/20/2012)
If you want to convert many rows you could also use CROSS APPLY.
Did you mean PIVOT?
August 20, 2012 at 4:31 am
Just a guess here but it looks like your data is trying to define a matrix of values with row and column delimiters of | and ^?
In that case, I'd...
August 19, 2012 at 9:35 pm
No longer an enigma! This explains it pretty well.
I guess I'm going to need to read up some on collations.
August 19, 2012 at 7:43 pm
Are you trying to get the mean (average) or median?
And why is B 7 and not 6?
August 19, 2012 at 7:38 pm
I took a shot at it with this:
;WITH Sale AS (
SELECT a.SaleID, a.SaleStart, a.SaleEnd, b.LocationID, c.ItemID
FROM #Sale a
JOIN...
August 19, 2012 at 7:30 pm
Jeff Moden (8/17/2012)
August 18, 2012 at 12:44 am
ChrisM@Work (8/17/2012)
HowardW (8/17/2012)
update xys set submitdate=NULL where id in ('1','2'.........'100')
I feel I must be missing...
August 17, 2012 at 4:08 am
vinu512 (8/17/2012)
dwain.c (8/17/2012)
Look at BOL: http://msdn.microsoft.com/en-us/library/ms188001(v=sql.105).aspxDoes the first example on that page do what you want?
If not, perhaps I'm misunderstanding.
Yes, that's the article I read to start with this. I...
August 17, 2012 at 4:01 am
Operating only with stone knives and bearskins at my disposal, I offer you this:
create table #emp(ename varchar(34),job char(33),sal varchar(22))
insert into #emp values('sa','sales','400')
insert into #emp values('ka','manager','4000')
insert into #emp values('sam','Markting','2500')
insert into #emp...
August 17, 2012 at 3:31 am
raghuldrag (8/17/2012)
not working the ROW_NUMBER(), and DENSE_RANK() function in server 2000
Correct. They are SQL 2005 features and this is a SQL 2008 forum.
August 17, 2012 at 3:14 am
demonfox (8/17/2012)
for 2005 to 2008 you are good to go , for 2000...
August 17, 2012 at 2:38 am
ChrisM@Work (8/17/2012)
dwain.c (8/16/2012)
Lynn Pettis (8/16/2012)
Here is one for the do not hire list.Or it could be the needs much training list.
The quality of the hires will be roughly proportional to...
August 17, 2012 at 2:36 am
From the T-SQL perspective IMHO, the MERGE statement, table value constructors (TVC) and grouping sets are probably what I'd consider the most interesting. Add to that maybe User-defined table...
August 17, 2012 at 1:44 am
Viewing 15 posts - 3,001 through 3,015 (of 3,957 total)