This commit is contained in:
2026-09-07 00:47:32 +02:00
parent 2eced36997
commit c994bf283a
88 changed files with 3018 additions and 587 deletions
+5
View File
@@ -0,0 +1,5 @@
+++
title = "bruteforce algo"
+++
make a bruteforce algo and see how it works. Simple one.
+6
View File
@@ -0,0 +1,6 @@
+++
title = "cinema tbd name"
+++
# todo
either cli or website that shows cinema situation for the day by movies with links to book
@@ -0,0 +1,23 @@
+++
title = "sql over partition"
+++
write and learn how over partition works
we had duplicates in our databases, needed to delete all of them except one
so had to query them, groupped together and know which one was a duplicate
so it can be removed safely and keep one occurence of each
```
select * from (
select
row_number() over (partition by column_name order by column_name2 desc) as row_num,
* from table_name
where
type = 'xxx'
and content->'prop_name'->>'prop_name2' = 'xxx'
and column_name3 > now() - interval '12 hours'
) as rn
where row_num > '1'
;
```