0% found this document useful (0 votes)
22 views5 pages

DBMS - 1

Uploaded by

roy.ramkumar77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views5 pages

DBMS - 1

Uploaded by

roy.ramkumar77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

MAHARASHTRA VIDYAPEETH, PUNE

TILAK COMPUTER APPLICATIONS (B.C.A.)


BACHELOR OF DECEMBER2023
EXAMINATION:
SEMESTER
FORTH Database Management System
Lab-Advanced
BCA-448) Time: 10:00 am to 5:00 pm
(BCA-447-18/ : 60
Sub: Total Marks
09/12/23
Date : follows
is as
Bifurcation of marks
Instruction: to 2019)
batch2015
60Marks (for
Total Marks 20
Programme 20
Programme 2 20
Viva
[101
least 5 valid records )
proper constraints ( Enter at
following table with Feespaid, Course )
1) Create [10]
Name, City, Bithdate,
Student( Rollno,
Solve month of 'May'.
details of student born in the
1. Display
2. Display
maximum feespaid.
student living in
'Mumbai'.
3. Display details of name starts with A'.
of student whose
4. Display details
[10]
2) Solve
to accept a number and print
reverse of that number.
a) Write a PL/SQL block sum of even numbers. [10]
a PL/SQL block to accept 10 numbers and print
b) Write

at least 5 valid records ) [10]


proper constraints ( Enter
1)Create following table with
Occupation, Duebalance )
Customer ( Custno, Name, City, Birthdate,
[10]
Solve
1. Display details customer living other than 'Pune' city.
of

occupation.
2. Display details of customer eliminating duplicate
or greater than 10000.
3. Display details of customer whose dubalance is less than 5000
year 1980.
4. Display details of customer born in the
2) Solve
a Write a PLISQL block to accept a number and print sum of digits of that number. [10]
b) Write a PL/SQL block to accept 2 numbers and print table of numbers between range of that
numbers. [10]

following table with proper constraints ( Enter at least 5 valid records )


1) Create
[10]
Employee (Empid, Ename, Salary, Joindate, Deptname, Commission )
TILAK MAHARASHTRA VIDYAPEETH, CB
BACHELOR OF COMPUTER APPLICATIONS PUNE
(B.C.A)
SPECIALIZATION IN CYBER SECURITY
(CS)
EXAMINATION: DECEMBER - 2023
SEMESTER- IV
Sub: Advanced Databasc / Advanced Database Management
System
(BCA– 444-18/BCA-444-20/BCA-CS-444-20)
ate :
21/12/2023 :
Total Marks 60 Time: 2.00 pm to 4.30 pm
Instructions:
1. All questions are
compulsory unless and otherwise stated.
Z. Boldfigures to the right
of every question are the maximum marks for that question.
3. Candidates are
advised to attempt questions in orer.
4. Answers written illegibly are likely to be mnarked zero.
5. Use of scientific calculators, Log tables, Mollier
Charts is allowed.
6. Draw neat and labeled diagrams necessary.
wherever

1. Fill in the blanks.


(5)
1.
used to identify a point in a transaction to which you can later rollback.
1S

a) Commit b)Savepoint
c) Lock d) Rollback
2. Functions that act on a set of values are
called as functions.
a) Single b) Group
c) Scalar d) OneValue
3 To reduce redundant data to the minimum possible, an object is created
called a
a) View b) Index
c) Cluster d) Key
4
Cursor defined by the users are called cursor.
a) Explicit b) Implicit
c) Users d) Public
The clause allows removing duplicates from the result set.
a) Null b) Alternate
c) Distinct d) Remove
2.
State True/False. (5)
1. Business rules that have to be applied to data are completely system dependent.
2. Privileges once given cannot be taken back by the owner of the object.
3. A rollback statement is used to make permanent changes.
4. The table in which the foreign key is defined is called as detail table.
5. The having clause imposes a condition on the Group By clause.

3. Answer the following. (Solve any 5) (10)


1. Explain drop table command.
2 List out general cursor attributes.
3 Write a syntax of Grant command.
4
What is cursor ?
5 State the difference between Column level & Table level constraints.
6. List out aggregate functions.
(Solve any 6) (30)
following in detail.
Answer the
Q. 4. subquery.
1. Explain in detail commands in detail.
Table'
Explain 'Alter
2. statement in detail. into
3. Explain If
1. Create Table 2. Insert
commands
4. Explain functions.
string cursor.
Explain any 3 statements related to
5. Fetch, Close
Explain Open,
6.
types in PL/SQL.
7. Explain data (10)
(Solve any 1)
following in detail.
Q.5. Answer the loops in PL/SQL.
1. Explain in detail
sequence.
2. Explain in detail

