Lab Manual Activities of Term-2 Class 10
Lab Manual Activities of Term-2 Class 10
Lab Manual Activities of Term-2 Class 10
Write the steps to create table with minimum five fields on an entity
"STUDENT" in design view.
a)
b)
c)
d)
e)
f)
g)
Q4.
Objective: Query creation using wizard
Task: Create table Marksheet (Using SQL Command )and perform the bellow given queries
Stud_No Integer 2
Name Text 15
RollNo Integer 3
1. In the Database file Add these Fields: (Total: Datatype- Number 3 digits, Percentage:
Datatype - Number 3 digits with 2 decimal places, Grade: Datatype- Char with 2 letters)
2. Insert more 3 records in MARKSHEET using SQL mode.
3. Display name, rollno, marks of 3 subjects, total and percentage using design view.
4. Display name, rollno, grades from the marksheet table using query wizard.
5. Display the maximum marks for Sub101 and minimum marks for Sub102 using design view.
6. Display the rollno, name and percentage whose percentage are more than 70 using design
view.
7. Display all the record in ascending order of names using design view.
Solution
create table “marksheet” (“Stud_no” tinyint primary key, “Name” varchar(15), “RollNo” tinyint,
Output
Queries
1. Add Columns
1. Add column Total → alter table "marksheet" add column "Total" tinyint
decimal(5,2)
3. Add column grade → alter table "marksheet" add column "Grade" char(2)
2. Insert records
1. insert into "marksheet" values (101, 'Sagar', 105, 27, 25, 28, 80 , 88 , 'B1')
3. Select the table marksheet and Select the fields given the question.
4. Click on finish.
Output
5. Display maximum marks and minimum marks for the fields given in the question, using
design view.
5. Choose the function maximum under Sub101 and Minimum under Sub102.
view
4. Select columns given in the question i.e. Rollno, Name and Percentage.
Output
7. Display all the record in ascending order of names using design view.
1. Click Queries → Create Query in Design View….
2. The query design window will open.
3. Select the marksheet table and click on Add button.
4. Select markesheet.* and name in the column list.
5. Select sort → ascending under name field.
6. Now click on Visible checkbox to hide the name column in result.
Output
Q5. Write the steps to create instant messaging account for google talk