answersLogoWhite

0

📱

Database Programming

Databases are collections of tables that maintain and display information, often collaboratively; this information can be used for interaction with an application or gaining general knowledge. Questions about database engines and modifying or using them belong in this category.

8,803 Questions

Will view drop if table drop?

If the dropped table is a base table for a view , then dbms like oracle invalidates these dependent views but does not drop them. But you cannot use these unless you re-create the table.

How do you make a round smiley face on the computer?

press the shift Bar and then the : colon Bar and the press shift and the nine at the same time and it will automatically change to a round smiley face isn't that cool

What is difference between fixed length record and variable length record?

A file where all the records are of the same length is said to have fixed length records.

Advantage : Access is fast because the computer knows where each record starts.

Eg If each record is 120 bytes long then

  • the 1st record starts at [Start of File] + 0 bytes
  • the 2nd record starts at [Start of File] + 120 bytes
  • the 3rd record starts at [Start of File] + 240 bytes etc.....

Disadvantage : Using Fixed length records, the records are usually larger and therefore need more storage space and are slower to transfer (load or save).

One or more of the fields can be of differing lengths in each record, called variable length records

Advantages:

  • the records will be smaller and will need less storage space
  • the records will load faster

Disadvantages:

  • The computer will be unable to determine where each record starts so processing the records will be slower.

What is the name of a common database?

it describes the instance of one entity is associated with each instances of an entity

depending upon the range of cardinality constraints are two types

they are

minimum cardinality

maximum cardinality

Types of facilities of a multiuser DBMS?

The answer is similar to the functions of DBMS

Data Storage, Retrieval and Update

A User-Accessible Catalog

Transaction Support

Concurrency Control Services

Recovery Services

Authorization Services

Support for Data Communication

Integrity Services

Services to Promote Data Independence

Utility Services

-Afif Omar IIUM 2011/2012 (AAFCO)

What is data normalizaton?

Data Normalization - is the process of evaluating and correcting table structures to minimize data redundancies and reduce data anomalies (insert, update and delete).

It works through a series of stages called normal forms, typically 1,2 and 3 and uses the technique of identifying functional dependency to check compliance at each stage.

Basically it attempts to store data only once and in the correct place, so that when any changes are made to the database there is no chance that there is another copy of this information stored somewhere else and hence could lead to the above mentioned (insert, update and delete) anomalies.

What are the basic surface entities?

Basic surface entities refer to fundamental elements that can be observed or identified on a surface. These typically include features such as texture, color, shape, and material composition. In various fields, such as materials science, geography, and computer graphics, understanding these entities helps in analyzing and interpreting surface characteristics and behaviors. They serve as the foundational components for more complex surface interactions and analyses.

What is week entity sets?

In a relational database, a weak entity is an entity that cannot be uniquely identified by its attributes alone; therefore, it must use a foreign key in conjunction with its attributes to create a primary key.

Wikipedia

What is a field that contains a unique value?

It can be referred to as a UNIQUE column. Such columns can be a:

  • Primary Key
  • Unique Key or
  • Candidate Key

in a database table

Why create view in database?

A View is similar to a Table and can be mistaken for a table by a novice application developer.

CREATE VIEW VIEW_NAME AS SQL QUERY

Here the SQL Query includes the Select query on a table that is to be displayed as a View.

The view is a read only structure that only displays contents from a table and the user cannot insert or update or delete any data in the underlying table.

Views are generally created to impose access restrictions to a specific subset of users whom you do not want to give full access but at the same time want them to view the data.

What are the Problems of traditional file processing?

  1. Program-Data Dependence. File descriptions are stored within each application program that accesses a given file.
  2. Duplication of Data. Applications are developed independently in file processing systems leading to unplanned duplicate files. Duplication is wasteful as it requires additional storage space and changes in one file must be made manually in all files. This also results in loss of data integrity. It is also possible that the same data item may have different names in different files, or the same name may be used for different data items in different files.
  3. Limited data sharing. Each application has its own private files with little opportunity to share data outside their own applications. A requested report may require data from several incompatible files in separate systems.
  4. Lengthy Development Times. There is little opportunity to leverage previous development efforts. Each new application requires the developer to start from scratch by designing new file formats and descriptions
  5. Excessive Program Maintenance. The preceding factors create a heavy program maintenance load.
  6. Integrity Problem. The problem of integrity is the problem of ensuring that the data in the database is accentuate.

What does a Database management system contain?

A DBMS contains a set of Schemas, tables and views that are used to stored/organize user information logically. The user has options to view, insert, update and delete the data present in the tables.

  • DBMS
    • Schema 1
      • Table 1
        • Column 1
        • Column 2
        • Column 3
        • ...
      • Table 2
      • Table 3
      • ...
    • Schema 2
    • Schema 3
    • ...

Why do you need computerized decision support system?

A decision support system (DSS) is a computer-based information system that supports business or organizational decision-making activities. DSSs serve the management, operations, and planning levels of an organization and help to make decisions, which may be rapidly changing and not easily specified in advance.

  1. Improves personal efficiency
  2. Speed up the process of decision making
  3. Increases organizational control
  4. Encourages exploration and discovery on the part of the decision maker
  5. Speeds up problem solving in an organization
  6. Facilitates interpersonal communication
  7. Promotes learning or training
  8. Generates new evidence in support of a decision
  9. Creates a competitive advantage over competition
  10. Reveals new approaches to thinking about the problem space
  11. Helps automate managerial processes

What does each column in a database represent?

Each column in a database table represents an attribute reg. the data that is held in that table. For ex:

Table Employee can contain employee number, name, age, date of joining etc. Each of these items would be stored as individual columns in the Employee table.