Professional Documents
Culture Documents
Presentation 9
Presentation 9
Presentation 9
by prajesh kumar
To give command to create a table click on tools
and select SQL from the dropdown menu
a dialog box appears:
On repeating this command for the rest of the data and this
will be the result:
Add these Fields: TOTAL Decimal(5,2), AVERAGE
Decimal(5,2) To
STUDENTREPORT table.
To add new fields to the table STUDENTREPORT, follow
these steps: Select the table >
Right click > Select the option Edit > the table Design
View window will open
Write SQL command to Display all the records of STUDENTREPORT
table using query.
In order to display all the records of the table click on the Queries option
available on the
left side under database section, click Create Query in SQL View.
A window appears and after entering this statement (select * from
studentreport) all the
data in the table will be displayed like so:
Update TOTAL column and display the table contents
To update TOTAL column click on tools and select the SQL option from the dropdown
menu, enter this statement into the dialog box that appears:
UPDATE <table_name>
[WHERE<condition>];
On repeating this command for all roll numbers, this will be the result:
Update AVERAGE column and display the table contents
To update AVERAGE column click on tools and select the SQL option
from the
dropdown menu, enter this statement into the dialog box that appears:
UPDATE <table_name>
[WHERE<condition>];
Write SQL command to Display all the records of STUDENTREPORT
table using query.
In order to display all the records of the table click on the Queries option
available on the
left side under database section, click Create Query in SQL View.
A window appears and after entering this statement (select * from
studentreport) all the
data in the table will be displayed like so:
Write SQL command to display ROLLNO, NAME , TOTAL from the
STUDENTREPORT table.
To display only Roll number, name and total from our table we will go to
“create
query in SQL view” and give this command