Viewing 15 posts - 2,101 through 2,115 (of 7,608 total)
But, by definition, an identifier is on a nominal scale and nominal scales are never numeric.
That's really a mistake on your part to think so in...
November 29, 2020 at 6:24 pm
This is the main test q I use to test query-writing skill. It's not as trivial / obvious as it sounds at first.
A table contains 1, 2 or...
November 29, 2020 at 6:13 pm
As a drastic example of what I've talking about, say you asked an applicant to list all the columns from the table. Say the table has key_col, data_col1, data_col2. No...
November 29, 2020 at 5:56 pm
Scott - I agree with Jeff in the sense that this test is somewhat unrealistic because you have CTE's and sub queries at your disposal. However, if this is...
November 29, 2020 at 5:50 pm
Except that single outer apply will be executed for each row in the Meter table - and the data must be sorted each time based on the filters from...
November 28, 2020 at 1:31 am
Pretty good overall, reasonably close.
But:
the middle score will not necessarily be the avg score (sum/count is same as avg);
if there are fewer than 3 scores, leave extra scores NULL. For...
November 28, 2020 at 1:28 am
Just curious - but how are these solutions better than using multiple joins? If this is a performance related issue - fix the use of the upper functions on...
November 27, 2020 at 7:20 pm
Here's the table structure:
student_scores ( student_id int NOT NULL, assignment_number int NOT NULL, score int NOT NULL )
November 27, 2020 at 7:16 pm
Typically, you'd want columns used in the WHERE condition to be in the index keys, for the reasons noted by Mr. Gale.
select *from SaleOrderLines where OrderID='value1' and itemid=value2' and status='open'
However,...
November 27, 2020 at 3:23 pm
Yeah, sorry, adjust all the "d." from the query. You didn't provide any usable sample data for us to test with, so you can't expect fully tested code :-).
November 27, 2020 at 3:12 pm
You can use a single table scan / lookup and will often get better performance from doing so:
select t.*, s.Description as SubTypeCD_DESC,
d.AOD_METHOD_DESC,...
November 27, 2020 at 1:49 am
As a bit of a sidebar, your WHERE clauses for the start (>=) and end dates (<) are CORRECT. Your calculation for end date is not. You could miss...
November 27, 2020 at 1:25 am
For best overall performance, it's extremely likely that you need to change the clustering index on the table to be ( OrderID, ItemID ). Especially if the table is now...
November 27, 2020 at 1:14 am
This is the main test q I use to test query-writing skill. It's not as trivial / obvious as it sounds at first.
A table contains 1, 2 or 3 rows...
November 26, 2020 at 3:47 am
Viewing 15 posts - 2,101 through 2,115 (of 7,608 total)