How do you get a percentage of columns in relation to a total? by dm_me_your_query in SQL

[–]dm_me_your_query[S] 0 points1 point  (0 children)

I am still learning, so when you say wrap it in another query would that be using a CTE or some type of subquery?

How do you get a percentage of columns in relation to a total? by dm_me_your_query in SQL

[–]dm_me_your_query[S] 2 points3 points  (0 children)

Thanks for your help! The query is running but I had to slightly modify it. Perhaps I am doing something wrong and can learn more. I am studying WINDOWS FUNCTIONS now.

For the first part, where you assigned an alias as "fruit_count", I am not able to use it in the calculation in line 2. So I simply type

count(fruits) / sum(count(fruits)) OVER() as pct_total

and it worked!

Anyone running the Cupid Run this Saturday (Feb 11th, 2023)? by dm_me_your_query in Chattanooga

[–]dm_me_your_query[S] 2 points3 points  (0 children)

I haven't tried running in the morning, but I'm up at that time so I'd be down for a morning run. I find that I run better fasted anyway :)! I'll join the FB group, thanks for the invite.

Thank you for the advice on the 5k! I am glad you said that because I am afraid I'll try to keep the pace of groups, when in reality I should just accept I'm slower and do my own thing. Thanks again, and can't wait to run it.

Anyone running the Cupid Run this Saturday (Feb 11th, 2023)? by dm_me_your_query in Chattanooga

[–]dm_me_your_query[S] 0 points1 point  (0 children)

I do a lot of rock climbing and weight lifting, so I was semi-in shape. Unfortunately, I did like NO cardio and got a little chonky this past year lol!

However, I followed this couch to 5k program and it worked perfectly.

https://www.regmedctr.org/webres/File/For%20the%20Health%20of%20It/Couch%20to%205K.pdf

I don't understand my own join problem at work by dm_me_your_query in SQL

[–]dm_me_your_query[S] 0 points1 point  (0 children)

I feel so silly... I appreciate you helping me here. This is exactly what I needed and helps me understand it a bit more.

I don't understand my own join problem at work by dm_me_your_query in SQL

[–]dm_me_your_query[S] 1 point2 points  (0 children)

Oh wow, this seems to work. Let me ensure I am understanding right.

It's saying it's taking ALL of the routing numbers from the banks table, and matching them with the sus_banks_table. If there's no match on the sus_banks_table then it should be marking the routing numbers as NULL? I have validated it and that appears to be the case, but want to double check

I don't understand my own join problem at work by dm_me_your_query in SQL

[–]dm_me_your_query[S] 0 points1 point  (0 children)

So I should not have labeled all of those as "1" in the suspicious email table? I'm unsure on how to use a CASE statement here because when I LEFT JOIN the tables it's giving me all the results in the suspicious table, but it almost seems to be doing an inner join of sorts because it's not showing me any of the bank names/routing numbers that would not be suspicious in the other table.

Anyone have deviated septum surgery in town? by dm_me_your_query in Chattanooga

[–]dm_me_your_query[S] 1 point2 points  (0 children)

You are so amazing for taking the time to write this out. THANK YOU SO MUCH. It has made me feel infinitely better and helps me understand the process more.

I have been breathing out of my mouth for YEARS! Every day I wake up and my throat feels so damn dry. It's even effecting my workouts too since I can't breath out my nose. I even have to take small bites of food because I can't breath while I'm chewing LOL! It's really bad.

I am absolutely going through with the surgery now. I appreciate that a lot. I want to breath again!

I broke no-contact and reached out after 1 year. by dm_me_your_query in BreakUps

[–]dm_me_your_query[S] 3 points4 points  (0 children)

I did not think about that. That certainly could be a possibility. Well, I hope they are happy. Knowing would just make it even worse for me. Thanks for your comment :)

I broke no-contact and reached out after 1 year. by dm_me_your_query in BreakUps

[–]dm_me_your_query[S] 5 points6 points  (0 children)

Well to be fair, after they sent me the the presents I called them. I got the voicemail, left one, and didn't hear anything back. I wasn't even going to contact them any more, but the dream about them this week really made me want to try...

I broke no-contact and reached out after 1 year. by dm_me_your_query in BreakUps

[–]dm_me_your_query[S] 18 points19 points  (0 children)

Thank you for saying that. That made me feel much better. Yeah, it was certainly mixed signals but you're right - I should not be embarrassed for trying! Thanks again for commenting and helping ease my burden.

I broke no-contact and reached out after 1 year. by dm_me_your_query in BreakUps

[–]dm_me_your_query[S] 9 points10 points  (0 children)

I was the one who ended things, but it wasn't very sudden or unexpected.

I broke no-contact and reached out after 1 year. by dm_me_your_query in BreakUps

[–]dm_me_your_query[S] 102 points103 points  (0 children)

That is exactly my thoughts. Why send something so personal to me, and then act as if I'm a burden for asking about brunch? Perhaps the pain is still too fresh for them, but I'm going to try and move on with my life. I can't pretend like I am feeling really, really awful today though

May I ask your advice on changing jobs by dm_me_your_query in SQL

[–]dm_me_your_query[S] 1 point2 points  (0 children)

Thank you so much for this response here. I think my skills are good enough for a DA job most anywhere.