Skip to content
Advertisement

Tag: oracle

How can I join 4 tables

Please help to modify the below code. I want to join these two select queries such that I can get a single output with records from two diff tables ? I have 4 tables, table_a has the user id that I have to use to search table_b1 has the foreign key for table_c which has the name that I want

condition where a ‘ ‘ and a ” not working

I wrote a SQL to query table mat from an oracle db where column A is not null. Column A is varchar and its default value is ‘ ‘. I wrote the sql below: But it return an empty data set. Then I ran: This query worked. So what is the reason? Thx. Answer In Oracle, ” means NULL. Any

Not able to create a matrix in PL/SQL using nested tables

I was trying to create a matrix in PL/SQL using nested tables as such: firstly, I create a table type that is able to store varchars (that in my case is name lista_principala) secondly, using the previously declare table type lista_principala I try to create a table type that contains items of type lista_principala. I don’t think that I’m wrong

Rounding time to aggregate entries close in time

I am trying to sum together content_len that are entered into the database a few seconds apart (colour coded). The table currently breaks into a new row once the character count hits 999, and inserts each overflow a few seconds apart. Due to errors, the overflow can be timestamped earlier than the previous body. My current attempt is to round

Assign min value or max value based on a value change

HAVE WANT (Get min date when ct_val within the ID group is 0 across that ID group OR get max date within the ID group where ct_val is not 0 (that is it may contain a 1) across that ID group). For instance, if the ct_val within an ID group is 1, pick the maximum dt where ct_val within that

Advertisement