Viewing 15 posts - 12,106 through 12,120 (of 15,379 total)
Taking a guess that is the first version you are looking for.
Something like should get you started.
;with CityData(City, Country) as
(
select 'Madrid', 'USA' union all
select 'Madrid', 'Spain' union all
select 'Madrid', 'Brazil'...
May 2, 2012 at 3:29 pm
soulchyld21 (5/2/2012)
Evil Kraig, yes that is simmilar to what Im looking for!!Unfortunately its not as simple as the wrong data as suggested by the 2nd poster!
Which version of Kraig's is...
May 2, 2012 at 3:24 pm
In your description you said you wanted Country but in your code you used ContactName. Could it be as simple as using the correct column?
May 2, 2012 at 2:56 pm
The "Having" clause allows you to do "Where clause" type stuff on aggregates, like Max(), Min(), Avg(), and so on.
sheesh in looking at my post I could have been a...
May 2, 2012 at 1:38 pm
This looks an EAV type of system with the addition of datatype?
May 2, 2012 at 1:16 pm
Jaat (5/2/2012)
May 2, 2012 at 1:06 pm
DBA_SQL (5/2/2012)
I Tried the following update statement, but it didn't worked.
update scramble
SET FNAME = T1.Fname,
LNAME =T2.Lname
FROM(
SELECTFNAME,
ROW_NUMBER() OVER (ORDER BY NEWID()) AS recID
FROMSCRAMBLE
) AS t1
INNER JOIN(
SELECTLName,
ROW_NUMBER() OVER (ORDER...
May 2, 2012 at 12:39 pm
Duplicate post...ignore this thread and instead view the one with an answer.
http://www.sqlservercentral.com/Forums/Topic1294098-1550-1.aspx
May 2, 2012 at 12:19 pm
LOL. did that get it for you then?
May 2, 2012 at 11:06 am
Lynn Pettis (5/2/2012)
patrickmcginnis59 (5/2/2012)
Sean Lange (5/2/2012)
patrickmcginnis59 (5/2/2012)
Sean Lange (5/2/2012)
May 2, 2012 at 10:54 am
It can get really difficult to test this fairly easily. It is difficult to test the second proc. You have to go back and figure out how to create the...
May 2, 2012 at 10:50 am
polkadot (5/2/2012)
This CAST solution retrieve the whole year YYYY. I need YY.
So get the right 2.
May 2, 2012 at 10:42 am
Viewing 15 posts - 12,106 through 12,120 (of 15,379 total)