Jump to content

[SOLVED] Order BY- two columns of different types in mysql


avvllvva

Recommended Posts

Hi,

I needs help in following Mysql issue.

 

I have a table of two columns 'col_code(varchar)' , 'col_num(bigint)'. For more clarification I'm giving sample datas to the table

 

col_code  col_num

AG-123      123

AG-88        88

EX-16        16

EX-220        220

AG-10        10

 

I needs to display the datas in following order :- AG-10, AG-16, AG-123, EX-16, EX-220

ie; first order by Alabetical and then numerical.  Is it possible with these two columns. If yes, how can I write the sql statement with the order clause .. ??

 

Please help...........Thanks in advance.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.