Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9037171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:11:02+00:00 2026-06-16T09:11:02+00:00

CREATE OR REPLACE TYPE pack.D_O IS OBJECT( r number, l number, s_pack number(3), s_pack_name

  • 0
CREATE OR REPLACE TYPE pack.D_O IS OBJECT(
r number,
l number,
s_pack number(3),
s_pack_name varchar2(50),
n_uch number(5),
type_name varchar2(30),
date_att date,
cause_att number(2),
cause_att_name varchar2(250)
)

----------------------------------------------------------------------
CREATE OR REPLACE TYPE pack.D_T IS TABLE OF pack.D_O;

----------------------------------------------------------------------
CREATE OR REPLACE TYPE pack.d2_o IS OBJECT(
d NUMBER(5),
n VARCHAR2(75),
m VARCHAR2(75),
f number,
z pack.D_T
)

----------------------------------------------------------------------
select pack.d2_O(
manager,
name,
office,
regalias,
? -- how to fill "z" collection here?
)
from 
t1,t2
where 
.....
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T09:11:04+00:00Added an answer on June 16, 2026 at 9:11 am

    You need to create a D_T, with 0 or more D_Os:

    select pack.d2_O(
      manager,
      name,
      office,
      regalias,
      pack.D_T(
        pack.D_O(1,2,3,4,5,6,sysdate,8,9),
        pack.D_O(1,2,3,4,5,6,sysdate,8,9)
      )
    )
    from 
    t1,t2
    

    EDIT

    Or use CAST(COLLECT to populate Z from a subquery:

    select pack.d2_O(
      manager,
      name,
      office,
      regalias,
      (
        select cast(collect(d_o(a,b,c,d,e,f,g,h,i)) as d_t)
        from t2
      )
    )
    from 
    t1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I create a simple type: create or replace TYPE SIMPLE_TYPE AS OBJECT (ID NUMBER(38),
I have 2 types: CREATE OR REPLACE TYPE id_type AS OBJECT ( id NUMBER(19,
I have two types CREATE OR REPLACE TYPE my_record_type IS OBJECT ( name varchar2(30)
If someone does something like: CREATE OR REPLACE TYPE some_type AS OBJECT(whatever NUMBER); and
DROP TYPE Position; CREATE OR REPLACE TYPE Position AS OBJECT (longitude NUMBER(11,7), lattitude NUMBER(11,7),
I have a user-defined type: create or replace type my_message_type as object (relatedid varchar2(50),
Create user defined type in oracle CREATE OR REPLACE TYPE CUSTOMER_NAME AS OBJECT(FIRST_NAME VARCHAR2(20),LAST_NAME
I created a simple Oracle type: create or replace TYPE MY_TYPE AS OBJECT (ID
Suppose I have a user defined type: CREATE OR REPLACE TYPE TEST_TYPE AS OBJECT
i have a type as follows: CREATE OR REPLACE TYPE tbusiness_inter_item_bag AS OBJECT (

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.