answersLogoWhite

0

In a programming language (such as Basic, C, COBOL, FORTRAN, and so on), you write lines of code that perform one operation after another until the program completes its tasks. The program may execute its lines of code in a linear sequence or loop to repeat some steps or branch to skip others. In any case, when writing a program in a procedural language, the programmer specifies what is to be done and how to do it.

SQL, on the other hand, is a query language in that you tell SQL what you want to do without specifying exactly how to accomplish the task. The DBMS decides the best way to perform the job.

Suppose, for example, that you have a CUSTOMER table, and you want a list of customers that owe you more than $1,000.00. You could tell the DBMS to generate the report with this SQL statement:

SELECT

NAME, ADDRESS, CITY, STATE, ZIP, PHONE_NUMBER,

BALANCE_DUE

FROM

CUSTOMER

WHERE

BALANCE_DUE > 1000.00

If writing a procedural program, you would have to write the control loop that reads each row (record) in the table, decides whether to print the values in the columns (fields), and moves on to the next row until it reaches the end of the table. In SQL, you specify only the data you want to see. The DBMS then examines the database and decides how best to fulfill your request.

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

What is the difference between QBE and SQL?

Query by Example (QBE) is a database query language for relational databases. A QBE parser parses the search query and looks for the keywords. A more formal query string, in languages such as SQL, is then generated, which is finally executed. However, when compared with a formal query, the results in the QBE system will be more variable.SQL (Structured Query Language) SQL is a set-based, declarative query language, not an imperative language such as C or BASIC. However, there are extensions to Standard SQL which add procedural programming language functionality, such as control-of-flow constructs


What is a special language used to write computer programs?

SQL which stands for Structured Query Language The term you are looking for is programming language.


What is structure query language?

ADVANTAGES :)- 1.Its a high speed language. 2.There is not much of coding required like codind of programming languages. 3.Its emphasize on the concept of ORDBMS. Disadvantages:(- only 1 Its not v.user friendly!!


Difference in hibernate 2.0 and hibernate 3.0?

Enhanced Hibernate Query Language Enhanced Hibernate Criteria Query API Enhanced support for queries expressed in the native SQL dialect of the database


What kind of programming language is dbase?

It is a 3rd Generation or High Level language, specifically designed for working with databases, namely dBase ones. It works in a runtime environment so it is an interpreted language, but dBase does contain a compiler. It can also be compiled using a Clipper compiler.