Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
mibheenick
Starting Member
12 Posts |
Posted - 2005-09-12 : 01:22:45
|
| Hi everyone!btw thanx for last time Madhivananhere's my little problem. I wanna get the records in the order i specify in the last line of the query! As it is, the query does not run, it gives me an error.Declare @LangueClient as varchar(2)select @LangueClient = 'DE'select * from TexteImpressionwhere CodeImpression = 1328 and RangImpression = 9and CodeLangue in (@LangueClient, 'fr', 'EN')order by CodeLangue (@LangueClient, 'fr', 'EN')Thanx in advance...I leave it to god..... |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-09-12 : 01:30:11
|
>>btw thanx for last time MadhivananThanks I think you need something like thisOrder by case when CodeLangue = @LangueClient then 1 when CodeLangue ='fr' then 2 when CodeLangue ='EN' then 3 endMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|