The document discusses various SQL concepts including creating and dropping databases and tables, data types, SQL statements for inserting, updating and deleting records, joining tables, and aggregation functions. It provides syntax and examples for commands like CREATE DATABASE, CREATE TABLE, INSERT, UPDATE, DELETE, SELECT, WHERE, GROUP BY, UNION and functions like COUNT, SUM, AVG, MAX, MIN. The document is meant as a guide for students to learn fundamental SQL concepts through explanations, syntax and hands-on activities like creating a table.
This tutorial will give you a quick start to SQL including examples. It covers most of the topics required for a basic understanding of SQL and to get a feel of how it works.
This is a word file for SQL COMMANDS and including some basic information regarding SQL. I hope it will help you a lot while doing SQL and its functions and commands.
This presentation features the fundamentals of SQL tunning like SQL Processing, Optimizer and Execution Plan, Accessing Tables, Performance Improvement Consideration Partition Technique. Presented by Alphalogic Inc : https://www.alphalogicinc.com/
This tutorial will give you a quick start to SQL including examples. It covers most of the topics required for a basic understanding of SQL and to get a feel of how it works.
This is a word file for SQL COMMANDS and including some basic information regarding SQL. I hope it will help you a lot while doing SQL and its functions and commands.
This presentation features the fundamentals of SQL tunning like SQL Processing, Optimizer and Execution Plan, Accessing Tables, Performance Improvement Consideration Partition Technique. Presented by Alphalogic Inc : https://www.alphalogicinc.com/
This book can teach you a variety of topics, depending on your level of experience with SQL Server and what you want to learn. Here are some of the topics that a typical MS SQL Server tutorial may cover:
Introduction to relational databases - A tutorial on MS SQL Server usually starts with an overview of the concepts and principles of relational databases, including tables, columns, rows, primary keys, and foreign keys.
Basic SQL queries - The tutorial may cover the basics of SQL syntax and teach you how to write simple SELECT, INSERT, UPDATE, and DELETE statements.
Advanced SQL queries - The tutorial may cover more complex SQL queries, including JOINs, subqueries, and aggregation functions.
Database design and normalization - The tutorial may cover the principles of database design and normalization, and teach you how to create and modify database schemas.
Stored procedures and functions - The tutorial may cover how to create and use stored procedures and functions to encapsulate SQL code and improve performance.
Database administration and security - The tutorial may cover topics related to database administration and security, including backups and restores, user permissions, and authentication modes.
These are just some of the topics that a MS SQL Server tutorial may cover. The specific content and level of detail will depend on the tutorial and the intended audience.
Introduction to Android ,Introduction to android ,History of android ,why develop apps for android? ,most popular platform for mobile apps , features of android & description ,what does android run on? ,android applications
Security Concern Related to Mobile Computing, Middleware and Gateway required for mobile Computing, Making Existing Application Mobile Enable , mobile technology
Unit 2 Design mobile computing architecture MC1514Swapnali Pawar
Design mobile computing architecture: Characteristics of Mobile Communication, Application of Mobile Communication, Security Concern Related to Mobile Computing, Middleware and Gateway required for mobile Computing, Making Existing Application Mobile Enable, Mobile IP, Basic Mobile Computing Protocol, Mobile Communication via Satellite • Low orbit satellite • Medium orbit satellite • Geo stationary satellite Satellite phones.
Introduction to Mobile Computing Concept of Mobile Communication, Different generations of wireless technology, Basics of cell, cluster and frequency reuse concept, Noise and its effects on mobile, Understanding GSM and CDMA, Basics of GSM architecture and services like voice call, SMS, MMS, LBS, VAS, Different modes used for Mobile Communication, Architecture of Mobile Computing(3 tier)
Noise & Its Effects on Mobile
Understanding GSM & CDMA
Basics of GSM Architecture
And services like voice call , SMS ,MMS ,LBS,VAS
Different Modes used for Mobile Communication
Architecture of Mobile Computing(3 Tier)
HTML forms ,Tables, Video Audio tags
Tables, layouts and frames: Table creation and layouts, frame creation and layouts. Multimedia: Audio, video and animation. Cascading style sheets: Basics, creation and use
Basics of Html & Web Programming
Overview of Internet Technology: Internet, web site, www, server, client, IP address, tcp/ip protocol. Detail Study of HTML: What is HTML, History, creating, installing, viewing, and checking web pages, TAGS, core HTML elements. HTML links and addressing: What are URL’s, linking in HTML, Anchor attributes, Image maps. Presentation and layout: Image preliminaries, HTML image basics, maps and buttons,Text colors and background: Fonts colors in HTML, color attributes for bod, background images
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
2. The SQL CREATE DATABASE Statement
The CREATE DATABASE statement is used to create
a new SQL database.
Syntax
CREATE DATABASE databasename;
Make sure you have admin privilege before creating any
database. Once a database is created, you can check it in the
list of databases with the following SQL command:
SHOW DATABASES;
DATABASE
Swapnali Pawar
3. The SQL DROP DATABASE
Statement
The DROP DATABASE statement is used to
drop an existing SQL database.
Syntax
DROP DATABASE databasename;
Note: Be careful before dropping a database. Deleting a
database will result in loss of complete information stored in
the database!
Swapnali Pawar
4. A. Tables
1.Basic Data Types-
char,varchar,varchar2,long,number,fixed
2.Commands to Create Table-
create table
3.Commands to Handle Tables-
Alter
Drop
Insert
Swapnali Pawar
5. 1.Basic Data Types-
• Each column in a database table is required to have a
name and a data type.
• An SQL developer must decide what type of data that
will be stored inside each column when creating a table.
• The data type is a guideline for SQL to understand what
type of data is expected inside of each column, and it
also identifies how SQL will interact with the stored
data.
Note: Data types might have different names in different
database. And even if the name is the same, the size and
other details may be different! Always check the
documentation!
Swapnali Pawar
6. In MySQL there are three main data types:
1.String 2.numeric 3.date and time.
1.String Datatype
Swapnali Pawar
9. 2.Commands to Create Table-
The CREATE TABLE statement is used to create a new table in a
database.
Syntax
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
Example-
CREATE TABLE Persons (
PersonID int,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
); Swapnali Pawar
10. 3.Commands to Handle Tables
Alter , Drop , Insert
Example
ALTER TABLE Customers
ADD Email varchar(255);
Swapnali Pawar
11. The SQL DROP TABLE Statement
The DROP TABLE statement is used to drop an
existing table in a database.
Syntax
DROP TABLE table_name;
Note: Be careful before dropping a table. Deleting a table will
result in loss of complete information stored in the table!
Example
DROP TABLE myfriends;
Swapnali Pawar
12. The SQL INSERT INTO Statement
The INSERT INTO statement is used to insert new records in a table.
It is possible to write the INSERT INTO statement in two ways:
1. Specify both the column names and the values to be inserted:
INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);
2. If you are adding values for all the columns of the table, you do not need to
specify the column names in the SQL query. However, make sure the order of
the values is in the same order as the columns in the table. Here, the INSERT
INTO syntax would be as follows:
INSERT INTO table_name
VALUES (value1, value2, value3, ...);
Swapnali Pawar
13. B. Commands for Record Handling
1. Update,Select,Delete
2. With arithmetic,comparision,logical operators
• And
• OR
• Between
• In
• Like
3. Order by
4. Group by
Swapnali Pawar
14. 1. Update,Select,Delete
UPDATE Syntax
The UPDATE statement is used to modify the existing records in a table.
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
DELETE Syntax
The DELETE statement is used to delete existing records in a table.
DELETE FROM table_name WHERE condition;
Be careful when deleting records in a table! Notice the WHERE clause in the DELETE statement.
The WHERE clause specifies which record(s) should be deleted. If you omit the WHERE clause, all
records in the table will be deleted!
SELECT Syntax
The SELECT statement is used to select data from a database.
The data returned is stored in a result table, called the result-set.
SELECT column1, column2, ...
FROM table_name;
Here, column1, column2, ... are the field names of the table you want to select data
from. If you want to select all the fields available in the table, use the following
syntax:
SELECT * FROM table_name;
Swapnali Pawar
15. 2. With arithmetic,comparision,logical operators
(And,OR,Between,In,Like)
AND Syntax- The AND operator displays a record if all the conditions
separated by AND are TRUE.
SELECT column1, column2, ...
FROM table_name
WHERE condition1 AND condition2 AND condition3 ...;
OR Syntax- The OR operator displays a record if any of the conditions separated
by OR is TRUE.
SELECT column1, column2, ...
FROM table_name
WHERE condition1 OR condition2 OR condition3 ...;
NOT Syntax- The NOT operator displays a record if the condition(s) is NOT TRUE.
SELECT column1, column2, ...
FROM table_name
WHERE NOT condition;
Swapnali Pawar
16. BETWEEN
The BETWEEN command is used to select values within a given range. The values can be numbers, text,
or dates.
The BETWEEN command is inclusive: begin and end values are included.
The following SQL statement selects all products with a price BETWEEN 10 and 20:
Example
SELECT * FROM Products
WHERE Price BETWEEN 10 AND 20;
SELECT * FROM Products
WHERE Price NOT BETWEEN 10 AND 20;
IN Operator
The IN operator allows you to specify multiple values in a WHERE clause.
The IN operator is a shorthand for multiple OR conditions.
SELECT column_name(s)
FROM table_name
WHERE column_name IN (value1, value2, ...);
Example
SELECT * FROM Customers
WHERE Country IN ('Germany', 'France', 'UK');
Swapnali Pawar
17. The SQL LIKE Operator
The LIKE operator is used in a WHERE clause to search for a specified pattern in a
column.
There are two wildcards often used in conjunction with the LIKE operator:
• The percent sign (%) represents zero, one, or multiple characters
• The underscore sign (_) represents one, single character
Note: MS Access uses an asterisk (*) instead of the percent sign (%), and a
question mark (?) instead of the underscore (_).
LIKE Syntax
SELECT column1, column2, ...
FROM table_name
WHERE columnN LIKE pattern;
SQL LIKE Examples
The following SQL statement selects all customers with a CustomerName starting
with "a":
Example
SELECT * FROM Customers
WHERE CustomerName LIKE 'a%'; Swapnali Pawar
18. LIKE Operator Description
WHERE CustomerName LIKE 'a%' Finds any values that start with "a"
WHERE CustomerName LIKE '%a' Finds any values that end with "a"
WHERE CustomerName LIKE '%or%' Finds any values that have "or" in any
position
WHERE CustomerName LIKE '_r%' Finds any values that have "r" in the second
position
WHERE CustomerName LIKE 'a_%' Finds any values that start with "a" and are
at least 2 characters in length
WHERE CustomerName LIKE 'a__%' Finds any values that start with "a" and are
at least 3 characters in length
WHERE ContactName LIKE 'a%o' Finds any values that start with "a" and ends
with "o"
Here are some examples showing different LIKE operators with '%' and '_' wildcards:
Swapnali Pawar
19. 3. The SQL ORDER BY Keyword
The ORDER BY keyword is used to sort the result-set in ascending or
descending order.
The ORDER BY keyword sorts the records in ascending order by default.
To sort the records in descending order, use the DESC keyword.
ORDER BY Syntax
SELECT column1, column2, ...
FROM table_name
ORDER BY column1, column2, ... ASC|DESC;
Example
SELECT * FROM Customers
ORDER BY Country DESC;
Swapnali Pawar
20. 4. The SQL GROUP BY Statement
The GROUP BY statement groups rows that have the same values into
summary rows, like "find the number of customers in each country".
The GROUP BY statement is often used with aggregate functions
(COUNT(), MAX(), MIN(), SUM(), AVG()) to group the result-set by one or
more columns.
GROUP BY Syntax
SELECT column_name(s)
FROM table_name
WHERE condition
GROUP BY column_name(s)
ORDER BY column_name(s);
Example
SELECT COUNT(CustomerID), Country
FROM Customers
GROUP BY Country
Swapnali Pawar
21. C. SQL Functions
1. Date
2. Numeric
3. Character conversion
4. Group Functions
Avg , Max , Min , Sum , Count
5. Set Operations-
Union , Union all, intersect, minus
Swapnali Pawar
25. ABS(X)
The ABS() function returns the absolute value of X. Consider the following
example −
SQL> SELECT ABS(2);
2. Numeric Functions
CEILING(X)
These functions return the smallest integer value that is not smaller than X. Consider the
following example −
SQL> SELECT CEILING(3.46);
CEILING(3.46)
4
COS(X)
This function returns the cosine of X. The value of X is given in radians.
SQL>SELECT COS(90);
COS(90)
-0.44807361612917
FLOOR(X)
This function returns the largest integer value that is not greater than X.
SQL>SELECT FLOOR(7.55);
FLOOR(7.55)
7 Swapnali Pawar
27. • SELECT CONCAT(first_name, ' ',last_name) as full_name from myfriends;
• SELECT length(first_name) as full_name from myfriends;
• SELECT length(concat(first_name,last_name)) as full_name from myfriends;
• SELECT lower(first_name) as full_name from myfriends;
• SELECT ucase(first_name) as full_name from myfriends;
• SELECT upper(first_name) as full_name from myfriends;
• SELECT ltrim(first_name) as full_name from myfriends;
• SELECT mid(first_name,1,2) as full_name from myfriends;
• SELECT reverse(first_name) as full_name from myfriends;
String Operation
Swapnali Pawar
28. 4. Group Functions
Avg , Max , Min , Sum , Count
COUNT() Syntax-
The COUNT() function returns the number of rows that matches a
specified criterion.
SELECT COUNT(column_name)
FROM table_name
WHERE condition;
AVG() Syntax-
The AVG() function returns the average value of a numeric
column
SELECT AVG(column_name)
FROM table_name
WHERE condition;
SUM() Syntax
The SUM() function returns the total sum of a numeric column.
SELECT SUM(column_name)
FROM table_name
WHERE condition;
Swapnali Pawar
29. The SQL MIN() and MAX() Function
MIN() Syntax
SELECT MIN(column_name)
FROM table_name
WHERE condition;
MAX() Syntax
SELECT MAX(column_name)
FROM table_name
WHERE condition;
The MAX() function returns the largest value of the selected
column
The MIN() function returns the smallest value of the selected
column.
Swapnali Pawar
30. 5. Set Operations-
Union , Union all, intersect, minus
UNION
The UNION command combines the result set of two or more
SELECT statements (only distinct values). it will eliminate duplicate
rows from its resultset.
The following SQL statement returns the cities (only distinct values)
from both the "Customers" and the "Suppliers" table:
Example
SELECT City FROM Customers
UNION
SELECT City FROM Suppliers
ORDER BY City;
Swapnali Pawar
32. UNION ALL
The UNION ALL command combines the result set of two
or more SELECT statements (allows duplicate values).
The following SQL statement returns the cities
(duplicate values also) from both the "Customers" and
the "Suppliers" table:
Example
SELECT City FROM Customers
UNION ALL
SELECT City FROM Suppliers
ORDER BY City;
Swapnali Pawar
34. Intersect
Intersect operation is used to combine two SELECT statements,
but it only retuns the records which are common from
both SELECT statements. In case of Intersect the number of
columns and datatype must be same.
SELECT * FROM First
INTERSECT
SELECT * FROM Second;
Swapnali Pawar
36. MINUS
The Minus operation combines results of two SELECT statements
and return only those in the final result, which belongs to the first
set of the result
SELECT * FROM First
MINUS
SELECT * FROM Second;
Swapnali Pawar
38. Student Activity
• Create table myfriends & execute
all queries on that table
CREATE TABLE myfriends
(
last_name VARCHAR(15) NOT NULL,
first_name VARCHAR(15) NOT NULL,
suffix VARCHAR(5) NULL,
sex VARCHAR(1) NULL,
city VARCHAR(20) NOT NULL,
state VARCHAR(2) NOT NULL,
age int
);
Swapnali Pawar