This user account () has been banned from the forums
Viewing 15 posts - 121 through 135 (of 160 total)
Hi, the expected output should like the following
March 22, 2021 at 11:04 am
Hi Phil,
This worked like a dream.
Now, this leads me on to the more complicated question related to this question - that is of Partitioning....
The output lets more know that model,...
February 7, 2021 at 9:33 pm
Hi Phil,
The actual application is called dbForge.
Yes, it can handle subqueries and temp tables.
Cheers
February 7, 2021 at 9:09 pm
Hi Phil,
I friend provided the following suggestion (which works)
;
with M as
(
select model,
...
February 7, 2021 at 8:40 pm
Sorry,
I need the output to look like the following:
February 7, 2021 at 8:06 pm
No wait, I made a mistake in the output image...I need to change it.
February 7, 2021 at 8:01 pm
Hi Phil
Thanks for your patience. Let me try and explain.
The following query
SELECT
vehicles.engine_size
,COUNT() AS cnt
,CAST(COUNT() 100.0 / SUM(COUNT()) OVER () AS DEC(5, 2)) AS distribution
FROM dbo.vehicles
GROUP BY vehicles.engine_size
ORDER BY distribution DESC
gives me...
February 7, 2021 at 7:53 pm
Hi Phil,
Thanks for reaching out.
I'm afraid my knowledge of the type of grouping logic needed to achieve the output I showed above is limited.
I was hoping that someone could come...
February 7, 2021 at 7:40 pm
Hey Jeff,
Thanks for the lesson.
And this is very nice. I missed the option to do
WHERE city in ('Arizona','California','Hawaii')
Also, not entirely sure how this line works
SELECT ByCityFirstNameID = ROW_NUMBER() OVER (PARTITION...
February 6, 2021 at 5:54 pm
Hi Jeff,
Thanks so much for reaching out. This is beautiful.
The reason I asked if my code could be tweaked to achieve the same resutls as your code, is because I...
February 6, 2021 at 4:17 pm
Hi Jeffrey,
It wouldn't cause an issue.
The challenge was just to achieve the result without using LEFT JOIN.
January 5, 2021 at 12:44 pm
Hi Steve,
I'm getting the error here where c.cust_id=o.cust_id with your code
January 3, 2021 at 5:56 pm
SSC Guru
Thanks for reaching out.
Thats great
Can you let me know why my code won't work
January 3, 2021 at 3:11 pm
Can I also point out, that I'm trying to achieve the result without using LEFT JOIN
January 3, 2021 at 3:04 pm
December 21, 2018 at 5:14 pm
Viewing 15 posts - 121 through 135 (of 160 total)