This document discusses various SQL concepts including the LIKE operator, TOP clause, UNION vs UNION ALL, IN operator, aggregation functions, GROUP BY clause, HAVING clause, and the difference between HAVING and WHERE. It provides examples of queries using these concepts on sample tables and explains the purpose and syntax of each concept. Quizzes with sample queries and answers are also included.
Sql (Introduction to Structured Query language)Mohd Tousif
Practical guide for a beginner who wants to learn SQL, which is a quite important language for working with any RDBMS (Relational Database Management System) like Oracle, MySql, DB2 etc..
Here i am giving some sql queries which is helpful for practicing in sql server for learning more sql interview questions you can refer this link http://skillgun.com/sql/interview-questions-and-answers
Sql (Introduction to Structured Query language)Mohd Tousif
Practical guide for a beginner who wants to learn SQL, which is a quite important language for working with any RDBMS (Relational Database Management System) like Oracle, MySql, DB2 etc..
Here i am giving some sql queries which is helpful for practicing in sql server for learning more sql interview questions you can refer this link http://skillgun.com/sql/interview-questions-and-answers
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionAggregage
Join Maher Hanafi, VP of Engineering at Betterworks, in this new session where he'll share a practical framework to transform Gen AI prototypes into impactful products! He'll delve into the complexities of data collection and management, model selection and optimization, and ensuring security, scalability, and responsible use.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
A tale of scale & speed: How the US Navy is enabling software delivery from l...sonjaschweigert1
Rapid and secure feature delivery is a goal across every application team and every branch of the DoD. The Navy’s DevSecOps platform, Party Barge, has achieved:
- Reduction in onboarding time from 5 weeks to 1 day
- Improved developer experience and productivity through actionable findings and reduction of false positives
- Maintenance of superior security standards and inherent policy enforcement with Authorization to Operate (ATO)
Development teams can ship efficiently and ensure applications are cyber ready for Navy Authorizing Officials (AOs). In this webinar, Sigma Defense and Anchore will give attendees a look behind the scenes and demo secure pipeline automation and security artifacts that speed up application ATO and time to production.
We will cover:
- How to remove silos in DevSecOps
- How to build efficient development pipeline roles and component templates
- How to deliver security artifacts that matter for ATO’s (SBOMs, vulnerability reports, and policy evidence)
- How to streamline operations with automated policy checks on container images
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
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.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
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.
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfPeter Spielvogel
Building better applications for business users with SAP Fiori.
• What is SAP Fiori and why it matters to you
• How a better user experience drives measurable business benefits
• How to get started with SAP Fiori today
• How SAP Fiori elements accelerates application development
• How SAP Build Code includes SAP Fiori tools and other generative artificial intelligence capabilities
• How SAP Fiori paves the way for using AI in SAP apps
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
2. Section 2
In this section will discuss
1- Examples on last section
2- Quiz
3- Like Operator
4- Top Stmt
5- Union VS Union ALL
6- IN Operator
7- Aggregation Functions
8- Group By
9- Having
10- Difference Between Having and Where
3. Quiz (1)
• Relations:
Movie(title, year, length, inColor, studioName, producerC#)
StarsIn(movieTitle, movieYear, starName)
MovieStar(name, address, gender, birthdate)
MovieExec(name, address, cert#, netWorth)
Studio(name, address, presC#)
• Queries:
a) Find the address of MGM studios.
b) Find Sandra Bullock’s birthdate.
c) Find all the stars that appear either in a movie made in 1980 or a movie
with “Love” in the title.
d) Find all executives worth at least $10,000,000.
e) Find all the stars who either are male or live in Miami ( have Miami as a
part of their address).
4. Quiz (1) Answer
a) SELECT address FROM studio
WHERE name = ‘MGM’;
b) SELECT birthdate FROM moviestar
WHERE name = ‘Sandra Bullock’;
c) SELECT starName FROM StarsIn
WHERE movieYear = 1980 OR movieTitle LIKE ‘%Love%’;
d) SELECT name FROM MovieExec
WHERE netWorth >= 10,000,000;
e) SELECT name FROM MovieStar
WHERE gender = ‘M’ OR address LIKE ‘% Miami %’;
5. LIKE Operator
• The LIKE operator is used to search for a specified pattern in a column..
• SQL LIKE Syntax:
– SELECT column_name(s) FROM table_name
WHERE column_name LIKE pattern
Persons Table
P_ID LastName FirstName Address City
1 Hansen Ola Timoteivn 10 Sandnes
2 Svendson Tove Borgvn 23 Sandnes
3 Pettersen Kari Storgt 20 Stavanger
Ex. Want to select persons living in city ending with "s" from "Persons" table. (%
can be used to define wildcards (missing letters in pattern))
Sol: SELECT * FROM Persons WHERE City LIKE ‘%s';
6. SELECT TOP Stmt
TOP clause is used to specify the number of records to return.
Can be useful on large tables with ‘000s of records as Returning a
large
number of records can impact on performance.
SQL TOP Syntax:
SELECT column_name(s)
FROM table_name
WHERE ROWNUM <= number
Ex : Want to select only the two first records in the table above
Sol: SELECT * FROM Persons Where RowNum<2
7. Union VS Union ALL
The UNION operator returns only distinct rows
that appear in either result,
while the UNION ALL operator returns all rows.
The UNION ALL operator does not eliminate
duplicate selected rows.
8. IN Operator Nested Queries
– SELECT Model FROM Product
WHERE ManufacturerID IN
(SELECT ManufacturerID FROM Manufacturer
WHERE Manufacturer = 'Dell')
• The nested query above will select all models from the “Product” table
manufactured by Dell:
9. Aggregation Functions
Perform calculation on a set of values and return single value.
Syntax
Select Function(column) fromtable
Name Salary
Mohamed 4000
Hassan 3000
Doaa 6000
Ahmed 4000
10. Aggregation Functions
Requirements Select Stmt Result
Average of salary Select AVG(salary) from employees; 4250
Number of Rows Select COUNT(*) from employees; 4
Distinct Salaries Select COUNT(Distinct Salary) from employees; 3
Highest Salary Select MAX(salary) from employees; 6000
Lowest Salary Select MIN(salary) from employees; 3000
Total Salaries Select SUM(salary) from employees; 17000
11. Group By Clause
The GROUP BY statement is used in conjunction with
the aggregate functions to group the result-set by one
or more columns.
12. Group By Clause
Syntax
SELECT column_name, aggregate_function(column_name)
FROM table_name
WHERE column_name operator value
GROUP BY column_name
13. Example
Orders Table
O_Id Order_Date Order_Price Customers
1 2013/11/12 1000 Hansen
2 2013/03/12 1600 Nilsen
3 2013/05/02 700 Hansen
4 2013/07/09 300 Hansen
5 2013/08/01 2000 Jensen
6 2013/04/03 100 Nilsen
Now we want to find the total sum (total order) of each customer.
14. Example
Sol
SELECT Customer,SUM(Order_Price) FROM Orders
GROUP BY Customer;
Customer Sum(Order_Price)
Hansen 2000
Nilsen 1700
Jinsen 2000
PS: When using the same select stmt without Group By clause
it will fire an error.
15. Example
Ex: Sells (bar, beer, price)
Find average price for each peer.
Sol: Select Beer, AVG(Price)
From Sells Group By Beer;
Ex: Get the name of the dept and its No. of Emp that
make over 25,000$ per year.
Sol: Select department, COUNT(*) as 'Number of Employees'
From Employees
Where salary > 25000
Group by department
16. Having Clause
The HAVING clause was added to SQL because the WHERE keyword
could not be used with aggregate functions.
• Also, HAVING is used in conjunction with the SELECT clause to
specify a search condition for a group. The HAVING clause behaves
like the WHERE clause, but is applicable to groups.
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
17. Example
Ex: want to find if any of the customers have a total order of less than 2000.
Sol: SELECT Customer,SUM(OrderPrice)
FROM Orders S
GROUP BY Customer
HAVING SUM(OrderPrice)<2000
Ex: want to find if the customers “Hansen” or “Jensen” have a total
order of more than 1500.
Sol: SELECT Customer,SUM(OrderPrice) FROM Orders
WHERE Customer='Hansen' OR Customer='Jensen'
GROUP BY Customer
HAVING SUM(OrderPrice)>1500
18. Example
SELECT COUNT(*)
FROM EMPLOYEES GROUP BY ID
HAVING SALARY > 15000;
this query is illegal, because the column SALARY is not a grouping column, it
does not appear within an aggregate, and it is not within a subquery;
SELECT COUNT(*)
FROM EMPLOYEES GROUP BY ID
HAVING SUM(SALARY) > 15000;
Aggregates in the HAVING clause do not need to appear in the SELECT list
19. Diff. btw. Having & Where
1. HAVING specifies a search condition for a group or an aggregate
function used in SELECT statement. The WHERE clause specifies the
criteria which individual records must meet to be selected by a query. It
can be used without the GROUP BY clause. The HAVING clause
cannot be used without the GROUP BY clause.
2. The WHERE clause selects rows before grouping. The HAVING
clause selects rows after grouping.
3. The WHERE clause cannot contain aggregate functions. The
HAVING clause can contain aggregate functions.