Viewing 15 posts - 76 through 90 (of 6,036 total)
I suggest creating the following indexes to support the query. If you'd like to adjust other indexes on the tables also, just let me know.
CREATE UNIQUE...
_____________
Code for TallyGenerator
July 21, 2021 at 6:52 am
Can you please run this
SELECT TOP 10 item_no, loc, COUNT(*) NN
FROM IMLSMST_SQL
GROUP BY item_no, loc
HAVING COUNT(*) > 1
ORDER BY NN DESC
and post here the outcome?
_____________
Code for TallyGenerator
July 21, 2021 at 1:28 am
How many rows returned by
SELECT IMLSMST_SQL.ser_lot_no
FROM IMLSMST_SQL
WHERE IMLSMST_SQL.loc = '@@LOC'
AND IMLSMST_SQL.bin_no = '@@BIN'
AND IMLSMST_SQL.item_no = '@@ITEMNO'
?
Is column wsPKG.STATUS nullable?
_____________
Code for TallyGenerator
July 21, 2021 at 12:38 am
SELECT DATEDIFF(day, [ExpiredDate], GETDATE() ) FROM MyTable
Almost correct. Except the order of dates:
declare @Today datetime;
set @Today = '20210719';
SELECT MyTable.ExpiredDate
, DATEDIFF(dd, @Today, MyTable.ExpiredDate) DaysLeft
FROM (VALUES
('2021-07-25 15:29:09.000')
,('2021-07-28 17:31:22.000')
,('2021-07-19...
_____________
Code for TallyGenerator
July 20, 2021 at 3:05 am
The query is obviously built by some automated tool and has to be fixed.
unless there is some special logic which is not apparent from the first glance.
_____________
Code for TallyGenerator
July 19, 2021 at 8:10 pm
DATEDIFF(did, ..., ...) should do.
_____________
Code for TallyGenerator
July 19, 2021 at 8:01 pm
Steve, if you learned that getting all requirements upfront does not work - why do you stand by this approach in jobs?
You're misunderstanding me. Getting all the requirements...
_____________
Code for TallyGenerator
July 19, 2021 at 7:57 pm
Steve, if you learned that getting all requirements upfront does not work - why do you stand by this approach in jobs?
_____________
Code for TallyGenerator
July 16, 2021 at 6:48 pm
The rule of thumb here is simple.
a responsible person would not apply for a position with a long list of random requirements. Because he/she does not possess the required skills...
_____________
Code for TallyGenerator
July 16, 2021 at 5:46 am
Update Cars
Set Cars Club=Replace(Cars Club,'Holden','GM') and City=Adelaide
where Cars Club like ‘Holden’
and not (Cars Club like '%Elizabeth Holden%' or Cars Club like 'Holden Elizabeth')
_____________
Code for TallyGenerator
July 6, 2021 at 1:49 am
July 6, 2021 at 1:45 am
Another thing I was never able to understand - why index tuning is a job for ops?
they are definitely a part of table design, and changes to it should go...
_____________
Code for TallyGenerator
July 2, 2021 at 12:29 am
People forget that DevOps is about building a culture of collaboration between people with different disciplines. It is not a bunch of technologies, buzzword bingo or fancy job...
_____________
Code for TallyGenerator
July 2, 2021 at 12:22 am
And the ever popular "turn water to wine" requirement (although some of my favorite Developers and fellow DBAs were really good about turning water into some excellent beer).
I wish...
_____________
Code for TallyGenerator
July 1, 2021 at 9:40 am
Never did understand ads that have nothing to do with reality.
How many ads did you actually see?
How many of them passed reality check?
Any?
_____________
Code for TallyGenerator
June 30, 2021 at 2:27 pm
Viewing 15 posts - 76 through 90 (of 6,036 total)