Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insertion of broker values to break ties #47

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

wendy-aw
Copy link
Contributor

Adding data to break ties for the question in broker db:

Which customer made the highest number of transactions in the same month as they signed up? Return the customer's id, name and number of transactions.

New output:

 sbcustid |   sbcustname   | num_transactions 
----------+----------------+------------------
 C012     | Olivia Johnson |                3

Old data with ties

 sbcustid |    sbcustname     | num_transactions 
----------+-------------------+------------------
 C012     | Olivia Johnson    |                2
 C013     | Ethan Davis       |                2
 C014     | Ava Wilson        |                2
 C015     | Emma Brown        |                1
 C016     | sophia martinez   |                1
 C017     | Jacob Taylor      |                1
 C018     | Michael Anderson  |                1
 C019     | Isabella Thompson |                1

Copy link
Collaborator

@wongjingping wongjingping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@wongjingping wongjingping merged commit 74b8988 into main Aug 14, 2024
2 checks passed
@wongjingping wongjingping deleted the wendy/broker_ties branch August 14, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants