Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.
Transcript of Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.
![Page 1: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/1.jpg)
Management Information Systems
Introduction to Databases
Lab
Dr. Shankar Sundaresan
![Page 2: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/2.jpg)
2
MicroSoft Access
Go to the course web site Right click on the stocks database link Save it as YourLastNameStocksClassWork We will create queries and save it in the
database.
![Page 3: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/3.jpg)
3
MicroSoft Access
QBE Grid (Query By Example) Create Query in Design Wizard Add necessary tables Fill out the grid with
required fields from various tables displayed fields necessary filter conditions (criteria) sorting
Run Query Save Query View Results (datasheet view)
![Page 4: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/4.jpg)
4
Agenda
Finding and Displaying Information
simple queries
logical operators
logical connectors
data from multiple tables
Creating Tables / Entering data
Update / Deletion
![Page 5: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/5.jpg)
5
SQL in Microsoft Access
View or Modify an SQL statement Create query or open existing one From View Menu, choose SQL (SQL view
button) Change the SQL statement Choose run or datasheet to see results
Creating SQL-specific Queries Choose new query / existing query Choose SQL specific from Queries menu
![Page 6: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/6.jpg)
6
Finding and Displaying Information
Display all details of all customers
Display all stock details
Display name, gender and birthdate of all customers (demographics data)
Display ticker, company name and price of all stocks
![Page 7: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/7.jpg)
7
Finding and Displaying Information
Display all customers in Boston
Display all hardware industry stocks
Display name and city for male customers
Display ticker, and name for stocks traded in AMEX
![Page 8: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/8.jpg)
8
Multiple Conditions
AND
OR
NOT
Display Boston customers older than 40
Display NYSE stocks with beta exceeding 1
![Page 9: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/9.jpg)
9
Multiple Conditions
Display software stocks with eps exceeding 20 cents
Display software and hardware stocks with eps exceeding 20 cents
Display software and hardware stocks with eps exceeding 20 cents with a postive dividend
Display non-retail stocks with beta exceeding 1
![Page 10: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/10.jpg)
10
Using Logical Operators
= > , >= <, <= BETWEEN ... AND LIKE IS NULL IN ANY
![Page 11: Management Information Systems Introduction to Databases Lab Dr. Shankar Sundaresan.](https://reader036.fdocuments.in/reader036/viewer/2022082816/56649f525503460f94c7613e/html5/thumbnails/11.jpg)
11
Using Logical Operators
Display all stocks with beta in the range 0.8 to 1.2
Display all stocks with beta in the range 0.8 to 1.2 and eps exceeding 20 cents
Display all details of Dell Computer Display all details of stocks that start
with the letter D