21.What is cross join?Cross join is defined as the Cartesian product of records from the tables present in the join. Cross join will produce result which combines each row from the first table with the each row from the second table. 22.What are temporal data types in Oracle?Oracle provides following temporal data types:
23.How do we create privileges in Oracle?A privilege is nothing but right to execute an SQL query or to access another user object. Privilege can be given as system privilege or user privilege. 24.What is VArray?VArray is an oracle data type used to have columns containing multivalued attributes and it can hold bounded array of values. 25.How do we get field details of a table?
Describe <Table_Name> is used to get the field details of a specified table.
26.What is the difference between rename and alias?Rename is a permanent name given to a table or a column whereas Alias is a temporary name given to a table or column. Rename is nothing but replacement of name and Alias is an alternate name of the table or column. 27.What is a View?View is a logical table which based on one or more tables or views. The tables upon which the view is based are called Base Tables and it doesn’t contain data. 28.What is a cursor variable?A cursor variable is associated with different statements which can hold different values at run time. A cursor variable is a kind of reference type. 29.What are cursor attributes?Each cursor in Oracle has set of attributes which enables an application program to test the state of the cursor. The attributes can be used to check whether cursor is opened or closed, found or not found and also find row count. 30.What are SET operators?SET operators are used with two or more queries and those operators are Union, Union All, Intersect and Minus. 31. How can we delete duplicate rows in a table?Duplicate rows in the table can be deleted by using ROWID. 32.What are the attributes of Cursor?Attributes of Cursor are
• %FOUND
Returns NULL if cursor is open and fetch has not been executed Returns TRUE if the fetch of cursor is executed successfully. Returns False if no rows are returned. • %NOT FOUND Returns NULL if cursor is open and fetch has not been executed Returns False if fetch has been executed Returns True if no row was returned • %ISOPEN Returns true if the cursor is open Returns false if the cursor is closed • %ROWCOUNT Returns the number of rows fetched. It has to be iterated through entire cursor to give exact real count. 33.Can we store pictures in the database and if so, how it can be done?Yes, we can store pictures in the database by Long Raw Data type. This datatype is used to store binary data for 2 gigabytes of length. But the table can have only on Long Raw data type. 34.What is an integrity constraint?An integrity constraint is a declaration defined a business rule for a table column. Integrity constraints are used to ensure accuracy and consistency of data in a database. There are types – Domain Integrity, Referential Integrity and Domain Integrity. 35.What is an ALERT?An alert is a window which appears in the center of the screen overlaying a portion of the current display. 36.What is hash cluster?Hash Cluster is a technique used to store the table for faster retrieval. Apply hash value on the table to retrieve the rows from the table. 37.What are the various constraints used in Oracle?Following are constraints used:
38.What is difference between SUBSTR and INSTR?SUBSTR returns specific portion of a string and INSTR provides character position in which a pattern is found in a string. 39.What is the parameter mode that can be passed to a procedure?IN, OUT and INOUT are the modes of parameters that can be passed to a procedure. 40.What are the different Oracle Database objects?There are different data objects in Oracle –
|