ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Databases  >>  SQL PLSQL
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
I have 2 Databases. How can create a table in particular
database? How can i know the list of tables presented each
database?( in oracle 10g)
 Question Submitted By :: Raam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I have 2 Databases. How can create a table in particular database? How can i know the list of tables presented each database?( in oracle 10g)
Answer
# 1
suppose you have two databases: db1 and db2
you have to select one of them
as
sql>use db1;
then use
sql>select * from tab;
it will show you the listing required.!
 
Is This Answer Correct ?    8 Yes 1 No
Neeraj Sinha
 
  Re: I have 2 Databases. How can create a table in particular database? How can i know the list of tables presented each database?( in oracle 10g)
Answer
# 2
Suppose your 2 databases are name as PROD1 and PROD2
1) How can create a table in particular database?
=> First you have to connect to the database where you want 
to create table with given login and password.
and then if you have create permission than you can use 
following sql
CREATE TABLE "table_name"
("column 1" "data_type_for_column_1",
"column 2" "data_type_for_column_2",
... )

2) select * from tab; will show you how many tables,view or 
synonyms are there in your schema.
 
Is This Answer Correct ?    1 Yes 0 No
Amit
 
 
 
  Re: I have 2 Databases. How can create a table in particular database? How can i know the list of tables presented each database?( in oracle 10g)
Answer
# 3
you can also use the database links to get the data from 
other database tables. syntax is table_name@db_link.
 
Is This Answer Correct ?    0 Yes 0 No
Vishnu
 

 
 
 
Other SQL PLSQL Interview Questions
 
  Question Asked @ Answers
 
What are the default Oracle triggers?? CGI1
how can i create a user defined datatype  2
what is the need of the cursor attribute notfound..(because using found attribute we can complete the task......found + negation operator = not found ) Tech-Mahindra1
Wat is SGA ? ABB1
what is the difernece between named and anonymous pl/sql blocks?? TCS8
difference between pl/sql table and normal pl/sql table  2
What is an Integrity Constraint?  4
what is difference between "Primary key" and "Unique key"? PreVator4
what is the difference between trigger and storedprocedures Tech-Mahindra10
How to trace the errors in pl/sql block code?  2
can use the following like overloading concept in a single package: procedure p1(a varchar), procedure p1(a varchar2), procedure p1(a char)  5
What is difference between TRUNCATE & DELETE? TCS12
How can i insert data inro a table with 3 columns using FORALL? Oracle2
Types of cursor locks and explanation each of them ? DELL2
Hi, Can anybody please explain me the flow of the below query. I am not able to understand how this query works. This query is for finding the Nth highest salary.. SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal); If N = 2 then second highest salary will be the o/p. If N = 3 then third highest salary will be the o/p. and so on.. Thanks, Nitin Ness-Technologies4
I need a exceptoin in pl/sql block so that if any errors occur in the block then no exception should errors should raise?  1
suppose we have a table in which 200 rows. i want to find 101 row ? what the query.... and how we find 4th and 5th highest salary and 1 to 10 highest salary  3
how to retrive only second row from table? IBM15
SELECT flavor, SUM (ice_cream_sales) FROM sales_detail GROUP BY flavor ORDER BY 2 DESC If the "sales_detail" table contains ten records with different values in the flavor column (two "vanilla," three "chocolate," four "strawberry," and one NULL), how many rows are returned by the sample code above? 1. 0 rows 2. 1 row 3. 3 rows 4. 4 rows 5. 10 rows Sonata7
How pl/sql source code can be protected?  2
 
For more SQL PLSQL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com