Академический Документы
Профессиональный Документы
Культура Документы
Viva : 10 marks
Logbook : 5 marks
Practical : 15 marks
Q-1 Create following tables. Give Primary key in each table. Provide appropriate
constraints to the tables. [5]
1. Find the names of all clients having ‘a’ as the second letter in their names.
2. Find out the clients who stay in a city whose First letter is ‘a’.
3. Find the list of all clients who stay in ‘Kadi ‘Kalol.
4. Print the list of clients who’s Balance_Due is greater than value 10000.
5. Display the order information for Client_No ‘C1001’ or ‘C1002’.
KADI SARVA VISHWAVIDYALAYA
BCA SEM-III REGULAR [PRACTICAL EXAMINATATION]
NOVEMBER -2014
307-DATABASE MANAGEMENT SYSTEM-II
Date: Time:______ To_____
Viva : 10 marks
Logbook : 5 marks
Practical : 15 marks
Q-1 Create following tables. Give Primary key in each table. Provide appropriate
constraints to the tables. [5]
1. Find the names of all Salesman having ‘a’ as the second letter in their names.
2. Find out the Salesman who stay in a city whose First letter is ‘a’.
3. Find the list of all Salesman who stay in ‘Kadi ‘Kalol.
4. Print the list of Salesman’s name who’s Sales amount is greater than value 15000.
5. Display the order information for Salesman_No ‘S1001’ or ‘S1002’.
BCA SEM-III REGULAR [PRACTICAL EXAMINATATION]
NOVEMBER -2014
307-DATABASE MANAGEMENT SYSTEM-II
Date: Time:______ To_____
Viva : 10 marks
Logbook : 5 marks
Practical : 15 marks
Q-1 Create following tables. Give Primary key in each table. Provide appropriate
constraints to the tables. [5]
Viva : 10 marks
Logbook : 5 marks
Practical : 15 marks
Q-1 Create following tables. Give Primary key in each table. Provide appropriate
constraints to the tables. [5]
Employee_ID Job_Code
1 MENG
2 DMGR
3 DMGR
4 DMGR
5 MENG
6 SECR
7 DMGR
8 DMGR
9 DMGR
10 DMGR
1. List LastName, FirstName and Job_Code of each employee from the two tables.
2. List the LastName, FirstName from employees table with the value ‘MA’ in state column.
3. Find the number of rows in the Employees table.
4. Display the number of unique values in the state column of the employees table.
5. Display first name and state whose last name start with ‘J’
BCA SEM-III REGULAR [PRACTICAL EXAMINATATION]
NOVEMBER -2014
307-DATABASE MANAGEMENT SYSTEM-II
Date: Time:______ To_____
SET-5 TOTAL MARKS: 30
Viva : 10 marks
Logbook : 5 marks
Practical : 15 marks
Q-1 Create following table structure. Provide appropriate constraints to the tables. [5]
Table Name:- Student
Field Data Type Constraint
Name
Sid Number(3) Primary Key
Fname Char(20) Not Null
Lname Char(20) Not Null
Sadd Varchar(30)
spno Number(10) Unique
Semail_id Varchar(40)
City Char(15) Not Null
Zip_code Number(6) Not Null
Check sid>=300
1. In the above table add one column (Semester), which has default value as ‘Sem3’.
2. In the above table delete the column Zip_code.
3. Change the data type of Sadd to char(50).
4. Display name of the student whose id between 300 and 318.
5. Display name and city of the student whose city has second letter ‘a’
KADI SARVA VISHWAVIDYALAYA
BCA SEM-III REGULAR [PRACTICAL EXAMINATATION]
NOVEMBER -2014
307-DATABASE MANAGEMENT SYSTEM-II
Date: Time:______ To_____
Viva : 10 marks
Logbook : 5 marks
Practical : 15 marks
Q-1 Create following tables. Give Primary key in each table. Provide appropriate
constraints to the tables. [5]
Dept (Deptno,Dname,Loc)
Employee (Empno, Empname, Job, Mgr, Hireddate, Sal, Comm, DeptNo)
Viva : 10 marks
Logbook : 5 marks
Practical : 15 marks
Q-1 Create following table structure. Provide appropriate constraints to the tables. [5]
Table Name:- empinfo
Field Data Type Constraint
Name
First name Char(20) Not Null