Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
-is supported by virtually every DBMS
-Acess, MS SQL, Oracle, MySQL
Guidelines
1. You must design queries appropriately, identifying the required fields, tables, criteria, sorting, grouping, and operations to use.
Select the fields
Determine the sort order
Determine grouping
Determine any update operations to be performed
Commands
Select-extracts data
Update-
Delete
Insert into
Create database
Alter database
Create table
Alter table
Create index
Drop index
General form
SELECT field_1
FROM table_1
WHERE criterion_1;
Example
SELECT*FROM Customers *wildcard character
Other SELECT options: SELECT DISTINCT and Count
= equal
<> not equal
< greater than
> less than
>= g or equal
<= l or equal
BETWEEN range
LIKE search for a pattern
IN specify multiple possible values
=======================================================
Logical operators (and, or, not)
AND syntax
SELECT*FROM Customers
WHERE condition1 AND condition2 AND condition3;
SELECT*FROM Customers
WHERE City='Berlin' AND City='Munchen';
In the AND table------>the conditions must all be true to make the result true
=======================================================
OR
SELECT*FROM Customers
WHERE City='Berlin' OR City='Munchen';
In the OR table------>one of the the conditions must be true to make the result true
======================================================
In the NOT table------>reserve true or false
NOT
SELECT*FROM Customers
WHERE NOT City='Berlin';
SELECT*FROM tblEmployees
WHERE deptname = 'MIS';
Select and group students by subjects
SELECT*FROM tblStudents, tblSubjects
GROUP BY subjectcode;
Select and group employees by department
Select and group students by subjects
SELECT*FROM tblEmployee, tblDepartment
GROUP BY deptcode;
Display all students whose grade is above 90
SELECT*FROM tblStudents WHERE grade>90;
=========================================================General Form
SELECT field_1
FROM table_1
WHERE criterion_1;
=========================================================
SELECT command
UPDATE command-used to update existing records in a talbe
SET column1=value1, column2=value2,...
WHERE some_column=some_value;
Sample:
UPDATE Customers
SET ContactName='Name',
City='Hamburg'
WHERE CustomerName='Name';
Like--only used for comparison
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team