Skip to content

Retrieving credentials from multiple tables in ASP

I want to have a login page that’ll take the email and password from 2 different tables in the same database. I have a student_regis and a Uni_regis table and these both cannot be combined in the same …

Parse userid from a text field to a new column

Currently this is what I have and I would want to parse out the userid and add it to the line below it (and before the next line that contains another userid) as a new field. The result would look …

How to join grouped and filtered fields on table?

I have this dataset that I want to group by user_id and sum the values by category id user_id category value 0 1 1 10 1 1 1 20 2 1 2 10 3 1 2 30 4 1 3 10 5 2 3 40 And I want a select returning …

How do I convert columns to rows

I have a table like below, there are two address primary and secondary (some EnId has 3 address): I need to convert it into a row like below: I try this SQL statement, but it returns random data. …

how to make cohort analysis in mysql

I have a table called order_star_member: DB Fiddle I want to find users in the month March with transaction >= 700000 and first transaction >= 700000. The user whose transaction is >= 700000 is called star member. My query so far: Explanation: in march 2021, there’s only one ‘star member&…