SELECT
FROM
AS
DISTINCT
Arithmetic Operations on Columns
WHERE Clause
Comparison Operators (<,>,<=,>=,<>,=)
Other Operators
BETWEEN… AND,
NOT BETWEEN… AND
IN for more info visit utkaluniversity.com
This document provides an overview of SQL (Structured Query Language). It discusses SQL functions including data manipulation language (DML) and data definition language (DDL). DML commands like SELECT, UPDATE, DELETE and INSERT are covered. The SELECT statement syntax and use of clauses like WHERE, ORDER BY, GROUP BY and JOINs are explained. Aggregate functions like COUNT, AVG, SUM etc and scalar functions are also summarized. Examples are provided throughout to illustrate the concepts and syntax.
The document discusses various SQL query concepts including:
1. Search conditions (predicates) in SQL queries including comparison tests, range tests, set membership tests, pattern matching tests, and null value tests.
2. The UNION feature allows combining the results of two or more queries into a single table. Query results combined with UNION can be sorted using an ORDER BY clause.
3. JOIN operations combine data from two or more tables by linking a column in one table with that in another table. Inner joins and outer joins are explained with examples.
1) The document provides information on various SQL functions for string manipulation, date functions, aggregate functions, and selecting rows from tables based on conditions.
2) String functions include concatenation, conversion between ASCII and character values, indexing and pattern matching. Date functions include adding/subtracting dates and retrieving date parts. Aggregate functions include average, count, max, min and sum.
3) Row selection can be done using comparison, range, list, string and logical operators to specify conditions in the WHERE clause. Distinct, TOP and PERCENT clauses can also be used for result set filtering.
This document provides an overview of querying and reporting in SQL, covering topics like arithmetic operators, built-in functions, selecting data, grouping results, joins, and subqueries. The agenda includes learning objectives, descriptions of SELECT statements, and explanations of concepts like aggregate functions, limiting results, sorting data, and correlating subqueries.
Data Base Management System Lecture 10.pdfhowto4ucontact
The document discusses various SQL operators and functions. It begins by explaining the IN, BETWEEN, and NOT BETWEEN operators which can be used to select values within or outside a range. It then discusses aliases which temporarily rename columns and tables for readability. Finally, it covers several aggregate functions - AVG() returns the average value, COUNT() returns the number of rows, MAX() and MIN() return the highest/lowest values, and SUM() returns the total sum.
This document provides information about using SQL SELECT statements to retrieve data from database tables. It discusses the basic SELECT statement syntax and keywords like SELECT, FROM, and WHERE. It also covers additional functionality like filtering rows with WHERE, sorting results with ORDER BY, eliminating duplicate rows with DISTINCT, and special operators like BETWEEN, IN, IS NULL. Examples are provided for each concept to demonstrate proper usage of SELECT statements.
The document provides an overview of database architecture and basic concepts such as what a database is, structured query language (SQL), and stored procedures. A database allows for structured storage and retrieval of complex data. SQL is used to manipulate and retrieve data from databases. Stored procedures are programs stored in databases that perform specific tasks like validating arguments. They provide benefits like improved performance and protection of database integrity.
This document provides an overview of SQL (Structured Query Language) and its main components. It discusses SQL query types like SELECT, INSERT, UPDATE, and DELETE statements. It also covers SQL joins, aliases, clauses, functions, conditions, tables and views. Finally, it provides examples and practice exercises for the SELECT and INSERT statements.
This document provides an overview of SQL (Structured Query Language). It discusses SQL functions including data manipulation language (DML) and data definition language (DDL). DML commands like SELECT, UPDATE, DELETE and INSERT are covered. The SELECT statement syntax and use of clauses like WHERE, ORDER BY, GROUP BY and JOINs are explained. Aggregate functions like COUNT, AVG, SUM etc and scalar functions are also summarized. Examples are provided throughout to illustrate the concepts and syntax.
The document discusses various SQL query concepts including:
1. Search conditions (predicates) in SQL queries including comparison tests, range tests, set membership tests, pattern matching tests, and null value tests.
2. The UNION feature allows combining the results of two or more queries into a single table. Query results combined with UNION can be sorted using an ORDER BY clause.
3. JOIN operations combine data from two or more tables by linking a column in one table with that in another table. Inner joins and outer joins are explained with examples.
1) The document provides information on various SQL functions for string manipulation, date functions, aggregate functions, and selecting rows from tables based on conditions.
2) String functions include concatenation, conversion between ASCII and character values, indexing and pattern matching. Date functions include adding/subtracting dates and retrieving date parts. Aggregate functions include average, count, max, min and sum.
3) Row selection can be done using comparison, range, list, string and logical operators to specify conditions in the WHERE clause. Distinct, TOP and PERCENT clauses can also be used for result set filtering.
This document provides an overview of querying and reporting in SQL, covering topics like arithmetic operators, built-in functions, selecting data, grouping results, joins, and subqueries. The agenda includes learning objectives, descriptions of SELECT statements, and explanations of concepts like aggregate functions, limiting results, sorting data, and correlating subqueries.
Data Base Management System Lecture 10.pdfhowto4ucontact
The document discusses various SQL operators and functions. It begins by explaining the IN, BETWEEN, and NOT BETWEEN operators which can be used to select values within or outside a range. It then discusses aliases which temporarily rename columns and tables for readability. Finally, it covers several aggregate functions - AVG() returns the average value, COUNT() returns the number of rows, MAX() and MIN() return the highest/lowest values, and SUM() returns the total sum.
This document provides information about using SQL SELECT statements to retrieve data from database tables. It discusses the basic SELECT statement syntax and keywords like SELECT, FROM, and WHERE. It also covers additional functionality like filtering rows with WHERE, sorting results with ORDER BY, eliminating duplicate rows with DISTINCT, and special operators like BETWEEN, IN, IS NULL. Examples are provided for each concept to demonstrate proper usage of SELECT statements.
The document provides an overview of database architecture and basic concepts such as what a database is, structured query language (SQL), and stored procedures. A database allows for structured storage and retrieval of complex data. SQL is used to manipulate and retrieve data from databases. Stored procedures are programs stored in databases that perform specific tasks like validating arguments. They provide benefits like improved performance and protection of database integrity.
This document provides an overview of SQL (Structured Query Language) and its main components. It discusses SQL query types like SELECT, INSERT, UPDATE, and DELETE statements. It also covers SQL joins, aliases, clauses, functions, conditions, tables and views. Finally, it provides examples and practice exercises for the SELECT and INSERT statements.
Hello people this is first time in the history when somebody has take a pain to create such a large ppt it is almost my 5 months laborious work..
although i know ppt cannot b more than 30 slides but at the same time i dont want my readers to to feel the lack of knowledge
THIS PPT BELONGS TO TECHNICALS PERSONS hope u like it thanking you ........
SQL constraints are rules that limit the type of data that can be stored in a table. They can be specified when a table is created or altered later. A primary key uniquely identifies each row and cannot be null. A composite key uses multiple columns as the primary key. A foreign key's values must exist in another table's primary key. Joins combine data from multiple tables and include inner, outer, cross, and other types of joins. Views are virtual tables that dynamically select data from other tables.
This document provides an introduction to structured query language (SQL). It outlines the objectives of learning SQL, which are to use SQL for data administration and data manipulation. The agenda covers SQL concepts like data types, constraints, database relationships, queries, and commands. It discusses SQL database objects and how to retrieve, customize, group and join data. It also covers inserting, updating, deleting data and working with tables, views, constraints, stored procedures and functions.
This document provides an overview of SQL commands used to manipulate and retrieve data from an Oracle database. It discusses data manipulation language commands like SELECT, INSERT, UPDATE, and DELETE. It also covers data definition language commands such as CREATE, ALTER, and DROP for managing database structures. Finally, it reviews transaction control commands like COMMIT and ROLLBACK and data control language commands like GRANT and REVOKE for managing permissions. Examples are provided for each type of SQL command.
The document discusses the MySQL IN and BETWEEN operators. The IN operator allows specifying multiple values in a WHERE clause using commas, functioning like multiple OR conditions. The BETWEEN operator selects values within a given numeric, text, or date range inclusively. The document also covers column and table aliases, which temporarily rename columns or tables in a query to make output more readable.
DATABASE MANAGMENT SYSTEM (DBMS) AND SQLDev Chauhan
(i) DDL (Data Definition Language) is used to define the schema of the database. It is used to create, modify or delete definitions of database objects like tables, indexes, views etc.
(ii) DML (Data Manipulation Language) is used to manipulate the data present in the database. It is used to insert, update or delete rows/records from tables. Examples are SELECT, INSERT, UPDATE, DELETE statements.
(iii) Primary Key is a column or set of columns in a table that uniquely identifies each row/record in the table. It must contain unique values and cannot contain NULL values.
(iv) Candidate Key is a column or set of columns that can uniquely identify rows/records in a
This document provides an overview of SQL and relational databases. It discusses basic SQL statements like SELECT, WHERE, and JOINs. It also covers more advanced topics like aggregate functions, views, creating/altering tables, and subqueries. The document uses sample tables to demonstrate how to write queries to retrieve, update, and analyze data stored in relational database tables.
This document provides an introduction to Structured Query Language (SQL) and T-SQL. It discusses the basic SELECT statement and how to select data from single and multiple tables using various join types. The key topics covered include the SELECT statement syntax, arithmetic and logical operators, filtering rows with WHERE, sorting with ORDER BY, and performing inner, outer, left, right and full joins. Examples are provided throughout to illustrate each SQL concept.
The document discusses various SQL statements and concepts. It introduces the different types of SQL statements - DQL, DML, DDL, TCL, DCL and describes common statements like SELECT, INSERT, UPDATE, DELETE. It also covers SQL concepts like data types, NULL values, joins, aggregation, sorting, filtering using WHERE clause and logical operators. Single-row functions for character, number and date manipulations are explained along with examples.
The document summarizes topics that will be covered in an advanced SQL training seminar, including SQL statement types, data types, aggregate functions, NULL handling, comparison operators, mathematical functions, joins, subqueries, views, materialized views, inline views, and optimizing SQL queries. Techniques for data sharing between databases are also mentioned. The seminar aims to provide in-depth knowledge of SQL concepts through explanations, examples, exercises and discussion.
This document discusses online analytical processing (OLAP) and OLAP querying. It defines OLAP as using a set of query and reporting tools that provides multidimensional views of data to allow analysis using simple windowing techniques. It describes different types of OLAP tools, including ROLAP which accesses data directly, MOLAP which loads data into a multidimensional structure, and slicing a data cube to produce views of the data.
The document provides an introduction to the SQL language, including its main components of DML (Data Manipulation Language) and DDL (Data Definition Language). It discusses SQL concepts such as creating tables with data types, defining primary and foreign keys, and using basic queries with SELECT, FROM, WHERE and ORDER BY clauses.
This document provides an introduction to the SELECT clause in SQL and how to write basic and advanced SELECT statements. It covers selecting columns, using literals and operators, filtering rows with comparison and logical operators, and ordering results with the ORDER BY clause. Examples are provided for concatenation, mathematical expressions, restricting rows based on conditions, pattern matching with LIKE, and sorting ascending or descending.
This document provides an introduction to the SELECT clause in SQL and how to write basic and advanced SELECT statements. It covers selecting columns and using literals, operators, and functions. It also discusses filtering rows using comparison and logical operators, pattern matching, sorting data with ORDER BY, and dealing with null values. Examples are provided for concatenation, mathematical expressions, restriction conditions like BETWEEN and IN, operator precedence, and ascending vs descending order.
The document provides an overview of SQL (Structured Query Language) including its basic concepts, components, and capabilities. SQL is a non-procedural language used to query and manipulate data in relational database management systems. It allows users to select, insert, update, and delete data. The main components of SQL are the data definition language for defining database structure and the data manipulation language for retrieving and updating data.
This document provides an overview of structured query language (SQL) including the different types of SQL commands, how to manipulate data using SQL statements like INSERT, UPDATE, DELETE, and SELECT, and how to retrieve data from single and multiple tables using joins and subqueries. Key topics covered include data definition language (DDL) to define databases, data manipulation language (DML) to query and modify data, and data control language (DCL) to administer database privileges. The document explains SQL concepts like integrity constraints, transactions, and aliases as well as syntax for common queries.
This document provides an overview of structured query language (SQL) including the different types of SQL commands, how to manipulate data using SQL statements like INSERT, UPDATE, DELETE, and SELECT, and how to retrieve data from single and multiple tables using joins and subqueries. Key topics covered include data definition language (DDL) to define databases, data manipulation language (DML) to query and modify data, and data control language (DCL) to administer database privileges. The document explains SQL concepts like integrity constraints, transactions, and aliases as well as syntax for common queries.
The document discusses SQL DML statements like SELECT, INSERT, UPDATE, and DELETE. It provides examples of using each statement to manipulate data in tables. It also covers additional SQL clauses and functions like WHERE, ORDER BY, GROUP BY, JOIN, and aggregate functions that can be used with the SELECT statement to filter, sort, group, and perform calculations on the result set.
Leveraging Generative AI to Drive Nonprofit InnovationTechSoup
In this webinar, participants learned how to utilize Generative AI to streamline operations and elevate member engagement. Amazon Web Service experts provided a customer specific use cases and dived into low/no-code tools that are quick and easy to deploy through Amazon Web Service (AWS.)
Hello people this is first time in the history when somebody has take a pain to create such a large ppt it is almost my 5 months laborious work..
although i know ppt cannot b more than 30 slides but at the same time i dont want my readers to to feel the lack of knowledge
THIS PPT BELONGS TO TECHNICALS PERSONS hope u like it thanking you ........
SQL constraints are rules that limit the type of data that can be stored in a table. They can be specified when a table is created or altered later. A primary key uniquely identifies each row and cannot be null. A composite key uses multiple columns as the primary key. A foreign key's values must exist in another table's primary key. Joins combine data from multiple tables and include inner, outer, cross, and other types of joins. Views are virtual tables that dynamically select data from other tables.
This document provides an introduction to structured query language (SQL). It outlines the objectives of learning SQL, which are to use SQL for data administration and data manipulation. The agenda covers SQL concepts like data types, constraints, database relationships, queries, and commands. It discusses SQL database objects and how to retrieve, customize, group and join data. It also covers inserting, updating, deleting data and working with tables, views, constraints, stored procedures and functions.
This document provides an overview of SQL commands used to manipulate and retrieve data from an Oracle database. It discusses data manipulation language commands like SELECT, INSERT, UPDATE, and DELETE. It also covers data definition language commands such as CREATE, ALTER, and DROP for managing database structures. Finally, it reviews transaction control commands like COMMIT and ROLLBACK and data control language commands like GRANT and REVOKE for managing permissions. Examples are provided for each type of SQL command.
The document discusses the MySQL IN and BETWEEN operators. The IN operator allows specifying multiple values in a WHERE clause using commas, functioning like multiple OR conditions. The BETWEEN operator selects values within a given numeric, text, or date range inclusively. The document also covers column and table aliases, which temporarily rename columns or tables in a query to make output more readable.
DATABASE MANAGMENT SYSTEM (DBMS) AND SQLDev Chauhan
(i) DDL (Data Definition Language) is used to define the schema of the database. It is used to create, modify or delete definitions of database objects like tables, indexes, views etc.
(ii) DML (Data Manipulation Language) is used to manipulate the data present in the database. It is used to insert, update or delete rows/records from tables. Examples are SELECT, INSERT, UPDATE, DELETE statements.
(iii) Primary Key is a column or set of columns in a table that uniquely identifies each row/record in the table. It must contain unique values and cannot contain NULL values.
(iv) Candidate Key is a column or set of columns that can uniquely identify rows/records in a
This document provides an overview of SQL and relational databases. It discusses basic SQL statements like SELECT, WHERE, and JOINs. It also covers more advanced topics like aggregate functions, views, creating/altering tables, and subqueries. The document uses sample tables to demonstrate how to write queries to retrieve, update, and analyze data stored in relational database tables.
This document provides an introduction to Structured Query Language (SQL) and T-SQL. It discusses the basic SELECT statement and how to select data from single and multiple tables using various join types. The key topics covered include the SELECT statement syntax, arithmetic and logical operators, filtering rows with WHERE, sorting with ORDER BY, and performing inner, outer, left, right and full joins. Examples are provided throughout to illustrate each SQL concept.
The document discusses various SQL statements and concepts. It introduces the different types of SQL statements - DQL, DML, DDL, TCL, DCL and describes common statements like SELECT, INSERT, UPDATE, DELETE. It also covers SQL concepts like data types, NULL values, joins, aggregation, sorting, filtering using WHERE clause and logical operators. Single-row functions for character, number and date manipulations are explained along with examples.
The document summarizes topics that will be covered in an advanced SQL training seminar, including SQL statement types, data types, aggregate functions, NULL handling, comparison operators, mathematical functions, joins, subqueries, views, materialized views, inline views, and optimizing SQL queries. Techniques for data sharing between databases are also mentioned. The seminar aims to provide in-depth knowledge of SQL concepts through explanations, examples, exercises and discussion.
This document discusses online analytical processing (OLAP) and OLAP querying. It defines OLAP as using a set of query and reporting tools that provides multidimensional views of data to allow analysis using simple windowing techniques. It describes different types of OLAP tools, including ROLAP which accesses data directly, MOLAP which loads data into a multidimensional structure, and slicing a data cube to produce views of the data.
The document provides an introduction to the SQL language, including its main components of DML (Data Manipulation Language) and DDL (Data Definition Language). It discusses SQL concepts such as creating tables with data types, defining primary and foreign keys, and using basic queries with SELECT, FROM, WHERE and ORDER BY clauses.
This document provides an introduction to the SELECT clause in SQL and how to write basic and advanced SELECT statements. It covers selecting columns, using literals and operators, filtering rows with comparison and logical operators, and ordering results with the ORDER BY clause. Examples are provided for concatenation, mathematical expressions, restricting rows based on conditions, pattern matching with LIKE, and sorting ascending or descending.
This document provides an introduction to the SELECT clause in SQL and how to write basic and advanced SELECT statements. It covers selecting columns and using literals, operators, and functions. It also discusses filtering rows using comparison and logical operators, pattern matching, sorting data with ORDER BY, and dealing with null values. Examples are provided for concatenation, mathematical expressions, restriction conditions like BETWEEN and IN, operator precedence, and ascending vs descending order.
The document provides an overview of SQL (Structured Query Language) including its basic concepts, components, and capabilities. SQL is a non-procedural language used to query and manipulate data in relational database management systems. It allows users to select, insert, update, and delete data. The main components of SQL are the data definition language for defining database structure and the data manipulation language for retrieving and updating data.
This document provides an overview of structured query language (SQL) including the different types of SQL commands, how to manipulate data using SQL statements like INSERT, UPDATE, DELETE, and SELECT, and how to retrieve data from single and multiple tables using joins and subqueries. Key topics covered include data definition language (DDL) to define databases, data manipulation language (DML) to query and modify data, and data control language (DCL) to administer database privileges. The document explains SQL concepts like integrity constraints, transactions, and aliases as well as syntax for common queries.
This document provides an overview of structured query language (SQL) including the different types of SQL commands, how to manipulate data using SQL statements like INSERT, UPDATE, DELETE, and SELECT, and how to retrieve data from single and multiple tables using joins and subqueries. Key topics covered include data definition language (DDL) to define databases, data manipulation language (DML) to query and modify data, and data control language (DCL) to administer database privileges. The document explains SQL concepts like integrity constraints, transactions, and aliases as well as syntax for common queries.
The document discusses SQL DML statements like SELECT, INSERT, UPDATE, and DELETE. It provides examples of using each statement to manipulate data in tables. It also covers additional SQL clauses and functions like WHERE, ORDER BY, GROUP BY, JOIN, and aggregate functions that can be used with the SELECT statement to filter, sort, group, and perform calculations on the result set.
Leveraging Generative AI to Drive Nonprofit InnovationTechSoup
In this webinar, participants learned how to utilize Generative AI to streamline operations and elevate member engagement. Amazon Web Service experts provided a customer specific use cases and dived into low/no-code tools that are quick and easy to deploy through Amazon Web Service (AWS.)
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...PECB
Denis is a dynamic and results-driven Chief Information Officer (CIO) with a distinguished career spanning information systems analysis and technical project management. With a proven track record of spearheading the design and delivery of cutting-edge Information Management solutions, he has consistently elevated business operations, streamlined reporting functions, and maximized process efficiency.
Certified as an ISO/IEC 27001: Information Security Management Systems (ISMS) Lead Implementer, Data Protection Officer, and Cyber Risks Analyst, Denis brings a heightened focus on data security, privacy, and cyber resilience to every endeavor.
His expertise extends across a diverse spectrum of reporting, database, and web development applications, underpinned by an exceptional grasp of data storage and virtualization technologies. His proficiency in application testing, database administration, and data cleansing ensures seamless execution of complex projects.
What sets Denis apart is his comprehensive understanding of Business and Systems Analysis technologies, honed through involvement in all phases of the Software Development Lifecycle (SDLC). From meticulous requirements gathering to precise analysis, innovative design, rigorous development, thorough testing, and successful implementation, he has consistently delivered exceptional results.
Throughout his career, he has taken on multifaceted roles, from leading technical project management teams to owning solutions that drive operational excellence. His conscientious and proactive approach is unwavering, whether he is working independently or collaboratively within a team. His ability to connect with colleagues on a personal level underscores his commitment to fostering a harmonious and productive workplace environment.
Date: May 29, 2024
Tags: Information Security, ISO/IEC 27001, ISO/IEC 42001, Artificial Intelligence, GDPR
-------------------------------------------------------------------------------
Find out more about ISO training and certification services
Training: ISO/IEC 27001 Information Security Management System - EN | PECB
ISO/IEC 42001 Artificial Intelligence Management System - EN | PECB
General Data Protection Regulation (GDPR) - Training Courses - EN | PECB
Webinars: https://pecb.com/webinars
Article: https://pecb.com/article
-------------------------------------------------------------------------------
For more information about PECB:
Website: https://pecb.com/
LinkedIn: https://www.linkedin.com/company/pecb/
Facebook: https://www.facebook.com/PECBInternational/
Slideshare: http://www.slideshare.net/PECBCERTIFICATION
How to Fix the Import Error in the Odoo 17Celine George
An import error occurs when a program fails to import a module or library, disrupting its execution. In languages like Python, this issue arises when the specified module cannot be found or accessed, hindering the program's functionality. Resolving import errors is crucial for maintaining smooth software operation and uninterrupted development processes.
This presentation was provided by Steph Pollock of The American Psychological Association’s Journals Program, and Damita Snow, of The American Society of Civil Engineers (ASCE), for the initial session of NISO's 2024 Training Series "DEIA in the Scholarly Landscape." Session One: 'Setting Expectations: a DEIA Primer,' was held June 6, 2024.
Strategies for Effective Upskilling is a presentation by Chinwendu Peace in a Your Skill Boost Masterclass organisation by the Excellence Foundation for South Sudan on 08th and 09th June 2024 from 1 PM to 3 PM on each day.
This presentation includes basic of PCOS their pathology and treatment and also Ayurveda correlation of PCOS and Ayurvedic line of treatment mentioned in classics.
हिंदी वर्णमाला पीपीटी, hindi alphabet PPT presentation, hindi varnamala PPT, Hindi Varnamala pdf, हिंदी स्वर, हिंदी व्यंजन, sikhiye hindi varnmala, dr. mulla adam ali, hindi language and literature, hindi alphabet with drawing, hindi alphabet pdf, hindi varnamala for childrens, hindi language, hindi varnamala practice for kids, https://www.drmullaadamali.com
2. Covered So FAR….
SELECT
FROM
AS
DISTINCT
Arithmetic Operations on Columns
WHERE Clause
Comparison Operators (<,>,<=,>=,<>,=)
Other Operators
BETWEEN… AND,
NOT BETWEEN… AND
IN,
NOT IN,
LIKE (%,_) LIKE (*,?)
NOT LIKE (%,_) //NOT LIKE (*,?)
3. The Structure of Select Statement
SELECT column_list
FROM table_names
WHERE Formula(condition)
4. WHERE Clause
Formula of WHERE clause
consists of three elements:
1. Column name
2. Comparison operator
3. Column name, constant, or list of
values
9. Write SQL Queries….
1) Show ID, Product Name of the products whose
standard cost is between 10 and 15?
2) ShowSQL all record of products whose list price is
between 20 and 30?
3) Show product name and list price of the products
whose ID is 6, 40 and 57?
4) Show product name and list price of the products
whose list price is 9.20,12.75 and 34.80?
5) Show First Name and City of Employees whose job
titles are Vice President, Sales, Sales Manager and
Sales Coordinator
6) Show First Name of employees who belong to the
Seattle and Kirkland
10. LIKE Operator
We can use LIKE keyword to
perform searches
Search condition contain either
literal characters or numbers
Some time exact search is not
performed we can use characters:
% denotes zero or many
characters
_ denotes one character
13. Write Queries
Show the complete record of employees
whose first name start with ‘m’?
Show the complete record of employees
whose city name has ‘e’ as second character?
Show complete record of the products
whose last letter of category is ‘s’?
Show names and list price of products who
do not have any minimum reorder quantity?
Show complete record of product whose
quantity per unit is not available?
22. ORDER BY Clause
We can sort data using the
ORDER BY clause
ORDER BY column name
ORDER BY clause apply
Ascending order sort by default
Following keywords are used for
descending and ascending order
sort:
ASC
DESC
23.
24. Query Exercises
1. Show product Name and Code of the Product
whose standard Cost is less than 10 OR Greater
Than 30
2. Show product Name and Code , Standard Cost and
List Price of the Products whose standard cost is
greater than or equal to 30 and List Price is greater
than 70
3. Show customer details of the Customers Whose
state is WA and their job title is Owner
4. Show the data of Customer sorted by City
5. Show the data of Customer sorted by Job Title
6. Show data of Product Sorted in terms of Standard
cost in ascending and descending order
25. Rules of Precedence
Evaluation Order Operator
1 All Comparison
2 NOT
3 AND
4 OR
Override rules of Precedence by using parentheses
26.
27.
28. SELECT Example–Boolean Operators
AND, OR, and NOT Operators for customizing
conditions in WHERE clause
Must be very, very,
very, VERY careful
about the Boolean
operations