Viewing 15 posts - 556 through 570 (of 3,489 total)
Basic totals query. Give it a try. Not like you can break anything.
Not sure who told you to put NO LOCK in all your queries, but don't unless you like...
April 30, 2021 at 4:38 am
(Maybe the OP should watch Grant Fritchey's videos on backup and restore on Youtube).
Seriously, though... if you don't understand how backups and restores and log files are related, you're in...
April 28, 2021 at 12:01 am
If you want people on here to do your work for you, are you willing to send your paycheck to them?
April 17, 2021 at 1:51 pm
I can't see your data, so it's hard to tell. Can you post some sample data... CREATE TABLE script, INSERTS... so we have some idea what your data looks like?
April 7, 2021 at 2:50 pm
Because someone who shouldn't have had rights to execute his own SQL statements instead of being limited to existing, properly written stored procedures etc?
April 2, 2021 at 12:43 am
Pretty sure you can tell Steve is joking when he says "Power BI".
(That said, I guess that explains why there's no section here for it)...
April 1, 2021 at 11:59 pm
Forget about loops for a minute. What are you actually trying to accomplish? Please explain.
March 5, 2021 at 4:18 am
February 24, 2021 at 3:46 am
Okay, I'm super confused. If your data is already in a tabular model, don't you use DAX (or maybe MDX) to query it? If the issue is DAX, read Rob...
February 3, 2021 at 6:16 pm
So you create a statement on top of what you have and then get an average of the datediff results.
AFAIK, you'd have to roll your own median function. I'm sure...
January 26, 2021 at 6:15 am
Could you post some sample data and expected results?
I'd use a Calendar table for this kind of thing.
January 25, 2021 at 10:34 pm
As it wasn't my database, I would assume FIFO, but then I could be wrong. <g>
Frederico, any pointers on how to do it without a cursor? The only way I...
January 24, 2021 at 7:44 pm
Correct me if I'm wrong, but if I'm processing a series of work orders for products I need to build, then the only way to do it seems to be...
January 23, 2021 at 11:15 pm
This gets the "new" customers. Then you'd just join this back to the Transactions/Sales table and do a simple sum.
SELECT CustomerID
FROM Customer c
WHERE NOT EXISTS (SELECT 1
FROM...
January 20, 2021 at 2:25 am
Thanks... I think I'm going to read Itzik's book and watch some of Kendra Little's T-SQL courses on indexing and querying.
(Good time to have a normal job where people come...
January 18, 2021 at 8:56 pm
Viewing 15 posts - 556 through 570 (of 3,489 total)