/explore
|
You are here |
dylanpaulus.com | ||
| | | | |
jsloop.net
Let's say our objective is to get latest one row by a given set of criteria. Means, say a person has multiple products and we want to get latest one product per person. For this what we need to do is partition the data by the required criteria. Here we will partition the data by person_id and product_type ordered by latest org_insert_dt. This will order the result by person and latest product. Then we use row_number() function which will assign unique, sequential integer to each partition in the result set. Which means the latest product for each person will get a 1. And we use a CTE (Common Table Expression), which is temporary named result set to store this relationship. Now if we need latest product per person, then we can query this CTE which is like a t... |
|
| | | | | ||
| | | | |
latest.datasette.io
|
|
| | | | | ||
| | | | |
will-keleher.com
Large analytics SQL queries can be unmaintainable and hard to debug. Writing large SQL queries is hard and slow! You can use temporary tables and views to break down those queries into smaller pieces that are easier to work with. |
|
| | | | | ||
| | | | |
128bit.io
One of the things that really gets me excited about my new job is being able to use new technology. Sure, sometimes new technology is risky but I see groups befitting more then failing due to usingnewer technology. As always when talking about new technology, NoSQL seems to come up because there are a good number of people switching parts (or all) of theirapplication to use NoSQL databases to get by limits or to help withscalability issues. |
|
| | | |||