I have a massive table with over 1.3B records. This table is based on web event level data. It has a uniqye key in mongo_id. The table has many duplicate records; but for these duplicate records, the …
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 …
Oracle Apex 20.1 Set Status to ‘Fullfilled’ or ‘Pending’ based on overall project status
in my table I have a column for a project which can have multiple project milestones (second column). Each of the milestone can have the value ‘fullfilled’ or ‘pending’ as current_status (third column)…
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 …
Column is not being grouped exception in Scatterplot
I am trying to create a Scatter chart in OmniSci with a Y-Axis set to the following custom measure: but the chart fails to render and throws the following exception: What would be the best way to “group by” the footage_drilled field so that it complys with the Scatterplot requirements? Answer I be…
Snowflake regex with rlike to return a bool gives unexpected result
Want a bool back 1 or 0 if field ‘name’ contains string ‘IOS_PROD’. Tried: case when rlike(c.name, ‘IOS_PROD’) then 1 else 0 end as IOS Returns all 0s instead of a mix of 1s and 0s as expected. How …
Can you Help me to write optimize sql query? [closed]
My query too much time to execute for fetching data. SELECT `app`.*, `pat`.`title`, `email_address`, `bad_debtor`, `county`, `date_of_birth`, `dentist_id`, `doctor_id`, `ethnicity`, `first_name`, `…
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&…