Viewing 15 posts - 2,371 through 2,385 (of 13,851 total)
You can use MAX to make this work:
SELECT t.ID
,MAX(t.LegalName)
,MAX(t.City)
,MAX(t.Zip)
FROM...
October 1, 2020 at 3:22 pm
Assuming Cost = 500, FeeMargin = 10% and NettMargin = 5%
Sell - Cost - (Sell * FeeMargin) / Cost = NettMargin
Sell -500 - (Sell * 0.10) / 500 =...
October 1, 2020 at 3:04 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...
October 1, 2020 at 1:55 pm
Your TEST table appears to include all of the items which you are trying to calculate, making this a little difficult to fathom.
What are the inputs to the problem and...
October 1, 2020 at 1:08 pm
Heh... "The OP has left the building". 😀
Too busy trying to cool down their server CPUs after all those wildcard searches, no doubt.
September 30, 2020 at 5:39 pm
Hi Phil,
Any idea how i change your script to use my actual values in my table columns? - Sorry my sql is fairly poor
Here's the same example using a...
September 30, 2020 at 2:31 pm
Here is another possibility, which separately adds the hours and minutes to the starting date:
DECLARE @d DATETIME = '20201120';
DECLARE @i SMALLINT = 725;
SELECT @d
, ...
September 30, 2020 at 2:12 pm
Is the package deployed to SSISDB? Did you use the project or package deployment model? Do you use project parameters or connections?
September 29, 2020 at 2:31 pm
Thanks, Sue
I tracked down the only version of RegSvr.XML I could find on my machine and it does not appear to hold the same list of registered servers which I...
September 28, 2020 at 7:25 pm
And where are you expecting the messagebox to be displayed?
Change your simple script such that it does not require any sort of UI interaction and you should find that it...
September 28, 2020 at 2:31 pm
You would probably do something like this:
DECLARE @LatestExpiredDate DATETIME = DATEADD(d,-1,GETDATE())
SELECT * FROM Book_Reservation br
WHERE @LatestExpiredDate >= br.reservation_To_date
This sets a temporary variable to the date/time of 'now'...
September 27, 2020 at 6:30 pm
I appreciate that you are dealing with sensitive data, but are you able to put together some example data – which could be completely nonsensical – along with desired results?...
September 25, 2020 at 6:04 pm
Are you saying that the column you are searching may contain two numbers (eg, '123|456') or that the user may enter two numbers and you want to search for both...
September 24, 2020 at 2:56 pm
What is your question?
September 24, 2020 at 2:24 pm
Viewing 15 posts - 2,371 through 2,385 (of 13,851 total)