TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hakan Axheim
NA
201
32.4k
Regarding Over Partition
Nov 4 2020 3:31 AM
Hi,
I have a question regarding Over(Partition by
This is a short description of my data.
Customer Id Product Id CreateDate
10 A 2020-01-01
10 A 2020-01-01
10 B 2019-11-01
10 B 2019-11-01
20 A 2020-03-01
I need a query that shows the information as below;
Customer Id Product Id CreateDate SequenceNo
10 A 2020-01-01 1
10 A 2020-01-01 1
10 B 2019-11-01 2
10 B 2019-11-01 2
20 A 2020-03-01 1
How can I write a query in SQL that shows the information above?
Reply
Answers (
3
)
How to check table is exists in database mysql
sql OLAP type group by roll up