Starting Oracle services on vmware
Hi, I am starting Oracle services on redhat LINUX , but unable to start " SQL * plus service" from console as well as from em(Oracle enterprise manager) error : "the connection was refused when attempting to contact localhost : 5560"
What kind of a query is this? How does it work?
Hi, I recently tried to get employee names and their dept names without a join condition, this query, although succeeds, I can't figure how it works. Please help. select ename,(select dname from dept where deptno=e.Deptno) from emp e;
Youre using a Sub-query -- [(select dname from dept where deptno = e.deptno)] -- to get around using a join clause like -- [FROM EMP E INNER JOIN DEPT D ON (D.DEPTNO = E.DEPTNO)] -- however, you are n...
SQL coins the term query as the name for its commands. Basically, all SQL code is written in the form of a query statement and then executed against a database. All SQL queries perform some type of da...
List the rules used to enforce table level integrity.
There are 3 rules to enforce table level integrity. 1.Foreign key value can be modified only if we want to match the corresponding primary key value. 2.We cannot delete records either from parent or c...
Functions for error trapping are contained in which section of a PL/SQL block?
The Exception section of the PL/SQL block contains the functions for error handling.
Name three activities involved in requirement gathering
Three activities involved in requirement gathering are
1.Eliciting requirement
2.Analyzing requirement
3.Recording requirement
Which types of trigger can be fired on DDL operation? a. Instead of triggerb. Dml triggerc. System triggerd. DDL trigger
The trigger which can be fired on DDL operator is DDL trigger.
What is the difference between SQL & T-SQL?
Answered by: NITIN TOMER
Answered On : Sep 6th, 2011sql is a structured query language........and t-sql is implementing on sql server........and t-sql having some more queries than sql .
Microsoft SQL Server have some more additions to Database Standard Query Language (SQL) is called T-SQL
SQL is the Structured Query Language. it is developed by IBM.
TSQL is the Transact SQL. it is implementation of the SQL server. it is developed by Microsoft.
TSQL is used in writing the procedure and some advanced concepts are written by this.
What is view? Types of views?Use of views?How to create view(syntax)?
view is called a temporarily table when we want to create the copy of any table as requirement column then we use the view
syntax-------------
create view (view name) as select (* or column name) from (table name);
A view is a virtual table, which provides access to a subset of columns from one or more tables. It is a query stored as an object in the database, which does not have its own data.
there are two type of join
1)inner join
inner join have a three type
I)equi join
II)nonequi join
III)self join
and outer join have a two type
I)right outer join
II)left outer join
and one is a ANSI join that a advance
Join,
Inner join,
Outer join,
Left join,
Right join,
Full join
Explain a one-to-many strong vs. One-to-many weak entity relationship.
entity relationship when attribute are connected to entity there are different different type attribute are available weak entity and strong entity when we are using key that called strong entity and when key are not connected that called weak entity
Weak Entity generally don't possess key attributes of their own whereas a Strong Entity possess its own key attributes that are independent of other entities. Weak entity is usually existence-dependent on another entity type and does not have enough attributes to form its own primary key.
Using examples differentiate between a DBMS, RDBMS and a distributed database
Been given this question from my son and he has told me that he googled the question but got no satisfactory answer. Would much appreciate an answer.
DBMS is a when data are not stored in table and RDBMS is used to all data are stored in table and distributed database when more than one table are connected with each other so its is called a distributed database
DBMS - It’s a software package combination of various computer programs which can be used to control, administer, maintain and use of the database. RDBMS - Its a database management system (DBMS) b...
What are the advantages and disadvantages in all normal forms in a DBMS?
normal are of five type 1) 1 normal form 2) 2 normal form 3) 3 normal form 4) 4 normal form 5) 5 normal form all normal are created to connected a table with each other and data are retrieve very ea...
Relationship between database and data warehouse
What is the relationship between a company's databases and its data warehouse?
Database is a structured collection of relational data. Database is used to store the relational, network or hierarchical data. It contains some sort of data and it is being used by the organization...
In simple words, a database is used to store information, and a data warehouse is used to query and analyse the stored data in several ways. Data warehouse helps business management to take important...
Difference between data abstraction, schema and instance
Difference between the three levels of data abstraction, and between a schema and instances.. Consider a two dimensional integer array of size n*m that is to be used in your favorite programming language. Using the array as an example, illustrate the difference (a) between the three levels of data abstraction,...
Data Abstraction means suppression of information / details of data organization and storage. Data Abstraction gives importance to mainly essential aspects in order to help better understanding of th...
Consider an organization by which you are familiar. If the organization is using file processing system then what are the problems organization will face?Explain with suitable examples.
What is the disadvantage of creating large number of indexes on a table?
There are a couple of reasons that I can think of for this:(1) The indexes that are created on a table occupy physical disc space, the more the number of indexes created, the more would be the s...
Defragmentation and re-organization
What is the difference between defragmentation (coalescing) and re-organization (rebuilding, moving)?
defragmentation is to make data take a small space in storing (to compress data) while re-og=rganization is to rebuild or rearrange the data
What is the relation between the store and the customers when they shop the products at that store?
The store table and the customer table would not have any direct relation. Instead, both of them would be pointing to a transaction table which would contain the store id and the customer id.
Explain the three data models and examine a range of issues that are intergral to database environment such as the end user and different platforms compatibility?
Physical model
Logical model
View model
You have been asked to design the following database diagram:“we would like to store a list of user’s in the database with their corresponding network of friends, groups, as well as any messages which are swapped between them. A user consists of a username, password, first name, last name and profile...
Database Admin Interview Questions
Microsoft Access Interview Questions
PostgreSQL Interview Questions
SQL Server Interview Questions
Stored Procedures Interview Questions