Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

i have a table #temp1(id, Name groupname ) and record
like this 1 R1 S
2 R3 S
3 R2 S
4 R4 D
5 R5 D
6 R6 K
7 R7 K
8 R8 L
9 R9 L
10 R10 L
11 R11 K

and i want to display record based on user defind sorting
order e.g.
1 R4 D
2 R5 D
3 R6 K
4 R7 K
5 R11 K
6 R1 S
7 R3 S
8 R2 S
9 R8 L
10 R9 L
11 R10 L

Answer Posted / archana

Select * from #emp Order by id,Groupname

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What the different components in replication and what is their use?

952


What is user-defined function?

970


Does group by sort data?

897


What is replace and stuff function in sql server?

1065


Do you know the cursor types?

1156


What is microsoft sql server?

973


What is store procedure? When do you use?

933


How many servers can we create in a single subscription?

162


What command is used to create a database in the sql server and how?

1177


What is merge statement?

1079


Explain the purpose of indexes?

976


Explain system rowset functions?

998


Why you need indexing? Where that is stored and what you mean by schema object? For what purpose we are using view?

910


When cursors are useful?

1100


Explain different forms of normalization?

944