2 Answers - Sort by: Date | Rating
Normally the term query is used in database systems. These term usually refers to the commands written in a non procedural language (like SQL) to manipulate a data base.
The use of these queries (in a non procedural language) improves the application interface. The user just specifies what to do without defining how to do the requested tasks on database. Thus it hides the low level implementation details from the user. It allows the user to specify complex tasks in a simple way while hiding the internal physical organization of data.
The query is actually a statement that extracts specific information from the database. A query specifies the relation name, field names, and predicated and a clause that specifies the task that is to be performed on that data. The query can also define the criteria for extracting the data from the database relations.
There are different uses of a query as:
1. Extracting the records from the database that satisfy the defined criteria.
2. To sort the records of a relation in a specified order.
3. To display the specified fields of a relation.
4. To add or delete the records as well as fields from a relation in the database.
The use of these queries (in a non procedural language) improves the application interface. The user just specifies what to do without defining how to do the requested tasks on database. Thus it hides the low level implementation details from the user. It allows the user to specify complex tasks in a simple way while hiding the internal physical organization of data.
The query is actually a statement that extracts specific information from the database. A query specifies the relation name, field names, and predicated and a clause that specifies the task that is to be performed on that data. The query can also define the criteria for extracting the data from the database relations.
There are different uses of a query as:
1. Extracting the records from the database that satisfy the defined criteria.
2. To sort the records of a relation in a specified order.
3. To display the specified fields of a relation.
4. To add or delete the records as well as fields from a relation in the database.
0
0
A query is command which is used to manipulate data in the database. The query can be used to create the database structure. We can use queries to create tables, to insert data into tables, to modify data from the tables and to delete the data from the tables.
Different types of query languages are used for this purpose. The most commonly used language is SQL (Structured Query Language). The other query languages are DMX, Datalog, XQuery, CODASYL, MDX, SPARQL, OQL and OPath. The query languages are the high level programming languages. These languages use human like syntax. All most all the Database Management Systems supports query languages.
The query languages have the data definition commands to define the structure of the database or we can say to create, modify or delete the tables. Data manipulation commands to insert, retrieve, modify and merge the data. Transaction controls to start, commit or rollback the transactions. Data control commands to authorize the users for specific actions.
The examples of the queries are as follows:
Create table table_name (column_name data type(size), column_name data type(size), ...)
This command is used to create a table with specified columns and its data type.
Different types of query languages are used for this purpose. The most commonly used language is SQL (Structured Query Language). The other query languages are DMX, Datalog, XQuery, CODASYL, MDX, SPARQL, OQL and OPath. The query languages are the high level programming languages. These languages use human like syntax. All most all the Database Management Systems supports query languages.
The query languages have the data definition commands to define the structure of the database or we can say to create, modify or delete the tables. Data manipulation commands to insert, retrieve, modify and merge the data. Transaction controls to start, commit or rollback the transactions. Data control commands to authorize the users for specific actions.
The examples of the queries are as follows:
Create table table_name (column_name data type(size), column_name data type(size), ...)
This command is used to create a table with specified columns and its data type.
0
0
- Why Do We Use Pointers In C?
- What Is Hierarchical Communication?
- What Are The Difference Between Front-end And Back-end Languages..? Can U Plz Give Some Examples Of Both..?
- Can I Do Initial Programming On Line?
- How Will You Use Monitors For Process Synchronization?
- Can School Loop Be Used?
- What Is An Example Of A String Base^?
- What Is An Event Horizon?
- Q. How Many Types Of Anomalies Are There In A RDBMS?
- Write A C# Application That Accept 2 Numbers And One Operator From The Keyboard And Display The Result?
- How Many Types Of Data Structures Are There?
- What Are The Differences Between Static Global Variables And Local Global Variables In JAVA Programming?
- What Is Entity Integrity?
- What Is Integrity Constraints?
- What Are The Risks Using Database?
- Write A Program To Display A String With An Embedded Quote:"Sachin Has Played A Game Of His Life"?
- Can Anyone Give Me The Code In C++ For Reversing A Linked Circular Queue Using Pointers?
- Create A Class Time And Its Data Members Are Hours,mins And Secs And Operator Overload +,-,==,!,>,?
- Write A Program In C To Find The Area Of Rectangle, Area Of Circle, Area Of Cube Using Overloading Function?
- How To Create Algorithm And Flowchart Of Fibonacci Series?
- What Is A Referential Anomaly?
- Why Java Is Popular In Market?
- What Does The Following Coe Print. Systemout.println("*")?
- How To Create A Java Program That Accepts 3 Numbers (num1, Num2, Num3) And Sort Them In Ascending And Descending Order?
- Who Is Dummy?

New Comment - Comments are editable for 5 min.