Viewing 15 posts - 2,371 through 2,385 (of 3,507 total)
Might be as simple as
=Sum(IIf(Fields!Factory.Value <> "ABC", Fields!Total_Progs.Value,0))/Sum(IIf(Fields!Factory.Value <> "ABC", Fields!Anotherfield.Value,0))
If you need the total size of Total_Progs/(Total_Progs + Factory), you would have to alter it a little.
Note, you will...
August 13, 2015 at 9:34 am
This works...
SELECT A, B, C, txt
FROM
(SELECT 1 AS A, 2 AS B, 3 AS C
UNION ALL
SELECT 2,1,3
UNION ALL
SELECT 4,1,2) x
CROSS JOIN
(SELECT 'Text1' AS txt
UNION ALL
SELECT 'Text2') y
In your...
August 13, 2015 at 8:59 am
(See, told ya Eirikur could do it... even if I can't remember how to spell his name!)
August 12, 2015 at 11:42 pm
but be sure to get the second edition (or later). The first one was a bit wonky.
August 12, 2015 at 7:44 pm
Eirkur would no doubt be able to do this in a nanosecond, but in a nutshell, you would have to use XQuery to do this. Here's the article that...
August 12, 2015 at 7:11 pm
Error: The buffer manager cannot extend the file "C:\Users\}.tmp" to length 2030084 bytes. There was insufficient disk space
Bigger hard drive? Space on another network drive?
August 12, 2015 at 5:12 pm
Do not pass go. Do not collect $200. Go directly to the bookstore and by a copy of Ralph Kimball's book. he explains how to build a star schema/Data Warehouse...
August 12, 2015 at 3:28 pm
What if you put a parameter in the place of the literal numeric values?
IIf(((DatePart("q",Today)=@theQuarter) and Fields!Qtr.Value=(@theQuarter-1)), False,True)
August 12, 2015 at 11:50 am
Exercise your googlefu!
and dig around on sqlauthority... it's probably on there.
August 12, 2015 at 11:12 am
can you upload your report (with an embedded SQL statement?)
hard to tell from here.
August 11, 2015 at 10:05 pm
The problem is that you have to remove the duplicates before you insert the batch of records.
This is one option:
insert into table_2 (col1,col2,col3)
select DISTINCT col1,col2,col3
from table_1 t1
where not exists (select...
August 11, 2015 at 3:59 pm
Are you sure that's the output you're expecting? Don't you mean you just want a normal output that you get from a comma-separated list of column names? Shouldn't the...
August 10, 2015 at 9:33 pm
Could you post some consumable sample data? It would make it a lot easier to answer your question. And include the correct answer based on the data provided.
August 10, 2015 at 3:22 pm
can you post the CREATE TABLE and INSERT scripts so we can reproduce the problem?
August 10, 2015 at 12:05 pm
Viewing 15 posts - 2,371 through 2,385 (of 3,507 total)