Skip to content
Advertisement

Tag: mysql

Regarding SQL Inner Join [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question The question is as follows : My question is regarding SQL code for the following question. Final query should return the vendor information along with

SQL Weighted averages of multiple rows –

How would you go about to find the real weighted average of multiple rows: By real weighted, I mean like this calculator: https://www.rapidtables.com/calc/math/weighted-average-calculator.html (and not by multiplying value with weight). The weight for each answer is set in answers and values for each question in child-table answer_items. We want the weighted average for each question (a,b,c,d). We know what questions

LIKE statement SQL

Dont work brackets in LIKE statement I use MySQL WorkBench, I dont understand why SELECT * from user where name like’B[io]’ dont work. My DataBase: Answer Because MySQL does not support character classes in like expressions. Neither does the SQL standard. Use regular expressions: Incidentally, the like does work. You just have no data that starts with the five characters

error on MySQL when i add month to the query [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed last year. Improve this question I have a dataset including a endDate and a startDate: endDate startDate 2021-02-01 2021-06-30 now I try datediff(endDate, startDate) and I get: 149

Joining three junction tables

my heads hurt from trying to figure this out! I have three tables -Players -Teams -Games Three junction tables with two columns. -player_teams -teams_games -player_games I need to list all Players who …

Advertisement