SQL Table query

atuljadhavnetafim

Active Member
Joined
Apr 7, 2012
Messages
341
Office Version
  1. 365
Platform
  1. Windows
Dear Expert

i have one table "AR" in SQL Server, and in that table one column is there named "Arrear"
this column contain positive and negative numner like
123, 43, 54, 0, -34, -56, -678
now i want to bifurcate this number in category like
if the bumber >=0 then category will be "OD"
if the number <0 then category will be "FD"
i have one blank extra column in my data base, or we can create new column with above condition

but how

please help me
 
What part are you not clear about? Can you post the SQL you used to create the view?


i am still not clear how to update OD_FD column based on another column, please explain in detail step by step
and SQL forum not replying on this
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
i am still not clear how to update OD_FD column based on another column, please explain in detail step by step
and SQL forum not replying on this

If you want to add the column to your view, then can you post the SQL that was used to create the view? You need to have a grasp of some of the basics for this, it is not going to be practical to walk through every step.
 
Upvote 0

Forum statistics

Threads
1,215,455
Messages
6,124,938
Members
449,197
Latest member
k_bs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top