Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
SinggahDapur SinggahDapur is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 348
Rep Power: 14
SinggahDapur mempunyai hidup yang Normal
Default [ask]sql query

gan,misalny gua punya query keq gini..



SELECT abc,cde, 'jumlah' = CASE WHEN abc is null then 0 else (qty1-qty2) end



trus misalny gua mau tambahin 1 kolom lagi, misalny namany "total".

total = jumlah + cde



gua coba keq gini tp kolom jumlah invalid katanya

SELECT abc,cde, 'jumlah' = CASE WHEN abc is null then 0 else (qty1-qty2) end, (jumlah+cde) as total





gimana yah carany?

thanks



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 09:41 PM.


no new posts