Skip to content
Advertisement

Tag: database-partitioning

SQL result dense Rank in revolving group pattern

Say I have a table like store date is_open Bay 1/1/2022 true Bay 1/2/2022 true Bay 1/3/2022 true Bay 1/4/2022 false Bay 1/5/2022 false Bay 1/6/2022 false Bay 1/7/2022 true Bay 1/8/2022 true Bay 1/9/2022 true Walmart 1/7/2022 true Walmart 1/8/2022 false Walmart 1/9/2022 true I want them to use partition by and get the rank of the group such

Advertisement