SQL question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 2 columns that i need to subtract together then display that result in
my datagrid, how can i do this in my SQL statement?

ex:
I need:

Begining_Cars - Sold_Cars = Remaining_Cars

and display Remaining_Cars in my grid
 
select Beginning_Cars - Sold_Cars as Remaining_Cars
from TableName
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top