Beruflich Dokumente
Kultur Dokumente
CAP200
Managing Database
Submitted to: Submitted by:
Respected Ankur Singh
Gargi Sharma mam Roll no:-
Re3801a29
Reg no:-
10800943
Homework1
Part A
Q1. Properties satisfied by a transaction for a transfer of funds from one bank account to
another. Evaluate.
Ans 1
DBMS basically consist of these this which helps in transaction for
transfer of fund from one bank to another bank.They are
explained as follows:-
Q3. We have a problem that would arise if the responsibilities were not discharged.
For this problem list five responsibilities of a database management system.
Ans 3
1:-Database Administration(responsibility)
This is one of the important responsibility that the DBMS should take
care of
Problem arise:-As you can see that this are main administrative task
and failure of which result in the whole system crash down therefore
this responsibility are must.
Problem arises This responsibility result in fixing the fixes and failure
result in crashes
4:- Security
Part B
Q4. Give at least two reasons why database system support data manipulation
using a declarative query language such as SQL, instead of just providing a
library of C or C++ functions to carry out data manipulation.
Ans 4
First of all the c and c++ both uses the sql in built function and if the
question ask about the difference between traditional file and
database.
But if we don’t have this function then the the possibilities limits as
there are extra large procedure and typical handler even for small
query therefore sql prefers.
2:-Global accessibility
As we know that sql dml today are embedded in every part of the
webapplication and language we have same rule in any language for
these therefore we need this.
Ans 5
a)
CREATE TABLE Customer(cid varchar(10),cname VARCHAR(50),city
VARCHAR(50),rating varchar(10));
INSERT INTO Customer (‘1’,'Ankur','Punjab','10.1');
INSERT INTO Customer (‘2’,'Ankush','Punjab','9.1');
SELECT AVG (rating) FROM Customer
SELECT SUM (rating) FROM Customer
SELECT COUNT (rating) FROM Customer
b)
The result using SUM and COUNT would be smaller than the result
using AVERAGE if there are tuples with rating = NULL. This is because
all the aggregate operators, except for COUNT, ignore NULL values. So
the first approach would compute the average over all tuples while
the second approach would compute the average over all tuples with
non-NULL rating values. However, if the aggregation is done on the
age field, the answers using both approaches would be the same
since the age field does not take NULL values.
The DBA defines the schema which contains the structure of the data
in the application. .The dba responsible for definig of scheme how
data is presented to the users.
The dba responsible for interacting with the users and understanding
users demand.
The DBA is responsible for integrity and security and responsible how
data are protected from others users and duplicity
The DBA is also responsible for back up and recovery of the data .it
includes where to store the data. how to store the data .which part of
data to be backup .and when to take back up.
• Monitoring Performance