Skip to content

Creating new data table on existing one

Hello I’ve got a question, how (if it possible), I can create new datatables with close same rows but if In column value is in string “/” for example ID column_param column_sym column_value …

how to convert this sql query to liquibase query

I have table like this I need to delete all duplicated rows with equals A nad B value and lower C value after running sql script i need to have only this row with top C Value for every equals A and B columns this is the sql query i am using how to convert it to liquibase query Answer

Boolean value not being changed in database

Hey folks I’m having a problem with my code. For some reason when I try to change the value to false, it doesn’t reflect in my SQL Database. I debugged and it does get set via Java, but it doesn’t transfer over. I’m working on a notification service class and it sets the values on ther…

Combining Data from Multiple Rows in Simple Database

I am new to using SQL. I have constructed the following simple database, which has the ID of music albums and the number of copies bought. In the album_ID column, there are two pieces of data with ID 1. They have quantity_bought values of 10 and 4. Is it possible to combine these two rows into one row which h…

sql: query to find max count with extra columns as well

Input table:events GOAL I want max(distinct user) grouped by month column. my final result need two columns one is month and another one is max_count I need output similar to this I followed some approach Approach1: if i follow this approach, it is just giving me only max_count but i need month column as well…