Skip to content

CUSTOMER and purchased CATEGORY count details in Oracle SQL

I am having the below require. if anyone provide the solution it would be thankful Requirements:- Transaction of the customer who purchased in the below category Customers and purchased Category Total Number of customer from category level category and customer count I want to display the output life below ou…

Insert string at particular location on a loop

I have a csv file containing product numbers and I need to insert these into a string which will be later used as a SQL query. I can read and append the values fine but I cant format it correctly. …

How to convert list of comma separated Ids into their name?

I have a table that contains: I have the table that has the names of this tasks: I want to generate the following output I know this structure isn’t ideal but this is legacy table which I will not change now. Is there easy way to get the output ? I’m using Presto but I think this can be solved

Loop Concat in BigQuery

I have data like this : Time Route 11:03:01 home 11:03:04 category 11:03:10 product 11:03:21 cart I want to create this : Time Route Journey 11:03:01 …

How do i remove duplicate address line in plsql

I have org_name, add_line1 , add_line2, add_line3 which i have put on different lines by using (RTRIM(org_name) || CHR(32) || NVL2(RTRIM(org_name), CHR(32) || ‘line’ || CHR(32), ”) || RTRIM(…

How to write a mysql query for this requirement?

I have one table like below. I want to get the total number of books donated by donation_organization_group and distinct by donation_pledge. I wrote the sql query like below. select count(…