DATABASE LANGUAGES
A DBMS Provides two types of languages :
- Data - Definition Language - to define the data in the database.
- Data - Manipulation Language - to manipulate the data in the database.
The language used to define the data in the database is called as Data - Definition Language (DDL). In simple words, Data Definition Languages is used to create the database, alter the database and delete the database. The result of compilation of Data-Definition Language statements is a set of tables that is stored in a special file called data dictionary or data directory.A data dictionary is a file that contains metadata - that is, data about data. This file is consulted before actual data is read or modified in the database. This DDL is used by the conceptual schema to store (define) or retrieve (query) the records to/from the database respectively, where these records describes everything, i.e., entities, attributes and relationships.
There is yet another Data Definition Language - the Internal DDL or also known as data storage and definition language used by Internal schema which describes how data is actually stored. The result of compilation of the statements of this language specifies the implementation details of the database schemas - details are usually hidden from the users
DDL commands are create,Alter and Drop only.
Data - Manipulation Language (DML)
The language used to manipulate the data in database is called Data - Manipulation Language (DML). In simple words, Data - manipulation Language is used to retrieve the data from the database, insertion of new data into the database & deletion or modification of existing data.
The operation of retrieving the data from the database using DML is called as a query.
Simply we can say that, A query is a statement in the DML that requests the retrieval of data from the database. The portion of DML used to pose a query is known as query languages. We can use the terms query language and data - manipulation language synonymously. The query language contains commands to select and retrieve the data from the database. Commands are also provided to insert, update & delete the records.
Even, the pre - defined data - manipulation functions are provided by the DBMS which can be called into our programs directly by their names i.e., procedure calls.
A DML Manipulation the data basically in two types :
- procedural DMLs
- Non - procedural DMLs
- Procedural DMLs makes a user to specify two things. one is what data is to be retrieved and the second is to tell be procedure to how to get those data.
- Non - procedural DMLs makes a user to specify only one thing, that is, what data is to be retrieved i.e., without telling the procedure to how to get that data.
Data Sub - Language
The DDL and DML are collectively referred to as the data sub - language when embedded within a host language (Example : Cor COBOL etc).
Host Language
A relational DBMS supports an interactive SQL interface and users can directly enter SQL commands. This simple approach is fine as long as the task at hand can be accomplished entirely with SQL commands . In practice we often encounter situations in which we need the greater flexibility of a general - purpose programming language, in addition to the data manipulation facilities provided by SQL. For example, we may want to integrate a database application with a nice graphical user interface. To deal with situations, the SQL standard defined how SQL commands can be executed from within a program in a host language such as C or JAVA, the use of SQL commands within host language program is called embedded SQL or the statement (i.e.,not deceleration) can be used wherever a statement in the host language is allowed (with few restrictions). Of course, SQL statement must be clearly marked so that a preprocessor can deal with them before invoking the compiler for the host language. Also, any host language variable used to pass arguments into an SQL command must be declared in SQL.
SQL and QUEL only provide facilities to define and retrieve data. To extend the data manipulation operations of this languages, for example to separately process each type of relation, these languages have to used with a traditional high - level language. such a language is called a host language and the program is called the host program.
Get Database Languages notes from here Database Languages
ReplyDelete꧁ঔৣ☬Rishi Gour☬ঔৣ꧂:
ReplyDeletedatabase system structure in hindi
limitations of dbms in hindi
database system structure in hindi
data abstraction in hindi
ansi sparc architecture of dbms
Entity types in DBMS
relationship in dbms in hindi
degree of relationship in dbms in hindi
relational model in hindi
relational data structure in dbms
authorization in dbms in hindi
꧁ঔৣ☬Rishi Gour☬ঔৣ꧂:
ReplyDeleteTemporal Database
codd's rule in rdbms in hindi - रिलेशनल डेटाबेस मैनेजमेंट सिस्टम
Foxpro commands in hindi - foxpro in hindi
trigger in dbms : ट्रिगर
acid properties in dbms - computers in hindi
Query Optimization in hindi - computers in hindi
what is server in hindi ? : सर्वर
windows NT in hindi - computers in hindi
What is LAN Manager ?(in hindi)
꧁ঔৣ☬Rishi Gour☬ঔৣ꧂:
ReplyDeletefoxpro commands in hindi
foxpro commands in hindi
foxpro in hindi
array in hindi
Recovery technique in dbms । रिकवरी। recovery in hindi
Operators in foxpro। फॉक्सप्रो । operators in hindi
access control matrix । matrix hindi । matrix meaning in hindi
data model in hindi
normalization in dbms in hindi
database administrator in hindi । DBA in hindi
꧁ঔৣ☬Rishi Gour☬ঔৣ꧂:
ReplyDeletedistributed database in hindi and types of distributed database in hindi
ASP Full Form in Hindi
माइक्रोसॉफ्ट आउटलुक
SQL क्या है?
IEEE Full Form in Hindi
What is TCP/IP in Hindi
रिलेशनल डाटाबेस मैनेजमेंट सिस्टम (RDBMS)
ऑपरेटिंग सिस्टम क्या है
evolution of computer in hindi
Introduction to Computers in Hindi
꧁ঔৣ☬Rishi Gour☬ঔৣ꧂:
ReplyDeleteintroduction to internet and web technology mcq in hindi
what is fdma in hindi
नेटवर्क टोपोलॉजी क्या हैं और उसके कितने प्रकार हैं
OSI मॉडल क्या है?
नेटवर्क क्या है और नेटवर्क के प्रकार
डाटाबेस मैनेजमेंट सिस्टम क्या है