Viewing 15 posts - 1 through 15 (of 41 total)
This works perfectly, I can't thank you enough 🙂 🙂
The Order by clause if from the Outer query, it's working fine when included as well.
June 25, 2014 at 8:18 am
The Select below returns the same results as the one I first posted. Just rows with values for the filtered dates
SELECT
ot.OperationalTypeAlternateKeyAS [OperationalTypeAlternateKey]
,ot.OperationalTypeAS [Entry Type]
...
June 25, 2014 at 6:45 am
I would like to see the OperationalTypeKey and the OperationalTypeName for those columns with no counts, the dates can be defaulted to the filter date, just to show that there...
June 25, 2014 at 6:18 am
The script was inherited, I'm not sure why the no lock hint was used especially on temp tables and the others is data warehouse tables that are used by other...
June 25, 2014 at 5:14 am
Here's the required output, at the moment the rows with 0 counts are not returned:
For example If I'm running the report for the dates below, I would like to see...
June 25, 2014 at 3:37 am
Thanks Lorrin, this works perfectly. I used the WHERE Clause 🙂
June 5, 2014 at 12:30 am
Thank you 🙂 I'll try your solution..
November 21, 2013 at 7:37 am
Thanks for your suggestions, I'll have a look and improve my script.
Regards Teee 🙂
November 20, 2013 at 10:31 pm
Hi,
Thanks for your response, I've managed to come up with a solution to split the dates:
-- Get comparison dates
Create Table #TempComparison(dteDateComparison varchar(36), bitProcessed bit)
IF (@dteDateComparison <> '')
Insert Into #TempComparison...
November 20, 2013 at 6:24 am
I've joined the inserted table to the actual table as it's using a text column and it works perfectly. Thanks
ALTER TRIGGER trDtlIncident ON dbo.dtlIncident
AFTER INSERT
AS
IF EXISTS...
November 14, 2013 at 2:52 am
Thank you, I'll try your suggestions 🙂
November 14, 2013 at 2:36 am
Thanks I'll have a look, I have found a temp work around in the meantime. 🙂
August 22, 2013 at 8:11 am
Lol! it actually worked when I used IN instead of = but the data that was returned wasn't correct, the second bit works fine.
Thanks
August 2, 2013 at 1:27 am
This works perfectly, Thank you all for your responses. 🙂
August 2, 2013 at 12:59 am
Viewing 15 posts - 1 through 15 (of 41 total)