Showing posts with label dbms. Show all posts
Showing posts with label dbms. Show all posts
DBMS:1)In dbms no relationship concept
2)It supports Single User only
3)It treats Data as Files internally
4)It supports 3 rules of E.F.CODD out off 12 rules
5)It requires low Software and Hardware Requirements.
6)FoxPro, IMS are Examples

RDBMS:
1)It is used to establish the relationship concept between two database objects, i.e, tables
2)It supports multiple users
3)It treats data as Tables internally
4)It supports minimum 6 rules of E.F.CODD
5)It requires High software and hardware requirements.
6)SQL-Server, Oracle are examples

dbms 1.  relational database managment system
           2.  it consist of realtions,tuples(rows)
           3. normatization is not there

           4. multiple user can access it at same 
dbms  1. database managment system
           2. consist of files,records
           3. nomalization is there
           4. multiple user can access it at same time

Relationship among tables is maintained in a RDBMS whereas this not the case DBMS as it is used to manage the database.
• DBMS accepts the ‘flat file’ data that means there is no relation among different data whereas RDBMS does not accepts this type of design.
• DBMS is used for simpler business applications whereas RDBMS is used for more complex applications.
• Although the foreign key concept is supported by both DBMS and RDBMS but its only RDBMS that enforces the rules.
• RDBMS solution is required by large sets of data whereas small sets of data can be managed by DBMS.


A DBMS has to be persistent, that is it should be accessible when the program created the data ceases to exist or even the application that created the data restarted. A DBMS also has to provide some uniform methods independent of a specific application for accessing the information that is stored.

RDBMS is a Relational Data Base Management System Relational DBMS. This adds the additional condition that the system supports a tabular structure for the data, with enforced relationships between the tables. This excludes the databases that don't support a tabular structure or don't enforce relationships between tables.
Many DBA's think that RDBMS is a Client Server Database system but thats not the case with RDBMS.

Yes you can say DBMS does not impose any constraints or security with regard to data manipulation it is user or the programmer responsibility to ensure the ACID PROPERTY of the database whereas the rdbms is more with this regard bcz rdbms define the integrity constraint for the purpose of holding ACID PROPERTY.

I have found many answers on many websites saying that
DBMS are for smaller organizations with small amount of data, where security of the data is not of major concern and RDBMS are designed to take care of large amounts of data and also the security of this data.

DBMS is mainly a storage area and it does not employ any tables for storing the data or does not use any special function keys or foreign keys for the retreival of the data. RDBMS has the major difference of solving the queries easily, as they are stored in table format and use many functional keys in solving the queries. They follow the Codd's rule..





BASIC DBMS INTERVIEW QUESTIONS AND ANSWERS FOR FRESHERS

Data base management system (DBMS) is software, which is a collection ofprograms that enable user to create, modify, alter and delete the data. There are different types of DBMS ranging from small systems to mainframes used for huge process. Storing data can also be done using files but DBMS allows you to save the data easily and access it easily by providing security, reducing redundancy. Thus resulting data integrity, maintaining data base.
(Q) Describe the level of data abstraction?
(A) There are three levels for data abstraction
Physical level: The lowest level of abstraction describes how data are stored
Logical level: Next higher level in abstraction, describes which data is stored and relation between them
View Level: This describes the part of entire database
(Q) List the advantages of DBMS?
(A) Here is the list of advantages of using DBMS
1. Redundancy is controlled. (Duplication is controlled)
2.  Unauthorized access is restricted. (Restriction others to access data base information)
3. Providing multiple user interfaces. (Providing multi user access also limiting their permission)
4. Enforcing integrity constraints.
5.  Providing backup and recovery. (Back memory provided when data base crash occurs)
(Q) What is DBMS?
(A) DBMS is software that provides the user process of defining, creating, altering the data for various applications.
(Q) When we give SELECT * FROM EMP; How does oracle respond:
(A) When we ask the query SELECT * FROM EMP; the database server check all the data in the EMP file and it displays the data of the EMP file on the screen.
(Q) What is the difference between VARCHAR() and VARCHAR2()?
(A) Varchar means fixed length character data (size) i.e., min size-1 and max-2000
Varchar2 means variable (Dynamic) length character data i.e., min-1 to max-4000
(Q) Which command displays the SQL command in the SQL buffer, and then executes it?
(A) LIST or L command is used to get the recent one from SQL Buffer.
(Q) What is Difference between DBMS and File System?
(A) DBMS and File system are two ways of saving data, including managing data.
File System: It is a collection of raw data files stored in hard drive.
DBMS: It is a bundle of application that is dedicated for managing data stored in databases
In File System, files are used to store data while, collections of databases are utilized for the storage of data in DBMS. In file system storing altering data done manually. DBMS provide automated methods to complete managing data.
(Q) What is difference between DELETE and TRUNCATE?
(A) Both the commands are used to delete or remove the data from table, where as TRUNCATE is a DDL command and it can`t be rolled back. DELETE is a DML command and it can be roll back.
TRUNCATE deletes the data permanently while using DELETE  we can again get back the data.(ROLL back).
(Q) What is advantage of using trigger?
(A) Trigger used when we need to validate a DML statement that modifies a table. Also to update automatically when DML command is executed. Triggers can be used to enforce constraints.
(Q) What is use of WITH GRANT OPTION and GRANT command?
(A) These commands give privilege to grant his/her privileges to other users.
(Q) What is difference between SQL and SQL SERVER?
(A) SQL (sequel) is a language that provides an interface to RDBMS, developed by IBM. SQL SERVER is a RDBMS just like Oracle, DB2.
(Q) Write a query to find second maximum value from a table?
(A) select max (sal) from tname where sal= (select max (sal) from tname where sal< (select max (sal) from tname);
(Q) Write a query that returns only duplicate rows with number of times they are repeated, if table has duplicate values?
(A) SELECT COL1 FROM TAB1 WHERE COL1 IN (SELECT MAX (COL1) FROM TAB1 GROUP BY COL1 HAVING COUNT (COL1) > 1)