Viewing 15 posts - 1 through 15 (of 22 total)
45 years since I did algebra at college.
Thanks so much for the refresher guys.
Don't you just hate it when you cant see the wood for the trees.
October 1, 2020 at 4:28 pm
Yep but how do we calculate Sell knowing Cost , FeeMargin and Margin
October 1, 2020 at 2:54 pm
Assuming Cost = 500, FeeMargin = 10% and NettMargin = 5%
Sell - Cost - (Sell * FeeMargin) / Cost = NettMargin
Sell -500 - (Sell * 0.10) / 500 = 0.05
The...
October 1, 2020 at 2:29 pm
Phil
I am struggling to explain this, hence a valid result in the table.
I need to calculate the sell price by changing the nettmargin
The cost and FeeMargin will persist. The fee...
October 1, 2020 at 1:44 pm
Hi
Bum data
INSERT #test (tid,data1,data2) VALUES(1111,'foo','foo')
INSERT #test (tid,data1,data2) VALUES(1211,'foo','foo')
INSERT #test (tid,data1,data2) VALUES(1311,'foo','foo')
INSERT #test (tid,data1,data2) VALUES(1111,'foo','foo')
Should read
INSERT #test (tid,data1,data2) VALUES(1111,'foo','foo')
INSERT #test (tid,data1,data2) VALUES(1211,'foo','foo')
INSERT #test (tid,data1,data2) VALUES(1311,'foo','foo')
INSERT #test (tid,data1,data2) VALUES(1411,'foo','foo')
December 6, 2012 at 5:50 am
toddasd
Bingo, thank you so much.
This is part of a database sync system. The commands are built inside a stored procedure they are not stored in tables, just the...
December 5, 2012 at 10:50 am
Yes i need to run the results of the SELECT 'DELETE..... statement
DELETE FROM #test where tid =1111 ...
December 5, 2012 at 10:42 am
arunyadav007
That only seems to execute the last statement.
I guess i need to somehow loop the results.
Alan
December 5, 2012 at 10:34 am
Jeff
I mentioned that there were too many recursions using a second cte, and ordering the tree was nigh on impossible.
We have a solution (or perhaps a botch).
We have created...
October 19, 2011 at 12:27 am
Jeff
All your assumptions are correct. We can probably expect one or two changes to the tree per month.
I am currently working on an iterative loop to rebuild the tree data...
October 17, 2011 at 11:48 pm
Jeff
The tree displays the categories for the result of either a product or manufacturer search for a website.
One solution we came up with was to number each branch from the...
October 17, 2011 at 4:26 am
Thanks for all the replies.
The first CTE is being populated bottom up. i.e. we are passing in a list of branch nodes and getting back each node to the root.
However...
October 17, 2011 at 1:40 am
Lutz
OK so I now have to eat my hat!
The results were correct as I imagined they should be. The results were incorrcet as SSMS was truncating the data I was...
February 23, 2010 at 9:37 am
Lutz
I am trying to replace the carriage returns with <br /> to display in html.
Increasing the size of the results text now gives me the desired results for the select...
February 23, 2010 at 9:29 am
Viewing 15 posts - 1 through 15 (of 22 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy