Skip to content

Tag: sql

SQL group by with condition

Imagine i have a table like below: ID Score someOtherColumns 1 1 …. 2 1 ….. 3 4 …. 5 2 …. 6 1 …. where score can have an intger …

How to fix slow running SSIS package

I am trying to insert large amount of data from one table from PROD DB to table in Archive DB. Tables are with the identical schema and archive table is with drooped indexes and “Identity insert on”. …

My custom order by in criteria query/jpql

Is it possible to do my custom order by using criteria query or jpql in Java? In my table, I have a column – number type(for now, this column includes numbers such as 1, 2, 3, 5, 10). I would like to sort result in this order 2, 5, 1, 10, 3. How can I do it? Answer You have