Viewing 15 posts - 601 through 615 (of 3,480 total)
If you really want help, help us help you.
Post TEXT, not pictures. And if you're stuck on something, post what you tried. We're not here to do your homework. Ideally,...
September 14, 2020 at 11:11 pm
I don't see any way to group these so that you can use ROW_NUMBER() with a PARTITION clause. Can you explain how these are supposed to group? If you can't...
September 13, 2020 at 3:51 am
I created this measure using the allselected function.
Could you post the code for it? Something like
DIVIDE ( [Total Sales], CALCULATE([Total Sales], ALLSELECTED('Calendar'[Month])) September 12, 2020 at 7:55 pm
Thanks for the data setup... this matches your expected output...
SELECT *
FROM dbo.Sales s
INNER JOIN dbo.FiscalPeriods fp
ON s.DOCDATE>=fp.FirstDate AND s.DocDate<=fp.LastDate;
September 7, 2020 at 10:03 pm
You may create a staging table, populate it with the data from a trigger and use a job to output the data to a file.
I guess use the Inserted virtual...
September 6, 2020 at 5:56 pm
Unless I'm reading it wrong, sounds like you could use Service Broker for that...
"Here are some examples of reasons you might use Service Broker:
Asynchronous triggers. You can construct asynchronous triggers either...
September 6, 2020 at 3:16 pm
Created a User DSN, and it worked a champ.
Then for fun I created a trivial stored procedure just to see if I could call it.
CREATE SCHEMA junk;
CREATE...
September 5, 2020 at 12:39 am
something like this?
SELECT DISTINCT ID
FROM Response r
WHERE EXISTS (SELECT 1 FROM Response r2 WHERE r2.ID = r.ID AND r2.result = 'Y')
AND EXISTS (SELECT 1 FROM Response r2...
September 4, 2020 at 10:54 pm
=IIf(Round(Fields!Qty1.Value,3) = Round(Fields!Qty2.Value,3),"Red","Black")
September 3, 2020 at 3:58 pm
This almost worked <g>.
DECLARE @tableName NVARCHAR(50);
DECLARE @TemplateSQL NVARCHAR(500)=
'SELECT *
INTO #tempData
FROM dbo.MikeyData n
EXCEPT
SELECT *
FROM #tempData d;';
DECLARE @InsertSQL NVARCHAR(500);
DECLARE tables_cursor CURSOR FAST_FORWARD
FOR
SELECT ao.name
FROM...
September 3, 2020 at 3:12 pm
What are your options?
If you can use SSRS, it's stupid easy.
Can you use a matrix in .NET? (Well, SSRS is an ASP.net application, so I would think so.)
September 1, 2020 at 11:11 pm
I created a table for this... (Far easier to do in SSRS with a matrix visual)
now someone who's better at Pivot than I am can have a play.
September 1, 2020 at 2:26 pm
Got some sample records? And how about a couple of CREATE TABLE scripts. Or do you have something against tested queries?
September 1, 2020 at 5:55 am
So what's your question? You want to split the last and first names into separate columns in your SQL query? (I would do that... makes querying much easier and faster).
August 31, 2020 at 2:13 pm
Viewing 15 posts - 601 through 615 (of 3,480 total)