MySQL Forums
Forum List  »  MySQL Workbench

Re: OVER (PARTITION BY) : Not Working
Posted by: Jam Su
Date: October 08, 2020 09:25AM

Apologies, I was not notified about your reply to my post.

Please see sample query below.
Note that support for this feature is noted here - https://dev.mysql.com/doc/refman/8.0/en/window-function-descriptions.html



SELECT
p.num,
p.description,
po.num,
po.dateCreated,
poi.qtyToFulfill,
ROW_NUMBER() OVER (PARTITION BY p.num) AS 'NUM'

FROM
part p
LEFT JOIN poitem poi ON poi.partid = p.id
LEFT JOIN po po ON po.id = poi.poid


WHERE p.num IN ('930 102 112 00')

Options: ReplyQuote


Subject
Views
Written By
Posted
138
September 14, 2020 04:08PM
62
September 14, 2020 04:11PM
25
October 08, 2020 11:36AM
23
October 09, 2020 09:11AM
19
October 09, 2020 11:59AM
Re: OVER (PARTITION BY) : Not Working
31
October 08, 2020 09:25AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.