You are on page 1of 5

Attempt These Questions

1. Write a Query That Can Get the Following Details From


Your User, When The Table Name is Supplied At Run Time?
a. Table Name
b. Tablespace Name
c. Status
2. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run Time?
a. Column ID
b. Table Name
c. Column Name
d. Data Type of The Column
e. Data Length
f. Declared Precision
g. Applied Scale
h. Null Status
3. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run Time?
a. Table Name
b. Tablespace Name
c. Status
d. Column ID
e. Column Name
f. Data Type of The Column
g. Data Length
h. Declared Precision
i. Applied Scale
j. Null Status
4. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run Time?
a. Constraint Owner
b. Constraint Name
c. Constraint Type, The Output Display Should Be As
Shown Below
1. U  Unique
2. P  Primary Key
3. R  Foreign Key
4. C  Check OR Not Null
d. Table Name
e. Delete Rule, if NULL Then Display “Not Specified”
f. Index Owner
g. Index Name
5. Write a Query That Can Get the Following Details From
Your User, When The Table Name And The Column Name is
Supplied At Run Time?
a. Table Name
b. Column Name
c. Constraint Name
d. Constraint Type, The Output Display Should Be As
Shown Below
1. U  Unique
2. P  Primary Key
3. R  Foreign Key
4. C  Check OR Not Null
e. Delete Rule, if NULL Then Display “Not Specified”
6. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run Time?
a. Table Name
b. Tablespace Name
c. Status
d. Column Name
e. Data Type of The Column
f. Data Length
g. Declared Precision
h. Applied Scale
i. Null Status
j. Constraint Name, If A Constraint is Not Found Then
Display “No Constraint”
k. Constraint Type, The Output Display Should Be As
Shown Below
1. U  Unique
2. P  Primary Key
3. R  Foreign Key
4. C  Check OR Not Null
l. Delete Rule, if NULL Then Display “Not Specified”
m. Display A Column With Total Number of Constraints
Found For Each Column.
n. Display A Column With Total Number of NOT NULL
Constraints Found For The Total Table.
o. Display A Column With Total Number of UNIQUE
Constraints Found For The Total Table.
p. Display A Column With Total Number of CHECK
Constraints Found For The Total Table.
q. Display A Column With Total Number of CHECK
Constraints Found For That Column.
r. Display A Column With Total Number of FOREIGN KEY
Constraints Found For The Total Table.
7. Write a Query That Can Get the Following Details From
Your User, When The Table Name And The Column Name is
Supplied At Run Time?
a. Table Name
b. Tablespace Name
c. Status
d. Column Name
e. Data Type of The Column
f. Data Length
g. Declared Precision
h. Applied Scale
i. Null Status
j. Constraint Name, If A Constraint is Not Found Then
Display “No Constraint”
k. Constraint Type, The Output Display Should Be As
Shown Below
1. U  Unique
2. P  Primary Key
3. R  Foreign Key
4. C  Check OR Not Null
l. Delete Rule, if NULL Then Display “Not Specified”
m. Display A Column With Total Number of Constraints
Found For That Column.
n. Display A Column With Total Number of CHECK
Constraints Found For That Column.
8. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run Time?
a. Table Name
b. Table Type
c. Table Owner
d. Column Name
e. Index Name
f. Index Type
g. Uniqueness Bit
h. Column Position
i. Ascending OR Descending Bit
9. Write a Query That Can Get the Following Details From
Your User, When The View Name is Supplied At Run Time?
a. Table Name
b. View Type
c. Read Only Bit
d. Query Text
10. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run
Time?
a. Sequence Name
b. Minimum Value
c. Maximum Value
d. Increment By Value
e. Cycle Flag
f. Order Flag
g. Cache Size
h. Last Number
11. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run
Time?
a. Table Name
b. Total Number of Columns
c. Total Number of Constraints
d. Total Number of Unique Constraints
e. Total Number Not Null Constraints
f. Total Number of Check Constraints
g. Total Number of Foreign Key Constraints
h. Total Number of Number Columns
i. Total Number of Character(Variable OR Fixed Length)
Columns
j. Total Number of Date Columns
k. Total Number of Other Data Type Columns
l. Total Number of Indexes
m. Total Number of Views
12. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run
Time?
a. Index Name
b. Index Type
c. Table Name
d. Table Owner
e. Uniqueness Status
f. Total Number of Rows in Table
13. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run
Time?
a. Index Name
b. Table Name
c. Column Name
d. Column Position
e. Order Status
14. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run
Time?
a. Table Name
b. Column Name
c. Index Name
d. Index Type
e. Order Status
f. Column Datatype
g. Data Length
h. Declared Precision
i. Applied Scale
j. Total Number of Indexes on The Table
k. Total Number of Indexes on The Column
15. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run
Time?
a. Table Name
b. Index Name
c. Column Expression
16. Write a Query That Can Get the Following Details From
Your User, When The Table Name is Supplied At Run
Time?
a. Table Name
b. Synonym Name
c. DB Link
17. Write a Query That Can Get the Details of The Public
Synonyms Existing in The System

You might also like