Viewing 15 posts - 286 through 300 (of 7,191 total)
Group by OrderID and put in a HAVING clause where you check that the MAX value of Status is Shipped, and the MIN value of Status is Shipped.
John
December 13, 2019 at 3:23 pm
OK< a few generalisations. A clustered index usually works best on a narrow key (int, for example), and for a column that is monotonically ascending column (a timestamp or identity,...
December 13, 2019 at 3:03 pm
Yes, you can certainly use a trigger, or you can periodically query the table for the data and invoke the job when it arrives.
John
December 13, 2019 at 1:31 pm
How does the vendor-managed application run the reports? Does it issue stored procedure calls, or does it build ad hoc SQL and execute that? You may have an issue with...
December 12, 2019 at 3:24 pm
Which part of this are you having trouble with - inserting into orders from the two tables jobs and SiteAddresses in a single statement, or inserting into the two tables...
December 12, 2019 at 3:05 pm
Pay attention, I never mentioned the transaction log. And just because people scream, or write in capitals, it doesn't mean they're right. There's absolutely nothing wrong with shrinking as a...
December 12, 2019 at 11:45 am
You might want to try a different search engine! There's plenty of information out there. Here's what you need to do.
John
December 12, 2019 at 11:11 am
No, you can't use a table variable as an output parameter. What you can do, though, is have the stored procedure return a result set, insert that into a table...
December 12, 2019 at 9:37 am
December 12, 2019 at 9:31 am
Be advised that if you cannot guarantee that the individual files are guaranteed to go to separate physical spindles (if you're backing up to spinning rust), striped backups can...
December 11, 2019 at 4:54 pm
You mean a striped backup? No, they don't have to go to different paths. Depending on your disk configuration, though, your backup may run faster if they do.
John
December 11, 2019 at 2:18 pm
One very good reason to use a domain account instead of the default account is to get access to network resources so that you can, for example, back up your...
December 11, 2019 at 2:05 pm
You'd be better off posting in a MySQL forum - this one is for SQL Server. You're probably right - you'll need a recursive solution. Wherever you seek help, I...
December 11, 2019 at 11:20 am
OK, so the requirement has changed a little. You now need to concatenate the values into a string rather than having each as a separate column in the same row. ...
December 11, 2019 at 11:14 am
Viewing 15 posts - 286 through 300 (of 7,191 total)