Skip to content

How to exclude users with multiple options sql

Trying to retrieve just users that don’t have a disabled campaign, where disabled = 1. A user can have a disabled campaign and a non-disabled campaign, but if they have any disabled campaigns I want …

Oracle Analytical Function?

For the given table below, how can we find the customer whose name appears 3 times consecutively. Desired_Output Table Definition: Code Tried so far I believe we can do this by using lead/lag to get the previous and next row. Although my solution gives the desired output but i don’t think this is correc…