473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

arrange by user wish

i want to arrange a particular field data in user desired order like A,S,B,.... in a query
Oct 5 '09 #1

✓ answered by ssnaik84

use select...where and union

Expand|Select|Wrap|Line Numbers
  1. select * from table_name where column_name like 'a%'
  2. union
  3. select * from table_name where column_name like 's%'
  4. union
  5. select * from table_name where column_name like 'b%'

2 1990
ssnaik84
149 100+
use select...where and union

Expand|Select|Wrap|Line Numbers
  1. select * from table_name where column_name like 'a%'
  2. union
  3. select * from table_name where column_name like 's%'
  4. union
  5. select * from table_name where column_name like 'b%'
Oct 6 '09 #2
thank youuuuuuuu. . .i'll try & let u know
Oct 6 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Roland Simon | last post by:
I'm developing an app with several modules an lots of different windows shown in the fashion of windows explorer / outlook. To the left is a list view control, to the right the user can view or...
0
by: Shailaja Kulkarni | last post by:
Hi All, I am new to component development. I want to create custom control to arrange contained controls in form of polygonal shape. The objects are placed in separate panel on the some form....
0
by: What-a-Tool | last post by:
Ended up using the following to hide unwanted columns and set the width of a column. Now I want to re-arrange the displayed order of the columns, so I tried creating another table style and adding...
4
by: nafri | last post by:
I have array of arrays. I need to arrange them in an increased order of their element 0 Here is what i want. dim InputArray()() = {{2,0,0},{1,0,0},{6,0,0},{3,0,0}} and this is the output...
3
by: rakesh_nits | last post by:
Hi All, Is there any way by which we can know which particular arrangement of files and folders is being selected by a user in a particualr folder view.I mean that among the five...
4
by: rcamarda | last post by:
I wish to use something other than sql's SA account user to connect to my data warehouse, so I created a user in our active directory user. Ill use dw as the new user as example. after I created...
4
by: Sofianos George | last post by:
How can i turn off auto arrange icons?
3
by: Dave Kelly | last post by:
c#, .Net 2.0, VS2008 I have a user control, and wish to embed other custom/user controls within this control. I am getting problems in compilation though, that the type or namespace cannot be...
0
tuxalot
by: tuxalot | last post by:
I have a text file showing files in directories. The text file looks like this: "C:\folderA\file1.zip" "C:\folderA\folderB\folderC\file2.zip" "C:\folderA\folderE\folderX\folderU\file3.zip" ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.