This document provides an introduction to SQL server functions, grouping, and joins. It discusses aggregate functions that return single values from columns like average, sum, min, and count. It also discusses scalar functions that return a single value for each row like upper, lower, and round. The document explains how to use the GROUP BY clause to group result sets and then run aggregate functions on the groups. It also covers the HAVING clause, which filters grouped data. Finally, it describes different types of joins like inner joins, left outer joins, and right outer joins.
Using and Creating SQL Functions with Ammar Hassan Brohi.
String Functions
Numeric Functions
String / Number Conversion Functions
Group Functions
Date and Time Functions
Date Conversion Functions
Using and Creating SQL Functions with Ammar Hassan Brohi.
String Functions
Numeric Functions
String / Number Conversion Functions
Group Functions
Date and Time Functions
Date Conversion Functions
Inheritance is the capability of a class to use the properties and methods of another class while adding its own functionality.
Enables you to add new features and functionality to an existing class without modifying the existing class.
in this presentation the commands let you help to understand the basic of the database system software. how to retrieve data, how to feed data and manipulate it very efficiently by using this commands.
Inheritance is the capability of a class to use the properties and methods of another class while adding its own functionality.
Enables you to add new features and functionality to an existing class without modifying the existing class.
in this presentation the commands let you help to understand the basic of the database system software. how to retrieve data, how to feed data and manipulate it very efficiently by using this commands.
This PPT will help to understand how learning happens in brain. How you can adjust your skill acquisition in the right way so that maximum output is obtained.
Baabtra.com has a solution to provide programming for kids in school. This is based on the CBSE curriculum of India. The main subjects covered are Mathematics and Physics.
99LMS is a mobile based comprehensive enterprise learning environment in which learning processes of a company can be managed and integrated. It ensures employees have the right skills by enabling course content management, providing classroom training and e-learning. Through the APIs, you can develop your resources before they join your company.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
2. SQL Functions
• SQL has many built-in functions for
performing calculations on data. It can be
broadly classified in to two
–Aggregate Functions
– Scalar functions
3. SQL Functions
• Aggregate Functions
– SQL aggregate functions return a single value, calculated
from all the values in a column.
• Select AVG(int_price) from tbl_stock; // returns 8
• Select SUM(int_price) from tbl_stock; // returns 33
• Select MIN(int_price) from tbl_stock; // returns 2
• Select COUNT(vchr_product) from tbl_stock; // returns 4
Pk_int_id Vchr_product Int_price
1 Pen 10
2 Book 15
3 Eraser 2
4 Pencil 6
Tbl_stock Select SUM(int_price) from tbl_stock;
Returns a single value
4. SQL Functions
• Scalar Functions
– SQL scalar functions return a single value for each values of a
particular column given as input.
➢ Select UPPER(vchr_product) from tbl_stock;
➢ Select LOWER(vchr_product) from tbl_stock;
➢ Select ROUND(int_price) from tbl_stock;
Pk_int_id Vchr_product Int_price
1 Pen 10
2 Book 15
3 Eraser 2
4 Pencil 6
Tbl_product
Returns a value
Returns a value
Returns a value
Returns a value
5. Grouping Data
• GROUP BY allows you to take your result set, group it into
logical groups and then run aggregate queries on the groups.
• You could for instance select all employees, group them by
their workplace location and calculate the average salary. This
would give you the average salary of an employee at a given
location in your database.
Avg = 12500
Avg = 11500
Tbl_employee
Emp_id Emp_name Emp_age Emp_email int_salary vchr_place
1000 Deepak 24 dk@gmail.com 10000 Cochin
1001 Aneesh 23 an@gmail.com 20000 Calicut
1002 Naveen 25 nn@gmail.com 15000 Cochin
1003 Jacob 25 jb@gmail.com 13000 Calicut
6. Select vchr_place, avg(int_salary) from tbl_employee
group by vchr_place;
Example
Result :
Emp_id Emp_name Emp_age Emp_email int_salary vchr_place
1000 Deepak 24 dk@gmail.com 10000 Cochin
1001 Aneesh 23 an@gmail.com 20000 Calicut
1002 Naveen 25 nn@gmail.com 15000 Cochin
1003 Jacob 25 jb@gmail.com 13000 Calicut
Tbl_employee
Vchr_place Avg(int_alary)
Cochin 12500
Calicut 11500
7. The HAVING Clause
• The HAVING clause was added to SQL because the WHERE
keyword could not be used with aggregate functions.
• An Sql statement can have both ‘where’ clause and ‘having’
clause. Where filters data before grouping.Having filters data
after grouping
• Syntax:
• SELECT column_name,
aggregate_function(column_name)
FROM table_name
WHERE column_name operator value
GROUP BY column_name
HAVING aggregate_function(column_name) operator
value;
8. Example
Select vchr_place, avg(int_salary) from tbl_employee group by
vchr_place having avg(int_salary)>12000;
Vchr_place Avg(int_alary)
Cochin 12500
Calicut 11500
Vchr_place Avg(int_alary)
Cochin 12500
10. Where do we use joins?
• An SQL JOIN clause is used to combine rows from two or more
tables, based on a common field between them.
• Join helps to write single query to fetch data from multiple
tables so as to meet the business requirement/generate reports
11. Types Of joins
• Inner join
• Outer Join
– Left Outer Join
– Right Outer Join
12. Inner Join
• The INNER JOIN keyword selects all rows from both tables as
long as there is a match between the columns in both tables.
• Syntax
– SELECT column_name(s) FROM table1 INNER JOIN table2 ON
table1.column_name=table2.column_name;
14. Left Outer Join
• The LEFT JOIN keyword returns all rows from the left table
(table1), with the matching rows in the right table (table2).
The result is NULL in the right side when there is no match.
SELECT column_name(s) FROM table1 LEFT JOIN table2 ON
table1.column_name=table2.column_name;
15. Left Outer Join
Pk_int_id Vchr_place
1 Mumbai
2 Kolkata
3 Bangalore
4 Cochin
Emp_id Emp_name fk_int_place_id
1000 Deepak 1
1001 Aneesh 4
1002 Naveen 2
1003 Jacob 5
1004 Alex 6
Emp_id Emp_name Vchr_place
1000 Deepak Mumbai
1001 Aneesh Cochin
1002 Naveen Kolkatta
1003 Jacob NULL
1004 Alex NULL
LeftJoin
SELECT emp_id,emp_name, vchr_place from tbl_employee
Left Join tbl_place on fk_int_place_id=pk_int_id
16. Right Outer Join
• The RIGHT JOIN keyword returns all rows from the right table
(table2), with the matching rows in the left table (table1). The
result is NULL in the left side when there is no match.
SELECT column_name(s) FROM table1 RIGHT JOIN table2 ON
table1.column_name=table2.column_name;
20. Self Check !!
• Scalar function will return 0 or more
values
–True
–False
21. Self Check !!
• Scalar function will return 0 or more
values
–True
–False
22. Self Check !!
• Round() is an aggregate function
–True
–False
23. Self Check !!
• Round() is an aggregate function
–True
–False
24. Self Check !!
• Spot out the errors
Select dept,sum(salary), place from tbl_employee group by dept
where sum(salary)>10000
Correct Answer:
Select dept,sum(salary) from tbl_employee group by
dept having sum(salary)>10000
25. Self Check !!
• Spot out the errors
Select dept,sum(salary), place from tbl_employee group by dept
where sum(salary)>10000
Correct Answer:
Result will be unexpected if display any columns
without aggregate functions other than that
given in group by
Where must be given before group by We cannot use aggregate functions with where
condition
Select dept,sum(salary) from tbl_employee group by dept having
sum(salary)>10000
26. Select id,student,dept from tbl_student join tbl_dept on
fk_dept_id =pk_int_id
Pk_int_id dept
1 Computer science
2 Electronics
3 Commerce
4 Art
id Student fk_dept_id
1000 Ram 1
1001 Raju 4
1002 Mary 2
1003 Dona 5
1004 Lal 6
id Student dept
1000 Ram Computer science
1001 Raju Art
1002 Mary Electronics
1003 Dona NULL
1004 Lal NULL
Query :
27. Select id,student,dept from tbl_student left join tbl_dept on
fk_dept_id =pk_int_id
Pk_int_id dept
1 Computer science
2 Electronics
3 Commerce
4 Art
id Student fk_dept_id
1000 Ram 1
1001 Raju 4
1002 Mary 2
1003 Dona 5
1004 Lal 6
id Student dept
1000 Ram Computer science
1001 Raju Art
1002 Mary Electronics
1003 Dona NULL
1004 Lal NULL
Query :
28. Self Check !!
• When to use inner join
– I want to display all the places and students from that
places
– I want to display all the students and their places
– I want to display only the students of given places
–I want to display the only students from places given in
another table
29. Self Check !!
• When to use inner join
– I want to display all the places and students from that
places
– I want to display all the students and their places
– I want to display only the students of given places
– I want to display the only students from places given in
another table
30. Self Check !!
• When to use Right join
A. Matching records from right table needs to be displayed
B. Mismatching records from right table needs to be
displayed
C. Matching records from left table needs to be displayed
D. Mismatching records from left table needs to be
displayed
E. Both A & B
F. Both B & C
31. Self Check !!
• When to use Right join
A. Matching records from right table needs to be displayed
B. Mismatching records from right table needs to be
displayed
C. Matching records from left table needs to be displayed
D. Mismatching records from left table needs to be
displayed
E. Both A & B
F. Both B & C