Skip to content
Advertisement

Join on same column multiple times

how do I join on the same column multiple times, one of the tables is a configuration table with values and other is the data table. T1: T2 (Config table): I need to display the code and its relevant description for each ID. Expected Output: This is what I have tried so far, however, it is not giving me the

Calculated query with parameters in HANA/CrystalReports

I’m having trouble trying to explain my necessity, so I’ll describe the scenario. Scenario: Product A has a maximum production of 125KG at a time. The operator received a production order of 1027,5KG of product A. The operator have to calculate how many rounds he’ll have to manufacture and adjust the components quantity for each round. We want to create

Get a group of records by last unknown id

I have a log table where I want to select the entries for a specific group of records that are grouped by an id I don’t know. See the table below, there are more columns but these are not relevant for the question. I want to get the last entries of one process for one device When I query something

Using Case WHEN to extract with first character

I am using case as an if else statement in my hive database, it seems it is not showing what i am trying to extract as. i am using this script in logical concept if at character 44 starts with _ , substring at 45 , else substring at 45 e.g (table look like ) am i using like statement

Split String using SQL’s REGEXP_SUBSTR

I need to split a string like this (NUL) means a character with ASCII value 0. Don’t know how to type it here. I need to split this when (NUL)~ occurs. So the expected result after split is RANDOM(NUL)THIS_SHOULD_BE_SPLIT THIS_IS_NEW(NUL)STRING THIS_IS_ANOTHER_STRING(NUL) Using OracleDB not sure how it handles NULL characters and if it is possible to split it. To split

Advertisement