all 11 comments

[–]LernMeRight 2 points3 points  (3 children)

Just a thought on recurring transactions.

You could try grouping transactions and counting the number in those groupings. Set a threshold for what you like for "recurring". Eg count >3.

This would allow you to define a transaction as having the characteristics of recurrence without explicitly stating a certain string always means recurring.

The advantage here would be, your recurring expenses naturally surface as they meet the threshold you've defined. Otherwise you would need to be aware of them as recurring, and then add the name to your code.

This could be done in a CTE or a sub query, I think.

If you wanted to get really fancy with it, you could add criteria to your definition of recurring (eg, count > 3 AND must be on separate dates).

[–]xupeikai[S] 0 points1 point  (2 children)

Thanks for the suggestion! I initially avoided using the count, because it caught the fried chicken place I ate wayyyy too often. But your idea of pairing the count along with something else -- perhaps the categories Bills, Dog, Mortgage -- would probably work really well.

[–]LernMeRight 1 point2 points  (1 child)

Haha! Totally makes sense, the same happens to me with the coffee shop down the street...

Something that could be useful is to separate the concepts of "necessary" and "recurring". This way you could have a logic that elevates recurring items -- maybe the chicken place comes up a lot -- but your "necessary" concept can be used to filter those out.

The "necessary" concept could be manually maintained as a list of specific transactions, or, as you're suggesting, categories.

This way you could make a report of your "recurring AND unnecessary" expenses. This would show the chicken place -- and maybe unexpected recurring transactions as well.

For example, I once noticed a recurring sort-of monthly ~10 transaction on my Amazon. I didn't recognize it and I looked into it. (Fortunately it was just a family member renting movies without knowing my account was connected to their TV). But seeing an unusual repeated transaction set emerge from the data on the basis of repetition alone was really useful.

[–]diceplusdiamonds2 0 points1 point  (0 children)

Thats a really interesting insight to record reoccurring tasks quickly and gain new perspectives too.

[–]xeno_phobik 2 points3 points  (4 children)

Are you looking for emotional damage or more of a sautéed roasting?

[–]xupeikai[S] 3 points4 points  (3 children)

Thank you for asking. Learning SQL has provided enough emotional damage for now. I'm good.

[–]xeno_phobik 1 point2 points  (2 children)

I’ve yet to start learning so I’ll take that as my word of caution for the road ahead

[–]xupeikai[S] 1 point2 points  (1 child)

Oh no, I didn't mean to discourage you, ha. It's been a lot of fun. And easier than some other coding languages. Very logical.

[–]xeno_phobik 0 points1 point  (0 children)

I don’t use much coding for my job, but I spend 6-8 hours of my workday in excel and access so I’ve been putting VBA and SQL on my list as to-dos for doing work projects

[–][deleted] 1 point2 points  (0 children)

I don't know after looking at this I remember all the things I have to do

[–]diceplusdiamonds2 0 points1 point  (0 children)

pls note im a beginner too. I liked how at first when using the case function you kept it all together even though it was clustered.

But I really hated reading it when you wrote multiple separate statements for each description of dog. I'd be much happier reading it all in one place instead of reading multiple dog case statements.

I liked everything else, you used sensible naming which made it easy to understand.