Skip to main content

important question on Database Management System(DBMS)

5) What are five main functions of a database administrator?
Answer: Five main functions of a database administrator are:
  • To create the scheme definition.
  • To define the storage structure and access methods.
  • To modify the scheme and/or physical organization when necessary.
  • To grant authorization for data access.
  • To specify integrity constraints.
6)List seven programming languages that are procedural and two that are non-procedural. Which group is easier to learn and use? Explain your answer.
Answer: Programming language classification:
  • Procedural: C, C++, Java, Basic, Fortran, Cobol, Pascal.
  • Non-procedural: Lisp and Prolog.
Note: Lisp and Prolog support some procedural constructs, but the core of both
these languages is non-procedural.
In theory, non-procedural languages are easier to learn, because they let the
programmer concentrate on what needs to be done, rather than how to do it. This is not always true in practice, especially if procedural languages are learned first.

7) List six major steps that you would take in setting up a database for a particular enterprise.
Answer: Six major steps in setting up a database for a particular enterprise are:
  • Define the high level requirements of the enterprise (this step generates a
    document known as the system requirements specification.)
  • Define a model containing all appropriate types of data and data relation-
    ships.
  • Define the integrity constraints on the data.
  • Define the physical level.
  • For each known problem to be solved on a regular basis (e.g., tasks to be
    carried out by clerks or Web users) define a user interface to carry out the
    task, and write the necessary application programs to implement the user
    interface.
  • Create/initialize the database.
8) Consider a two-dimensional integer array of size n × m that is to be used in your favorite programming language. Using the array as an example, illustrate the difference (a) between the three levels of data abstraction, and (b) between a schema and instances.
Answer: Let tgrid be a two-dimensional integer array of size n × m.
  • The physical level would simply be m × n (probably consecutive) stor-
    age locations of whatever size is specified by the implementation (e.g.,
    32 bits each).
  • The conceptual level is a grid of boxes, each possibly containing an integer, which is n boxes high by m boxes wide.
  • There are 2 m×n possible views. For example, a view might be the entire
    array, or particular row of the array, or all n rows but only columns 1
    through i.
  • Consider the following Pascal declarations:
    type tgrid = array[1..n, 1..m] of integer;
    var vgrid1, vgrid2 : tgrid
    Then tgrid is a schema, whereas the value of variables vgrid1 and vgrid2
    are instances.
  • To illustrate further, consider the schema array[1..2, 1..2] of integer. Two
    instances of this scheme are:

Comments

Popular posts from this blog

how to Install Numpy, Pandas and matplotlib on ubuntu 18.04 and Linux Mint

Install Python, NumPy,Matplotlib for Python 3 on Ubuntu 18.04, Linux Mint, Debian Linux. This is a short article about installing Numpy, Pandas , Matplotlib, Python3 on the latest Ubuntu 18.04 LTS, Linux Mint, Debian Linux which comes with Python 3.6.5. Let’s start by making sure we have an updated system: 1 sudo apt update 2 sudo apt upgrade Now, let’s install NumPy, Pandas,Matplotlib : sudo apt-get install python-pip sudo pip install numpy sudo pip install pandas sudo pip install matplotlib Test numpy : Open up a Terminal in Your Linux Operating System by running the following: python3 At the Terminal, type the following: >>> import numpy as np >>> np.__version__ '1.13.3'   Test Pandas : Open up a Terminal in Your Linux Operating System by running the following: python3 At the Terminal, type the following: >>> import pandas as pd >>> pd.__version__ '0.22.0'   Test Matpl...

SQL Alias With Example

SQL Alias An Alias is a shorthand for a table or column name. Aliases reduce the amount of typing required to enter a query. Complex queries with aliases are generally easier to read. Aliases are useful with JOINs and aggregates: SUM, COUNT, etc. An Alias only exists for the duration of the query. Alias Column Syntax SELECT column_name AS alias_name FROM table_name; Alias Table Syntax   SELECT column_name(s) FROM table_name AS alias_name; SQL Alias Examples 1) Example of Alias column    mysql> select name as alias_name from person; +-----------------+ | alias_name      | +-----------------+ | subham ball     | | jit             | | sajal           | | sourav biswas   | | sajal           | | chayan das...

What is Spiral Model

What is Spiral Model ? spiral model : The Spiral Model was first invented  by Berry Bohem in 1986. The Spiral Model is more emphasis placed on risk Analysis . Each phase of Spiral Model begin with a Design goal and ends with the Client Reviewing the progress . The Spiral Model has Four phases -  i) Planning (Design)                                                            ii) Risk Analysis                                                                   iii) Engineering           ...