Advanced Database/Adyanced Database Management System (BCA -444-18/RCAAAA.2OBCACS444-20) ALI 2/2


TILAK MAHARASHTRA VIDYAPEETH,
BACHELOR OF COMPUTER APPLICATIONS
PUNE
EXAMINATION : DECEMBER 2023 (B.C.A)
FORTH SEMESTER
(BCA-447-20 /BCA-CS-447-20) Lab-Advanced Database Management
Sub:
System
Date : 09 /12 /2023 Total Marks : 30 Time: 10:00 am
to 5:00 nm

1) Create following table with proper constraints (Enter at least 5 valid records )
Book (Bookno, Bookname, Author, No_Of_Pages, Price )
2) Write a PL/SQL block to accept a number and print reverse of that number.
[151
1) Create following table with proper constraints (Enter at least 5 valid records )
Customer ( Custno, Name, City, Birthdate, Phoneno, Duebalance )
Solve -
[O5)
a) Display name of customer living in Mumbai' or 'Delhi.
b) Add column State' to customer table.
2)Write a PL/SQL block to accept a number and check whether it is positive, negative or zero. [
101

1)Create following table with proper constraints ( Enter at least 5 valid records )
Book ( Bookno, Bookname, Author, No Of _Pages, Price ) [15]
2) Write a PL/SQL block to accept 2 numbers and print table even numbers between
of
that range of that numbers.
[15]
1) Create following table with proper constraints ( Enter at least 5 valid
records ) [15]
Customer ( Custno, Name, City, Birthdate, Phoneno,
Duebalance )
Solve
a) Display Custno, name, city of customer whose duebalance [05]
is less than 5000 or
name starting with S.
b) Display total duebalance.

2)Write a PL/SQL block to accept a number and


check whether it is divisible by 5. [10]
1) Create following table with proper
constraints (Enter at least 5 valid records)
Book ( Bookno, Bookname, Author, No Of
Pages, Price )
[15]
2) Write a PL/SQL block to accept a
number and print sum of digits that number. [15]
1) Create following table with proper
constraints ( Enter at least 5 valid records )
Student ( Rollno, Name, City, State, Birthdate,
Course, Marks )
[15]
Solve -
a)Display rollno, name marks student [05]
of who are living in 'Pune' and having
greater than 75. marks
b) Display details of student who are living in
'Mumbai' and studying in the 'MCA'
Course.
3) Write a PL/SQL block to accept a number
if the number is odd print table of that number | 10J
[10)
Solve
of employee getting commission.
1.Display details ename.
in descending order of
employee than15000
2. Display details of employee whose salary is greater
ename, salary of
3. Display empid, of'June'.
customer join in the month
4. Display
details of
count of vowels in that string. [10]
2) Solve accept a string and print
block to is positive, negztive or
a) Write a PL/SQL a number and check whether the number
accept
Write a PL/SQL block to [10]
b)
zero.

records) [10]
proper constraints ( Enter at least 5 valid
table with [10]
1)Create following Birthdate, Occupation,
Duebalance )
City,
Customer ( Custno, Name,
Solve
customer whose name starts with “P".
1. Display details of
duebalance.
2. Display total
customer eliminating city.
3. Display details of on 10" November 1980.
customer born
4. Display details of
2) Solve sum odd numbers between that range. [10]
print
a) Write a PL/SQL
block to accept 2 numbers and using max)
numbers and print maximum number. (without
to accept 3
b) Write a PL/SQL block [10]
function ).

) [10]
table with proper constraints (Enter at least 5 valid records
1) Create following )
Empid, Ename, Salary, Joindate, Deptname, Commission
Employee ( [10]
Solve
of employee getting commission.
1. Display details ename.
Display details of employee in descending order of
2. greater than15000.
ename, salary of employee whose salary is
3. Display empid,
customer join in the month of June'.
4. Display details of
2) Solve Without using length)
a) Write a PL/SQL block to
accept a string and print length of string. (
[10]
function ). without using min)
to accept 3 numbers and print minimum number. (
b) Write a PL/SQL block [10]
function).

You might also like