Ask your own question, for FREE!
Computer Science 5 Online
OpenStudy (anonymous):

Have a quick question on SQL Server

OpenStudy (anonymous):

I have done some SQL Server. Alot more on larger DB's like Netezza, Oracle. Whats your question ?

OpenStudy (anonymous):

Alright Lets see how to word this. I am very new to SQL server but I have created a table that holds a customers Credit Limit and there balance. Is there a function way for me to show how much the customer is over their credit limit

OpenStudy (anonymous):

is there a function or a way*

OpenStudy (anonymous):

more of a way using SQL of course. So lets say the table is customer ( credit_limit int, balance int, customer_name varchar(50)). I would say select customer_name, balance-credit_limit as over_amount from customer where balance > credit_limit;

OpenStudy (anonymous):

we aren't using any database functions yet just some math functions and criteria to limit the rows from the table

OpenStudy (anonymous):

oh ok so SQL does have some math functions you can use though right?

OpenStudy (anonymous):

all databases have math functions. I use Netezza as a DBA and there are functions that are included. Sql Server has math functions as well. Most of the functions that DB's have are defined in the ANSI SQL standards. Most databases comply with those standards and make them accessible.

OpenStudy (anonymous):

Ok Sweet thank you!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!