By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,856 Members | 2,149 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,856 IT Pros & Developers. It's quick & easy.

SQL Server Formula

P: 1
Hi,

I have a database with some tables in Sql Server 2005. I want to make a stored procedure/T-sql/... or smth like that, to set a formula of a certain table. For example, I have the table "Orders", with fields like: "OrderID", "Name", "Price", "Quantity", "Height". Then I select from a web form which operands to be included in the formula and I select also one operator.

For example, for the above table, I select Price and Quantity operands and the "+" operator, then I want my query to return Price + Quantity; but I want to can use that query also for other operators and other operands (and not only 2 operands, I want to can use it with 2 or more operands).

I appreciate your replies.
Thank You,
Tabita
Jan 16 '09 #1
Share this Question
Share on Google+
1 Reply


ck9663
Expert 2.5K+
P: 2,878
Sounds like an assignment.

What do you have so far?

-- CK
Jan 16 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.