Viewing 15 posts - 286 through 300 (of 790 total)
Alvin Ramard (6/18/2009)
Dugi (6/18/2009)
Alvin Ramard (6/18/2009)
GilaMonster (6/18/2009)
Dugi (6/18/2009)
And your vote is ...?Neither. As I said in the other thread. Apples and grapefruit.
Exactly!
A great apple should be better than a bad...
June 18, 2009 at 7:39 am
Yep nice solution here without UNION! Nice analyzing Chris!
June 18, 2009 at 7:29 am
ALZDBA (6/18/2009)
that depends on your needs !Do you need an aircraft or a T-bone steak ?
And your vote goes for ...? - http://www.sqlservercentral.com/Forums/Topic737392-61-1.aspx
June 18, 2009 at 7:27 am
Alvin Ramard (6/18/2009)
GilaMonster (6/18/2009)
Dugi (6/18/2009)
And your vote is ...?Neither. As I said in the other thread. Apples and grapefruit.
Exactly!
A great apple should be better than a bad grapefruit and a...
June 18, 2009 at 7:25 am
Grant Fritchey (6/18/2009)
June 18, 2009 at 7:01 am
thetodaisies (6/18/2009)
please try this. the union is used to get the last record which wll not be returned in the first query
select a.* from
(select ROW_NUMBER() OVER (ORDER BY...
June 18, 2009 at 6:49 am
Yes, correct also I tried to order by item now is correct! But if you compare the first result set with the last one no the same results.
June 18, 2009 at 6:40 am
I can not see where did you change your code in your last post but again no same results as simon wants !!!
As I can see and little bit analyzing...
June 18, 2009 at 6:25 am
_simon_ (6/18/2009)
Maybe this is better representation of actual data:
if object_id('tempdb..#temp') is not null drop table #temp
create table #temp (item varchar(10), price1 money, price2...
June 18, 2009 at 5:34 am
GilaMonster (6/18/2009)
Also posted here - http://www.sqlservercentral.com/Forums/Topic737277-61-1.aspx
Ok, here is just the poll and results what others vote for!
And your vote is ...? - I'm sure that will be the MVP -...
June 18, 2009 at 5:19 am
Christopher Stobbs (6/18/2009)
CREATE TABLE MyTable
(Id INT,
CustomerId INT,
ImageName VARCHAR(100))
INSERT INTO MyTable
SELECT 1,123,'123_X.jpg' UNION ALL
SELECT 2,123,'123_Y.jpg' UNION ALL
SELECT 3,456,'456_X.jpg' UNION...
June 18, 2009 at 5:11 am
Pyay Nyein (6/18/2009)
SELECTItem, price1, price2, date
FROM#temp
WHEREdate = (select max(date) from #temp)
UNION
SELECTdistinct T.Item, T.price1, T.price2, (case when (T.price1 = C.price1andT.price2 = C.price2) then C.Date else t.Date end)
FROM#temp...
June 18, 2009 at 5:02 am
GilaMonster (6/18/2009)
June 18, 2009 at 4:54 am
No the output results are very unknown and no sense why these results...more explanation if you want the correct solution for what you are looking!
:hehe::w00t::hehe:
June 18, 2009 at 3:54 am
I don't like triggers very much and try to keep them away if possible
I agree with Florian ...but sometimes they are very nice objects to control (delete, insert or update)...
June 17, 2009 at 7:29 am
Viewing 15 posts - 286 through 300 (of 790 total)