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
1021
September 14, 2020 04:08PM
380
September 14, 2020 04:11PM
332
September 14, 2020 04:49PM
211
October 08, 2020 11:36AM
212
October 09, 2020 09:11AM
197
October 09, 2020 11:59AM
Re: OVER (PARTITION BY) : Not Working
317
October 08, 2020 09:25AM


Sorry, you can't reply to this topic. It has been closed.

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.