Skip to content

SQL Max count for each group

I’m having trouble calculating a max count for each value in a column (Year_month). The business question is: for each Year_month, which Week_day has the highest number of records. Trying to list the …

MySql trigger to replace text

everybody! I have a trigger to replace text BEFORE INSERT to table, i have a text in which need change one word SET NEW.shipping_method = CASE WHEN NEW.shipping_method LIKE ‘weight’ THEN ‘Svars’ ELSE …

Stop BigQuery from truncating output

I need to export a query into a json using the bq cli (on bash b.t.w.) I am using this command: bq –format=json query –use_legacy_sql=false ‘SELECT text FROM `..<…

Node app wainting for localhost permantly

I’m new to node.js, im trying to make a simple login form, i have a database with the users and passwords, this is the action asigned to the form: app.post(‘/auth’,async(req, res) => { …

How to return AVG by date and by user [closed]

I need to perform a task that is quite complicated for me, I need to return the average number of records entered by users per day. Lets say that i have this table +—-+–+—+——–+—————…