doc(cis105): add lecture note docuemtnation source for chapter 12 on sql operation with affiliated sidebar hyperlink component & lint markdown sources for 2 previous chapters

This commit is contained in:
Anda Toshiki 2024-03-28 13:49:00 -07:00
parent db613bc4d7
commit 49571a0965
4 changed files with 138 additions and 117 deletions

View File

@ -215,6 +215,10 @@ export const sidebar: DefaultTheme.Config['sidebar'] = {
text: 'Lect 11: Computer Security', text: 'Lect 11: Computer Security',
link: '/academic/cis105/cis105-l11-lecture-note', link: '/academic/cis105/cis105-l11-lecture-note',
}, },
{
text: 'Lect 12: Introduction to SQL'
link: '/academic/cis105/cis105l-12-lecture-note'
}
], ],
}, },
], ],

View File

@ -4,18 +4,18 @@
### 10.1: Business Website Alternative ### 10.1: Business Website Alternative
- Web development platforms (WDP): Website creation programs that help non-web developers develop a website for a relatively low price. - Web development platforms (WDP): Website creation programs that help non-web developers develop a website for a relatively low price.
- Web.com, Wix.com, Squarespace.com - Web.com, Wix.com, Squarespace.com
- A great option for business owners - A great option for business owners
- Search Engine Optimization - Search Engine Optimization
### 10.2: Early Website Technology ### 10.2: Early Website Technology
- Who created Hypertext Markup Language (HTML)? - Who created Hypertext Markup Language (HTML)?
- HTML is platform-neutral - HTML is platform-neutral
- What happens when you use the internet: - What happens when you use the internet:
- You don't visit websites, websites visit you - You don't visit websites, websites visit you
- Copies of request kept in client's cache - Copies of request kept in client's cache
```mermaid ```mermaid
graph LR graph LR
@ -24,60 +24,59 @@ A[You click on hyperlink] --> B[Web server ses HTTP to send copy of request to c
### 10.3: Hypertext Markup Language ### 10.3: Hypertext Markup Language
- The principal programming language for browsers - The principal programming language for browsers
- Elements: HTML represented in the form of tags that are enclosed by brackets: `</>` - Elements: HTML represented in the form of tags that are enclosed by brackets: `</>`
- `<meta></meta>`: Used to help search engines - `<meta></meta>`: Used to help search engines
- Will include info like web page's author, descriptions, and keywords - Will include info like web page's author, descriptions, and keywords
- Called meta keywords or meta-words. - Called meta keywords or meta-words.
- Link element: `<a href="www.youtube.com">Youtube</a>` - Link element: `<a href="www.youtube.com">Youtube</a>`
- Image element: `<img src="meadow.gif" alt="meadow"></img>` - Image element: `<img src="meadow.gif" alt="meadow"></img>`
- JavaScript: A client-side programming language used to build websites - JavaScript: A client-side programming language used to build websites
- Requires a Java-enabled browser to work - Requires a Java-enabled browser to work
- Ex: Countdown timer - Ex: Countdown timer
### 10.4: Websites Styles & Categories ### 10.4: Websites Styles & Categories
- Website categories: Personal, Commercial, Governmental, and **intranet** - Website categories: Personal, Commercial, Governmental, and **intranet**
- Static Website (AKA Brochure websites): Content typically designed with HTML; never changes - Static Website (AKA Brochure websites): Content typically designed with HTML; never changes
- Dynamic Websites: Generate web pages directly from the server depending on the context of the user - Dynamic Websites: Generate web pages directly from the server depending on the context of the user
- Ex: Social Media - Ex: Social Media
- Much more difficult to program, but are much easier to maintain - Much more difficult to program, but are much easier to maintain
### 10.5: Types of Websites ### 10.5: Types of Websites
- Blog: An online diary, originally called a web-log - Blog: An online diary, originally called a web-log
- Content Website: typically dispense original content and often supported by advertising - Content Website: typically dispense original content and often supported by advertising
- Corporate Website: Distribute info about a business - Corporate Website: Distribute info about a business
- Commerce Website (AKA E-Commerce site): to sell goods and services online - Commerce Website (AKA E-Commerce site): to sell goods and services online
- Search Engine Website: Offers general information and intended to be the entryway to other websites - Search Engine Website: Offers general information and intended to be the entryway to other websites
- Gaming Website: Typically, games unto themselves; require plug-ins like Adobe Flash, JavaScript, and ActiveX - Gaming Website: Typically, games unto themselves; require plug-ins like Adobe Flash, JavaScript, and ActiveX
- News Websites: Specifically devoted to providing news and commentary - News Websites: Specifically devoted to providing news and commentary
- School Websites: Typically used by teachers, students, parents, and administrators. - School Websites: Typically used by teachers, students, parents, and administrators.
- Video-sharing websites: Allow users to upload videos for a wider audience - Video-sharing websites: Allow users to upload videos for a wider audience
- Utilizes Users Datagram Protocol (UDP) - Utilizes Users Datagram Protocol (UDP)
### 10.6: Website Online Software ### 10.6: Website Online Software
- HTML is not a powerful programming language - HTML is not a powerful programming language
- Fat Client: Provides rich functionality on the client side; independent of a central server - Fat Client: Provides rich functionality on the client side; independent of a central server
- Ex: Microsoft programs - Ex: Microsoft programs
- Pros: More functionality, very powerful - Pros: More functionality, very powerful
- Cons: Expensive. Requires additional software and set up, requires more processing power - Cons: Expensive. Requires additional software and set up, requires more processing power
- Thin Client: A client that depends on a server for computing processing - Thin Client: A client that depends on a server for computing processing
- Ex: Web browsers - Ex: Web browsers
- Pros: Platform neutral, cheaper to maintain, better distribution of info - Pros: Platform neutral, cheaper to maintain, better distribution of info
- Cons: Not as powerful, less functionality, requires refreshing from the user - Cons: Not as powerful, less functionality, requires refreshing from the user
### 10.7: Online Advertising ### 10.7: Online Advertising
- Online Advertising: A form of sponsorship that uses the WWW for delivering business-marketing strategies - Online Advertising: A form of sponsorship that uses the WWW for delivering business-marketing strategies
- Examples: - Examples:
- Search Engine Results - Search Engine Results
- Native Advertising - Native Advertising
- Social Network Advertising - Social Network Advertising
- Banner advertisement - Banner advertisement
- Purchasing Online Advertising - Purchasing Online Advertising
- Cost Per Click (CPC) - Cost Per Click (CPC)
- Cost Per Thousand Impressions (CPM) - Cost Per Thousand Impressions (CPM)
- Cost Per Action (CPA) - Cost Per Action (CPA)

View File

@ -4,92 +4,81 @@
> Midterm reminder: March 28th - 29th > Midterm reminder: March 28th - 29th
> >
> - Exam Review after Chapter 11KC > - Exam Review after Chapter 11KC
> - 40 new questions, 10 KC questions > - 40 new questions, 10 KC questions
> - Same format as last time > - Same format as last time
### 11.1: System Security & Computer Privacy ### 11.1: System Security & Computer Privacy
- An unsecured computer is extremely easy to breach by any seasoned hacker - An unsecured computer is extremely easy to breach by any seasoned hacker
- Computer Security: Concerned with risk management, confidentiality, integrity, and the availability of the electronic info processed and stored within a computing system - Computer Security: Concerned with risk management, confidentiality, integrity, and the availability of the electronic info processed and stored within a computing system
- Risk Management: Includes the recognition, consequences, and assessment of risk to a computer's assets, and developing strategies to manage and protect them - Risk Management: Includes the recognition, consequences, and assessment of risk to a computer's assets, and developing strategies to manage and protect them
### 11.2: Business System Threats ### 11.2: Business System Threats
- Intranet: A businesses' private version of the internet - Intranet: A businesses' private version of the internet
- The key aspect of an intranet is privacy - The key aspect of an intranet is privacy
- Firewall: Hardware and software working together to ensure that only authorized personnel can access the business' intranet - Firewall: Hardware and software working together to ensure that only authorized personnel can access the business' intranet
### 11.3: Firewall ### 11.3: Firewall
- Without a firewall, an intranet is just another part of the internet - Without a firewall, an intranet is just another part of the internet
- Proxy Server: A special security computer that allows communication to flow in and out of an intranet to check for external threats - Proxy Server: A special security computer that allows communication to flow in and out of an intranet to check for external threats
- Two standard security practices for firewalls: - Two standard security practices for firewalls:
- Default-Deny - Default-Deny
- Default-Allow - Default-Allow
### 11.4: Malware Threats ### 11.4: Malware Threats
- The term "virus" comes from biology - The term "virus" comes from biology
- Malware Motivations: - Malware Motivations:
- Experimental Malware - Experimental Malware
- Worms - Worms
- Trojan Horses - Trojan Horses
- Spyware/Keylogging - Spyware/Keylogging
- Adware - Adware
- Spamming - Spamming
- Denial-of-Service Attach (DoS) - Denial-of-Service Attach (DoS)
- The deadliest - The deadliest
- Reverse Phishing - "Spear Phishing" - Reverse Phishing - "Spear Phishing"
### 11.5: Malware Solutions ### 11.5: Malware Solutions
- Antivirus Software - Antivirus Software
- Norton AntiVirus - Norton AntiVirus
- McAfee's VirusScan - McAfee's VirusScan
- System patches - System patches
- Data Backup - Data Backup
- Employee training - Employee training
### 11.6: Internet Fraud ### 11.6: Internet Fraud
- Internet fraud: Any fraudulent activity in an online setting - Internet fraud: Any fraudulent activity in an online setting
- Google AdSense, Google's advertising network; the middleman between the advertiser and the website owner - Google AdSense, Google's advertising network; the middleman between the advertiser and the website owner
- Click Fraud: a program that automatically clicks on Ads - Click Fraud: a program that automatically clicks on Ads
- Purchase Scam: scammer asks seller to pay for shipping via credit card, cancels credit card after order has shipped - Purchase Scam: scammer asks seller to pay for shipping via credit card, cancels credit card after order has shipped
- Most uncomplicated type of internet fraud - Most uncomplicated type of internet fraud
- Phishing: Uses social engineering techniques to gain private information - Phishing: Uses social engineering techniques to gain private information
### 11.7: Computer Privacy ### 11.7: Computer Privacy
- Privacy: The ability of an individual to keep their personal information out of public view - Privacy: The ability of an individual to keep their personal information out of public view
- Anonymous: One's personal identity Is not be known - Anonymous: One's personal identity Is not be known
- Tracking Cookie: A small text file that tracks your interaction on a website - Tracking Cookie: A small text file that tracks your interaction on a website
- History files: A list of stored or cached websites on a user's computer - History files: A list of stored or cached websites on a user's computer
> 50% of the time an unsecured computer can be hacked, and a password can be guessed > 50% of the time an unsecured computer can be hacked, and a password can be guessed
### 11.8: Identity Theft ### 11.8: Identity Theft
- Identity theft: A crime concerning the unlawful practice of assuming another individual's identity - Identity theft: A crime concerning the unlawful practice of assuming another individual's identity
- Ways to acquire personal information: - Ways to acquire personal information:
- Shoulder Surfing - Shoulder Surfing
- Dumpster Diving - Dumpster Diving
- SCAM - SCAM
- Stingy - Stingy
- Check - Check
- Ask - Ask
- Maintain - Maintain
- ASU's Recommended Password Manager: Stache - ASU's Recommended Password Manager: Stache
- Bitwarden, 1Password, Dashlane, Keeper, KeePass - Bitwarden, 1Password, Dashlane, Keeper, KeePass

View File

@ -0,0 +1,29 @@
# CIS105: Computer Applications & Information Systems Lect. 12
## Chapter 12: Introduction to SQL
### 12.1: SQL Getting Started
- Capture the data
- Point of Sale, Scanning, etc
- Get the data into a database
- Import from other systems
- Direct input from forms
- Extract the data
- SQL
- Use the data
- Analysis systems
- Reporting systems
- SQL: The language of relational databases
- Structured query Language
If you plan to analyze data for a business, there is a good chance it's stored in a data warehouse, and you will need to learn how to retrieve it yourself.
### 12.2: SQL Statement
- `SELECT`: What **fields** (column) you want
- `fieldname`: If the name is used in only one table
- `FROM`: What table or tables contain the fields
- `ORDER BY`: Sorting
- `DISTINCT`: Use after `SELECT` when you only want to show each vale of the selected field(s) once
- `LIMIT`: Use when you want to limit the number of records produced