Viewing 9 posts - 16 through 25 (of 25 total)
What is the datatype of the column 'status_count'?
We have assumed that it is an integer, but I suspect that it is not.
varchar cause there are letter in it 'A1A00001'
status_count...
May 5, 2022 at 9:56 am
Here's another way to post "Readily Consumable Date" followed by a different solution that uses the SUM() Windowing Function.
Here's the test data construction...
--===== Create the test...
May 5, 2022 at 7:57 am
Something like this. Calling your table 'table' is a really bad idea, because 'table' is a reserved word - that is why I have surrounded it with square brackets...
May 5, 2022 at 7:48 am
Honestly, I don't end up with the #t, ct etc.
I tried to replace anything regarding my data but didnt work
Sorry
The #t that Phil is using is what you...
May 5, 2022 at 6:38 am
WITH Temp
AS (SELECT tab = SUM(tab.status) -- total_nber_of_status
FROM Table)
SELECT tab.statut_code, -- x, y, z
tab.status,
Rate = tab.status * 100...
May 4, 2022 at 2:55 pm
Honestly, I don't end up with the #t, ct etc.
I tried to replace anything regarding my data but didnt work
Sorry
May 4, 2022 at 2:38 pm
It worked. I will try to do the same with my data and let you know! Thanks
May 4, 2022 at 2:27 pm
Thanks !
I have a table with 'statues' column. I can have the total number of each statut(x,y,z) with count. (MS SQL)
|status| count(status) |
|x ...
May 4, 2022 at 1:42 pm
Viewing 9 posts - 16 through 25 (of 25 total)