Viewing 15 posts - 811 through 825 (of 3,480 total)
Some days I can't see the forest for the trees. If the filters are all optional, you can do the filtering in SSRS. (So you could have a whole bunch...
February 7, 2020 at 3:22 pm
If you think about DAX like a programming language, the functions either return scalar values or tables. And the functions in DAX receive either table-type objects or scalar values too....
February 7, 2020 at 3:08 pm
So you want to make some parameters optional?
SomeColumn = COALESCE(@ParameterName, [SomeColumn])
So If @ParameterName is not assigned a value, then the comparison evaluates to
SomeColumn = SomeColumn
… so it's...
February 7, 2020 at 5:52 am
Could you please post create table scripts and some sample data and expected output?
Since you're new here, welcome! And some reading: How to post a question to get the...
February 6, 2020 at 12:55 am
Just wondering, but why are you doing a PIVOT in T-SQL at all? Why not do it in the presentation layer (Excel, SSRS etc)?
if you absolutely have to do it...
February 4, 2020 at 4:54 am
You'll get tested answers if you provide some consumable data... How about...
SELECT ID, StartDate, EndDate, ContractValue, Manager
FROM
(VALUES (1,'2019-11-01','2020-06-30',45000,'Stephen Smith'),
(2,'2019-12-01','2020-07-30',75000,'Carol Kenin'),
(3,'2020-01-15','2020-08-30',25000,'John Gnan'),
(4,'2020-02-01','2020-09-30',40000,'Jacob Joklin')) z(ID, StartDate, EndDate, ContractValue,...
February 3, 2020 at 9:08 pm
I think I know what happened... MSFT was sneaking in updates while I was testing. Gotta love invisible updates.
February 2, 2020 at 4:24 pm
Looks like this might be what you're looking for:
SELECT acc, COUNT(DISTINCT(token)) AS dc
FROM Test1
GROUP BY acc
February 1, 2020 at 12:13 am
I think I tried the 2016 version. Any time I try to connect to an ACCDB, it fails. If I use Jet4.0 with an MDB file, it works fine. The...
January 31, 2020 at 10:22 pm
Having users share the same front end is a recipe for disaster. Some really smart Access folks have written tools for forcing the distribution of new front ends so that...
January 29, 2020 at 7:04 pm
I agree. Normally, in an article like that, the author would pose the questions and maybe format them as bullet points because that makes them stick out... then later he...
January 27, 2020 at 4:08 pm
Has my customer conversion rate improved since this time last quarter?
What is my annual sales growth as compared to last year?
The answers to the questions can be found by using...
January 27, 2020 at 2:53 am
Expected results?
OR the two parts together????
select p.PartID, p.PartNumber,m.SupplierId,m.TradeCode from #tempsupplier m
inner join #parts p on p.SupplierId=m.SupplierId
where not exists ( select 1 from #TradeCodes t where t.TradeCode=m.TradeCode)
OR...
January 22, 2020 at 3:38 am
One way... You may need to modify the FORMAT()… bit to get the dates formatted the way you want. I did that because I wanted them cast as strings.
January 18, 2020 at 3:27 am
Viewing 15 posts - 811 through 825 (of 3,480 total)