Viewing 15 posts - 61 through 75 (of 1,398 total)
You'll need some app / query logic to prevent it.
Or a TRIGGER. This is the sort of situation where one could be appropriate imo
October 2, 2024 at 8:23 pm
Yeah, it's not clear. The next sentence implies only 102 needs to be "printed" out. I'm picturing one of those giant dot matrix line printers that used to fill up...
September 29, 2024 at 7:44 pm
Hmmm... Phil's query returns 1 row (Rownr=7) for ItemId=102. The topic says: "If the status is not in this order for any item then we need to print such items." ...
September 29, 2024 at 3:36 pm
It's as popular as ever but I've always found JavaScript difficult to work with. With JavaScript it's like you're inventing everything whereas with SQL and other languages it seems more...
September 27, 2024 at 6:12 pm
If the ID is unique then yes DISTINCT would do nothing. I was sort of thinking right-to-left if there were duplicate properties there could also be duplicate ID's. No data...
September 25, 2024 at 7:58 pm
My guess is to copy Drew's query but with DISTINCT in the outer SELECT
September 25, 2024 at 3:11 pm
Begin tran of stp A
Stp B - Insert record in table 1 --> fetch cross DB data --> insert records in table 2 --> insert records in table 3...
September 11, 2024 at 4:04 pm
What is meant by more call dates and edge cases? Does each [Call Date Start Date] always get split into 2 rows? [Call Date Start Date] is an unfortunate name...
September 1, 2024 at 10:59 pm
This topic has kept working away in the back of my mind. It's made me wonder what it would actually take to set up a really good 'set based' backend...
August 22, 2024 at 7:23 pm
If you alter the collation at the database level it can have a negative impact on many, many things including query results, query performance, backups, indexes, data integrity, and can...
August 13, 2024 at 3:39 pm
Well I wouldn't want to make any recommendations in this regard. Changing collation on an entire db could cause major issues. If possible maybe set up a new instance with...
August 12, 2024 at 6:49 pm
More people need to know about the method that Dave showed in this article.
On modern machines, we still get 3 orders of magnitude difference in CPU and Duration (shown...
August 7, 2024 at 1:37 am
I did? I don't remember... I've gotten old enough where I think my harddrive is full and, every time I learn something new, either something else in my mind...
August 7, 2024 at 1:23 am
Maybe its time not just to change the Article title but a whole curated collection of "Techniques that have stood the test of time".
It would be interesting to see...
August 5, 2024 at 2:56 pm
Viewing 15 posts - 61 through 75 (of 1,398 total)