Viewing 15 posts - 91 through 105 (of 3,396 total)
That's what the CROSS APPLY basically does. Test out the code I wrote to see if it accomplishes what you need. It basically converts all the values in the comma-delimited...
November 15, 2023 at 8:49 pm
Okay, here's my solution assuming you can't modify the table. Sometimes you just have to live with a bad design. If the table is really big, it might be worth...
November 15, 2023 at 3:56 pm
So all you want to do is copy the table name and the number of records into a table? Why not query the system tables? Sort of like this:
November 15, 2023 at 8:01 am
Oh, owww... Normalization is your friend. You should read Jeff Moden's article on his function DelimitedSplit8K
basically, you have to create the function in a database somewhere. (I'm in TempDB...
November 14, 2023 at 10:55 pm
Okay, I'm working on a smaller copy (just the top like 1000 rows), and it's working except everything is imported delimited by double quotes. (Nice and fast though...) After that...
November 13, 2023 at 6:42 pm
Can I do the whole import without using the Wizard, which creates (I think) and SSIS task? Because that crashes with Out of Memory errors?
For grins, (and because I'm used...
November 13, 2023 at 3:01 pm
Oh, sorry. Left a lot of stuff out. The files are getting imported into PowerBI (not in Fabric, or whatever MSFT calls it these days), and they do all the...
November 12, 2023 at 4:35 pm
Okay, silly me... I completely missed Reza Rad's video on it, "Aggregation to speed up the performance of a Power BI report even if all IMPORTED"
You basically create an...
November 10, 2023 at 7:27 pm
if all else fails, read the manual:
pandas.DataFrame.mean — pandas 2.1.1 documentation (pydata.org)
October 3, 2023 at 2:16 pm
In particular, the diagnosis and procedure dimensions could be handled as a multi-valued dimension
How do you mean? Could you give an example of "a diagnosis being handled as a multi-valued...
September 25, 2023 at 2:34 am
If you're going to do lots of date-related analysis, I'd just create a Calendar table with all the columns you want to group by, and then join to that in...
September 22, 2023 at 2:42 pm
Can't see your data. Without that, I'm pretty sure we can't do anything. Could you post at least some representative data? (CREATE TABLE and INSERT scripts, not pictures =) )
August 27, 2023 at 10:08 pm
Never mind. I'm a knucklehead. Bring in all the tables (seems I shouldn't have to?), filter by name, expand tables, append. "Use the force, Luke!"
July 12, 2023 at 8:39 pm
Why do you want to partition the table? Partitioning a table is for speeding up backup, not speeding up your queries.
(Where's the "SQL Howlers" article that Gail Shaw wrote about...
July 12, 2023 at 6:42 pm
Use ROW_NUMBER() OVER (PARTITION BY<field list> ORDER BY <field>) where the columns in the PARTITION BY section are the columns you would use to determine uniqueness.
Standard way to do this...
July 5, 2023 at 2:12 pm
Viewing 15 posts - 91 through 105 (of 3,396 total)