-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL ADDED IN LANG FOLDER #94
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,120 @@ | ||||||||||
--- | ||||||||||
lang: SQL | ||||||||||
syntax: SQL | ||||||||||
title: SQL is a high-level declarative computer language. | ||||||||||
author: kunalcodes007 | ||||||||||
--- | ||||||||||
|
||||||||||
```SQL | ||||||||||
SELECT studentID, FirstName, LastName, FirstName + ' ' + LastName AS FullName | ||||||||||
FROM student; | ||||||||||
``` | ||||||||||
|
||||||||||
## 🐍 What is SQL? | ||||||||||
|
||||||||||
SQL is a domain-specific language used in programming and designed for managing data held in a relational database management system (RDBMS), or for stream processing in a relational data stream management system (RDSMS). It is particularly useful in handling structured data, i.e. data incorporating relations among entities and variables. SQL offers two main advantages over older read–write APIs such as ISAM or VSAM. Firstly, it introduced the concept of accessing many records with one single command. Secondly, it eliminates the need to specify how to reach a record, e.g. with or without an index. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standardization (ISO) in 1987. Since then, the standard has been revised to include a larger set of features. Despite the existence of standards, most SQL code requires at least some changes before being ported to different database systems. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
### 🤔 Why is SQL so popular? | ||||||||||
|
||||||||||
There are many reasons for the ubiquity of sql , including : | ||||||||||
|
||||||||||
- **Easy to Learn and Use** | ||||||||||
|
||||||||||
- **Mature and Supportive Community** | ||||||||||
|
||||||||||
- **Efficiency, Reliability, and Speed** | ||||||||||
|
||||||||||
- **First-choice Language** | ||||||||||
|
||||||||||
- **The Flexibility of sql Language** | ||||||||||
|
||||||||||
- **Use of sql in academics** | ||||||||||
|
||||||||||
## 📚 Why to use SQL? | ||||||||||
|
||||||||||
We got why `sql is so popular` at the moment above, but why should one learn how to implement it? Aside from the ease of use and versatility mentioned above, there are several good reasons to learn sql: | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
- **sql developers are in demand :** Across a wide range of fields, there is a [demand for those with sql skills]. If you’re looking to start or change your career, it could be a vital skill to help you. | ||||||||||
kunalcodes007 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
|
||||||||||
- **It could lead to a well-paid career :** Data suggests that the median annual salary for those with sql skills is [around $85,000 in the Us]. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
### 🧐 What is sql used for? | ||||||||||
|
||||||||||
1. **back-end developement** | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
2. **Data analytics** | ||||||||||
3. **Finance** | ||||||||||
4. **marketing** | ||||||||||
5. **data science** | ||||||||||
|
||||||||||
Comment on lines
+48
to
+50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
## 🛠️ Tools You Will Need | ||||||||||
|
||||||||||
You are probably familiar with Windows as they are widely used throughout the world. The latest version of Windows is Windows 10. Generally, you should be on the latest version of the OS, but if you have an older machine or other software requires it, you might be stuck with Windows 7 or older. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
If you go for Windows, there are some shell options for you. Windows comes with the Command line, but also Powershell. Powershell feels more like a normal terminal you would know from the Linux- or Mac world. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
Most text editors and IDEs work on macOS. | ||||||||||
|
||||||||||
macOS, like Windows, is not Open source, but it comes with the machine. macOS only works on a Mac (officially) so you are tied down to Apple hardware. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
## ⚙️ Setting up Python development environment | ||||||||||
|
||||||||||
One of the most important things you’ll do when working with any programming language is setup a development environment which allows you to execute the code you write. Without this, you will never be able to check your work and see if your website or application is free of syntax errors. | ||||||||||
|
||||||||||
#### **⚙️ How to Get Started with SQL** | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
As you already know SQL is used to communicate with the database, so before you start experimenting with SQL, you need access to a database system first. | ||||||||||
|
||||||||||
You can test or execute most of the SQL statements provided as examples throughout the tutorials, using our online SQL editor. This SQL editor uses Web SQL Database to store and access data on the client side. However, to execute some SQL statement you'll need access to a full-fledged database management system like MySQL, SQL Server etc. | ||||||||||
|
||||||||||
Note: Web SQL Database allows you to create SQL databases and make SQL calls on the client side. It is based on the popular and open source SQLite engine. Web SQL is supported by Chrome, Opera and Safari browsers. | ||||||||||
|
||||||||||
**What is Relational Database** | ||||||||||
|
||||||||||
A relational database is a database divided into logical units called tables, where tables are related to one another within the database. Relational database allows data to be broken down into logical, smaller, and manageable units for easier maintenance and better performance. | ||||||||||
|
||||||||||
Tables are related to one another through common keys or fields in a relational database system, that's why even though the desired data may exist in more than one table, you can easily join multiple tables together to get combined data set using a single query. | ||||||||||
|
||||||||||
Note: SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standardization (ISO) in 1987. Although, most SQL code is not completely portable among different database systems without adjustments. | ||||||||||
|
||||||||||
**Setting Up Work Environment for Practicing SQL** | ||||||||||
|
||||||||||
If you have no DBMS (Database Management System) already installed on your system, you have several options to choose from. You can install a free, open-source DBMS. | ||||||||||
|
||||||||||
MySQL is the most popular and widely supported open-source database management system. It is very easy to download and use and available for both Windows and Linux (or UNIX) operating system. You can download it freely from here https://dev.mysql.com/downloads/mysql/ | ||||||||||
|
||||||||||
You can also install SQL Server Express. It is a free version of Microsoft SQL Server which allows up to 10GB of database storage. You can download the express edition from here https://www.microsoft.com/en-in/download/details.aspx?id=30438. | ||||||||||
|
||||||||||
Alternatively, if you're planning to develop an application with PHP and MySQL you can install WampServer or XAMPP. WampServer is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database. It will also provide the MySQL administrative tool PhpMyAdmin to easily manage your databases using a web browser. You can download it from here http://www.wampserver.com/en/ | ||||||||||
|
||||||||||
**⚙️ Which Version Should I Use?** | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
Long story short, it’s entirely up to you which version of SQL you use! There’s no right or wrong answer, and it’s painless to make the jump from one version to another should you realize you need to do so later on. | ||||||||||
|
||||||||||
## 💻 Popular SQL IDEs/Editors | ||||||||||
|
||||||||||
- **Adminer** | ||||||||||
- **DBeaver** | ||||||||||
- **HeidiSQL** | ||||||||||
- **RazorSQL** | ||||||||||
- **Valentina Studio** | ||||||||||
|
||||||||||
## 🎉 Some cool projects in SQL | ||||||||||
|
||||||||||
- **. Online Phone Shop Display** | ||||||||||
- **e-ticket Booking** | ||||||||||
- **Book Store Inventory Management** | ||||||||||
- **Library Management System** | ||||||||||
- **Bank Database Display** | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might want to provide links to projects that have been made using SQL. Let us know if you need any help. 😄 |
||||||||||
|
||||||||||
AND MUCH MORE!!!! | ||||||||||
|
||||||||||
## ✨ Conclusion | ||||||||||
|
||||||||||
That concludes our look at what SQL can be used for. | ||||||||||
|
||||||||||
There are many reasons why you might want to start learning SQL. It’s a future-proof and in-demand skill that’s required across all kinds of industries. What’s more, we have a broad selection Of SQL courses that can help you either master the basics or develop some more specific skills. | ||||||||||
|
||||||||||
## 🤗 Thanks for Reading! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra unneeded space.