Viewing 15 posts - 271 through 285 (of 3,507 total)
Sounds like you need to cross join the two tables (creates all possible combinations... be careful with these!), and then subtract out the matches. (It would help us a LOT...
January 23, 2023 at 10:06 pm
That's Oracle syntax. Are you connecting to a SQL Server database?
January 20, 2023 at 8:31 pm
Divided We Stand: The SQL of Relational Division - Simple Talk (red-gate.com)
Read the article... that's how you do it in T-SQL. In DAX, well, that's a whole other kettle...
January 20, 2023 at 1:42 am
Something like this?
SELECT CustNo, TimeAmount AS Amount, 1 AS ExpenseType FROM #P
UNION ALL
SELECT CustNo, ExpenseAmount, 2 FROM #P;
January 19, 2023 at 9:32 pm
.NET?
January 18, 2023 at 7:29 pm
Which pages??? The first N records per parent? What does "a certain number" mean?
Could you give us a quick example?
January 18, 2023 at 5:34 am
wow. for that many points, that's a pretty terrible description.
For starters, here's your code fixed up a little:
use tempdb;
GO
CREATE TABLE ReportingPeriods(
StartDate DATE NOT NULL,
EndDate DATE NOT NULL,
PeriodID...
January 11, 2023 at 2:30 am
This sounds like it's supposed to be done in PowerBI, using DAX. Doesn't sound like a SQL question at all.
January 10, 2023 at 6:34 am
DDL = Data Definition Language (CREATE TABLE scripts, [INSERT] scripts, so we have data to work with).
you can see your data, but we can't. So we need some sample data...
January 9, 2023 at 6:02 pm
Is this a DAX question or a T-SQL question?
Joe Celko wrote an article showing how to do this in T-SQL. I think the gist of it is that you count...
January 8, 2023 at 6:53 am
Here's a beautiful screenshot of my table!
<ducking>
January 5, 2023 at 1:36 am
Me too. It's weird, but I find the act of writing (not typing) helps me remember better. And I doodle to make sense of and plan things (like my terrible...
January 5, 2023 at 12:29 am
Are you trying to put all of this stuff into a single fact table? Don't. Hiring/Turnover is one table, Sales etc is another. They share a Time/Date dimension, so summarize...
December 29, 2022 at 4:18 pm
What you're describing in a roundabout way is a tabular model using DAX. So there are two things you need to get your head around to do this: DAX and...
December 29, 2022 at 12:18 am
Are you trying to return the first non-null value?
COALESCE()?
December 28, 2022 at 9:13 pm
Viewing 15 posts - 271 through 285 (of 3,507 total)