Viewing 15 posts - 1,111 through 1,125 (of 7,608 total)
If you rounded the numbers, it seems like you'd end up with 296, 4, 1:
SELECT 300*.986, 300*.012, 300*.002 --295.800, 3.600, 0.600
The first round up seems clearest, so 296. You'd have...
December 7, 2021 at 4:13 pm
This is so wrong. Your company is trying to have you fix the wrong problem. The real problem is the source of the data and THAT's what...
December 6, 2021 at 4:28 pm
The patient's name is not present anywhere. That is, there's no way to know who patient "A", let alone to know what doctor(s) he/she saw.
December 6, 2021 at 5:22 am
This is so wrong. Your company is trying to have you fix the wrong problem. The real problem is the source of the data and THAT's what actually needs...
December 6, 2021 at 5:16 am
This was an interesting problem because for 'Shift' rows, you need to output only one row. But for non-'Shift' rows, you (mostly) need to output two rows: a row for...
December 4, 2021 at 4:43 am
I wouldn't go thru all those gyrations to pull out the values. Imagine the hassle to just add one more column to the output.
I'd do something similar to this instead.
December 3, 2021 at 7:00 pm
I think this will work. I have NOT yet adjusted it for performance (or tuned it at all yet, really), I was just trying to make it work. Let me...
December 3, 2021 at 6:47 pm
As noted, a LEFT JOIN is what you need. An INNER JOIN requires a matching row in both tables; a LEFT JOIN will keep the row from the left-hand table...
November 29, 2021 at 4:56 pm
You must use the alias to insure accurate UPDATEing. You can, and quite often will, get inaccurate results when using the full table name instead. (The error may now only...
November 29, 2021 at 3:13 pm
I agree, sounds very much like class work.
November 29, 2021 at 3:07 pm
Actually you're pulling more than 52 weeks' worth that way, but here goes. Note that since you provided no sample data to test it with, you'll need to do the...
November 29, 2021 at 3:04 pm
Excellent idea. That gets much closer to the given size.
There's one very minor miscalc above, in that I believe page data can never exceed an absolute max of 8060 bytes,...
November 24, 2021 at 5:25 am
SELECT title,
SUBSTRING(title, CHARINDEX('E00', title), 200),
Computed = CASE WHEN CHARINDEX('E00', title) = 0 THEN NULL
...
November 24, 2021 at 12:33 am
Would you script out the table to make sure no other column "snuck" in there?
And please verify the row count:
SELECT SUM(rows) AS row_count
FROM sys.partitions
WHERE object_id = OBJECT_ID('dbo.SIData_222222_88_20211103_1436')...
November 22, 2021 at 7:20 pm
Viewing 15 posts - 1,111 through 1,125 (of 7,608 total)