Skip to content

Tag: oracle

table in database rows

I have a table People, having people_id,people_name,people_lastname. I am facing difficulties creating a pl/sql function to display all the rows of that table. I have done this much so far Answer One option is to return refcursor:

Oracle SQL merge tables side by side

I have 3 select queries which i would like to merge side by side. The common column is name. I dont want to use UNION ALL solutions since my select queries might have many columns. name columna e1 1 name columnb h1 2 name columnc t1 3 The output i am looking for is: name columna columnb columnc e1 1

Select count on Oracle Query based on distinct condition

I am newbie with oracle pl/sql, right now using oracle sqldeveloper, i need help for my homework, how to make the column number 2, 3, 4, 5, 6, … count based on first value column, the DISTINCT OWNER ? can anyone help me? or suggest me with some hint? this is wrong, i need the count n other column based

IS NULL in CASE in predicates

tell me pls, that’s real – use the CASE construct, where the expression with IS NULL/IS NOT NULL will be returned in TNEN? I have a procedure in a package that receives an input parameter and it is …