Viewing 15 posts - 1 through 15 (of 35 total)
Hi,
There is a maximum of three occurrences.
I want the output to be the numbers separated by a comma.
07999999999, 07888888888
Thanks,
Paul
November 21, 2019 at 1:54 pm
Hi Phil,
That does work for extracting one number but I was hoping there is a solution if the column contains multiple numbers begining with 07.
Can you think of a way?
Thanks...
November 21, 2019 at 1:42 pm
Hi,
Sorry I've worked it out.
ON CAST(CONVERT(DATETIME, tk.[Start], 103) AS time(0)) < it.RangeEnd
...
June 14, 2019 at 9:27 am
Hi DesNorton,
Thank you so much for this! It's a massive help and works when creating the task temp table.
I am not able to get the script working with the amendments...
June 14, 2019 at 9:23 am
This was removed by the editor as SPAM
June 14, 2019 at 9:20 am
thank you ever much ThomasRushton!
January 12, 2017 at 6:02 am
Perfect thanks. It worked and was really simple.
October 26, 2016 at 8:29 am
Hey,
Thanks for the replies. I will let you know when I am back on the server tomorrow.
Paul
October 25, 2016 at 12:08 pm
I managed to solve it.
SELECT O.ow_id
FROM props.dp_owner O
JOIN props.dp_entry E
...
October 25, 2016 at 8:20 am
Hi,
Sorry in more detailed terms;
There is a table with items, these are linked with owners through the entry table.
One owner can have multiple items and each of the items have...
October 25, 2016 at 8:02 am
For example here;
SELECT * INTO ##BankStaffTemp
FROM (
SELECT
RIGHT([Cost Centre],5) AS 'Cost Centre'
,SUM([WTE Worked]) AS 'Total WTE Worked'
FROM [MCT-BIT-LIVE01].[MCT_STG].[dbo].[Staging_Finance_Extra_Staffing]
WHERE FinancialYear = YEAR(@startdate)
AND FinancialPeriod = @fp
GROUP BY RIGHT([Cost Centre],5) ) T2
July 27, 2016 at 9:43 am
The SP is 220 lines long and uses all the params that are set at the top which I showed before.
July 27, 2016 at 9:42 am
This is the SP for the main dataset. What happens is month and year are entered through SSRS to the SP at this point 3 more parameters are based on...
July 27, 2016 at 9:29 am
I have changed the SP to include OUTPUT and no luck.
ALTER PROCEDURE [dbo].[USP_Report_Vacancy_Monitoring_Wards] @month VARCHAR(MAX), @year VARCHAR(MAX), @startdate DATE OUTPUT, @enddate DATE OUTPUT, @fp VARCHAR(MAX) OUTPUT
AS
SET @fp = (SELECT MAX(FYMonthNumber)...
July 27, 2016 at 9:18 am
Viewing 15 posts - 1 through 15 (of 35 total)