coba ketik :
 
select * from baju
order by substr(kode_baju,1,1), kode_baju;
 
 

--- On Tue, 12/1/09, Mx7 <[email protected]> wrote:


From: Mx7 <[email protected]>
Subject: [indo-oracle] Mx7 - Urutan
To: [email protected]
Date: Tuesday, December 1, 2009, 2:19 AM


  



@all

iya thx semuanya .. dah saya coba pake commit agar data2 yang telah di update, 
delete, dsb ngga ilang lagi ..

ada pertanyaan lain soal urutan yang ditampilkan ....

saya coba ketik : 
select * from baju
order by kode_baju;

KODE_BAJU
------------ - 
B-0001 
B-0002 
B-0003 
B-0004 
J-0001 
J-0002 

pertanyaannya :
1. Gimana caranya agar hasilnya urutan yang J dulu, baru yang B... maksudnya 
seperti ini : 

KODE_BAJU
------------ - 
J-0001 
J-0002 
B-0001 
B-0002 
B-0003 
B-0004 

mohon bimbingannya ...
terima kasih banyak ...

[Non-text portions of this message have been removed]









      

[Non-text portions of this message have been removed]

Kirim email ke