An introduction to SQL standard language for beginners and non-technical information people. Mostly covers SELECT statement using standard clauses, Joins, Sub-Queries and ...
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
Consists of the explanations of the basics of SQL and commands of SQL.Helpful for II PU NCERT students and also degree studeents to understand some basic things.
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
Consists of the explanations of the basics of SQL and commands of SQL.Helpful for II PU NCERT students and also degree studeents to understand some basic things.
Data Definition Language (DDL), Data Definition Language (DDL), Data Manipulation Language (DML) , Transaction Control Language (TCL) , Data Control Language (DCL) - , SQL Constraints
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.
Data Definition Language (DDL), Data Definition Language (DDL), Data Manipulation Language (DML) , Transaction Control Language (TCL) , Data Control Language (DCL) - , SQL Constraints
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.
SQL provides powerful but reasonably simple tools for data analysis and handling. Mike McClellan, the Senior Product Manager for Paddle8, took beginners through the basics of SQL. He talked about the SQL queries needed to collect data from a database, even if it lives in different places and analyze it to find the answers you’re looking for.
He taught the understanding of essential SQL skills that allow developers to write queries against single and multiple tables, manipulate data in tables, and create database objects.
James Colby Maddox Business Intellignece and Computer Science Portfoliocolbydaman
This portfolio covers the business intelligence course work I have completed at Set Focus, and some of the course work I have completed at Kennesaw State University
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Data and AI
Discussion on Vector Databases, Unstructured Data and AI
https://www.meetup.com/unstructured-data-meetup-new-york/
This meetup is for people working in unstructured data. Speakers will come present about related topics such as vector databases, LLMs, and managing data at scale. The intended audience of this group includes roles like machine learning engineers, data scientists, data engineers, software engineers, and PMs.This meetup was formerly Milvus Meetup, and is sponsored by Zilliz maintainers of Milvus.
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Subhajit Sahu
Abstract — Levelwise PageRank is an alternative method of PageRank computation which decomposes the input graph into a directed acyclic block-graph of strongly connected components, and processes them in topological order, one level at a time. This enables calculation for ranks in a distributed fashion without per-iteration communication, unlike the standard method where all vertices are processed in each iteration. It however comes with a precondition of the absence of dead ends in the input graph. Here, the native non-distributed performance of Levelwise PageRank was compared against Monolithic PageRank on a CPU as well as a GPU. To ensure a fair comparison, Monolithic PageRank was also performed on a graph where vertices were split by components. Results indicate that Levelwise PageRank is about as fast as Monolithic PageRank on the CPU, but quite a bit slower on the GPU. Slowdown on the GPU is likely caused by a large submission of small workloads, and expected to be non-issue when the computation is performed on massive graphs.
Show drafts
volume_up
Empowering the Data Analytics Ecosystem: A Laser Focus on Value
The data analytics ecosystem thrives when every component functions at its peak, unlocking the true potential of data. Here's a laser focus on key areas for an empowered ecosystem:
1. Democratize Access, Not Data:
Granular Access Controls: Provide users with self-service tools tailored to their specific needs, preventing data overload and misuse.
Data Catalogs: Implement robust data catalogs for easy discovery and understanding of available data sources.
2. Foster Collaboration with Clear Roles:
Data Mesh Architecture: Break down data silos by creating a distributed data ownership model with clear ownership and responsibilities.
Collaborative Workspaces: Utilize interactive platforms where data scientists, analysts, and domain experts can work seamlessly together.
3. Leverage Advanced Analytics Strategically:
AI-powered Automation: Automate repetitive tasks like data cleaning and feature engineering, freeing up data talent for higher-level analysis.
Right-Tool Selection: Strategically choose the most effective advanced analytics techniques (e.g., AI, ML) based on specific business problems.
4. Prioritize Data Quality with Automation:
Automated Data Validation: Implement automated data quality checks to identify and rectify errors at the source, minimizing downstream issues.
Data Lineage Tracking: Track the flow of data throughout the ecosystem, ensuring transparency and facilitating root cause analysis for errors.
5. Cultivate a Data-Driven Mindset:
Metrics-Driven Performance Management: Align KPIs and performance metrics with data-driven insights to ensure actionable decision making.
Data Storytelling Workshops: Equip stakeholders with the skills to translate complex data findings into compelling narratives that drive action.
Benefits of a Precise Ecosystem:
Sharpened Focus: Precise access and clear roles ensure everyone works with the most relevant data, maximizing efficiency.
Actionable Insights: Strategic analytics and automated quality checks lead to more reliable and actionable data insights.
Continuous Improvement: Data-driven performance management fosters a culture of learning and continuous improvement.
Sustainable Growth: Empowered by data, organizations can make informed decisions to drive sustainable growth and innovation.
By focusing on these precise actions, organizations can create an empowered data analytics ecosystem that delivers real value by driving data-driven decisions and maximizing the return on their data investment.
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...John Andrews
SlideShare Description for "Chatty Kathy - UNC Bootcamp Final Project Presentation"
Title: Chatty Kathy: Enhancing Physical Activity Among Older Adults
Description:
Discover how Chatty Kathy, an innovative project developed at the UNC Bootcamp, aims to tackle the challenge of low physical activity among older adults. Our AI-driven solution uses peer interaction to boost and sustain exercise levels, significantly improving health outcomes. This presentation covers our problem statement, the rationale behind Chatty Kathy, synthetic data and persona creation, model performance metrics, a visual demonstration of the project, and potential future developments. Join us for an insightful Q&A session to explore the potential of this groundbreaking project.
Project Team: Jay Requarth, Jana Avery, John Andrews, Dr. Dick Davis II, Nee Buntoum, Nam Yeongjin & Mat Nicholas
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Data and AI
Round table discussion of vector databases, unstructured data, ai, big data, real-time, robots and Milvus.
A lively discussion with NJ Gen AI Meetup Lead, Prasad and Procure.FYI's Co-Found
2. What isSQL?
SQL stands for Structured Query Language
SQL lets you access and manipulate databases
SQL is anANSI (American National Standards Institute) standard
3. WhatCanSQL
do?
SQL can execute queries against a database
SQL can retrieve data from a database
SQL can insert records in a database
SQL can update records in a database
SQL can delete records from a database
SQL can create new databases
SQL can create new tables in a database
SQL can create stored procedures in a database
SQL can create views in a database
SQL can set permissions on tables, procedures, and views
4. SQL is a
Standard -
BUT....
There are different versions of the SQL language
They all support at least the major commands
Note: Most of the SQL database programs also have their own
proprietary extensions in addition to the SQL standard!
5. What is
RDBMS?
RDBMS stands for Relational Database Management System.
RDBMS is the basis for SQL, and for all modern database systems
such as MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft
Access.
The data in RDBMS is stored in database objects called tables. A
table is a collection of related data entries and it consists of
columns and rows.
Look at the "Customers" table:
SELECT * FROM Customers;
6. SQLSyntax
DatabaseTables
Columns or Fields, Rows or Records, Indexes, etc…
SQL Statements
SELECT * FROM Customers;
It’s not Case Sensitive
SQL Expressions
Column Names, Formula, Sub-Query, etc…
Semicolon after SQL Statements?
Some database systems require a semicolon at the end of each SQL statement
Some ofThe Most Important SQLCommands
SELECT - extracts data from a database
UPDATE - updates data in a database
DELETE - deletes data from a database
INSERT INTO - inserts new data into a database
10. SELECT
WHERE
SELECT column1, column2, ...
FROM table_name
WHERE condition;
SELECT *
FROM DimCustomer
WHERE Gender = ‘F’;
Operator Description
= Equal
<> Not equal. Note: In some versions of SQL this operator may be written as !=
> Greater than
< Less than
>= Greater than or equal
<= Less than or equal
BETWEEN Between an inclusive range
LIKE Search for a pattern
IN To specify multiple possible values for a column
12. SELECT
WHERE
Quiz
Female Customers
Female Customers younger than 40
Female Customers younger than 40 and married
MaleCustomers with middle name
MaleCustomers who their names start with ‘Jon’
Customers with income between 30000-50000
Single female customers between 25-40 years old how make more
than $100K a year
14. GROUP BY After WHERE Clause
Before Order By Clause
HAVING Clause
Aggregations in GROUP BY
SELECT column1, column2, ...
FROM table_name
WHERE condition
GROUP BY column1, column2, ...;
15. GROUP BY
Quiz
Customers by Gender
Customers by Marital Status
Customers by Age
Customer Count by Gender
Customer Count by Gender and Marital Status
Average Income by Gender
Female Customers count in 25-40 years old by Age
…
16. SQLJOINs
When do we join?
Different types of JOINs
CROSS JOIN
How to choose which type is appropriate?
Deal with NULL values
17. INNER JOIN
SELECT DimCustomer.CustomerKey, DimCustomer.FirstName,
DimCustomer.LastName,
DimGeography.EnglishCountryRegionName, DimGeography.City
FROM DimCustomer INNER JOIN
DimGeography ON DimCustomer.GeographyKey =
DimGeography.GeographyKey
SELECT DimGeography.EnglishCountryRegionName,
DimGeography.City, Customer.CustomerKey,
Customer.FirstName, Customer.LastName,
Sales.SalesOrderNumber, Sales.SalesAmount
FROM FactInternetSales Sales INNER JOIN
DimCustomer Customer ON Customer.CustomerKey =
Sales.CustomerKey INNER JOIN
DimGeography ON Customer.GeographyKey =
DimGeography.GeographyKey
18. LEFT/RIGHT
JOIN
SELECT P.EnglishProductName, PSC.EnglishProductSubcategoryName
FROM DimProductSubcategory PSC LEFT OUTER JOIN
DimProduct P ON P.ProductSubcategoryKey = PSC.ProductSubcategoryKey
SELECT P.EnglishProductName, PSC.EnglishProductSubcategoryName
FROM DimProductSubcategory PSC RIGHT OUTER JOIN
DimProduct P ON P.ProductSubcategoryKey = PSC.ProductSubcategoryKey
20. SQLJOINs
Quiz
Join DimProduct, DimProductSubcategory, DimProductCategory and
select Keys and Names from each table
Join FactInternetSales, DimCustomer, DimProduct and show which
Product is Sold toWhich Customer with all the measures
ProductCount by Category
SalesAmount By Country
OrderQuantity by Product Color
SalesAmount and OrderQuantity byYear, Country, ProductCategory
How many Bikes have we sold to each Country in 1386
SalesAmount by Customer Gender
SalesAmount by Customer Gender, MaritalStatus in the US
Which one bought more Accessories, Men orWomen?
22. Sub-Queries in
SELECT
One row, One column
Relates to the main query by usingWHERE
Needs an Alias Name
Could use internal joins as many times as needed
SELECT P.ProductKey, P.EnglishProductName, (
SELECT SUM(S.OrderQuantity) FROM FactInternetSales S WHERE
S.ProductKey = P.ProductKey
) AS SalesQuantity
FROM DimProduct P
23. Sub-Queries in
FROM
Multiple rows, Multiple columns
Treated just like aTable
Needs an Alias Name
Could use internal joins as many times as needed
SELECT MonthlySales.Year, Sum(TotalSales) ASTotalSalesSummary,
Min(TotalSales) ASTotalSalesMinimum, Max(TotalSales) AS
TotalSalesMaximum, Avg(TotalSales) ASTotalSalesAvg
FROM (
SELECT D.Year, D.MonthKey, Sum(OrderQuantity) ASTotalSales
FROM FactInternetSales S INNER JOIN
DimDatePersian D ON S.OrderDateKey = D.DateKey
Group By D.Year, D.MonthKey
) MonthlySales
Group By MonthlySales.Year
24. Sub-Queries in
JOINs
Same as FROM Sub-Queries
Relate to each other with JOIN
SELECT PRODUCTS.ProductCategoryKey,
PRODUCTS.EnglishProductCategoryName, SUM(OrderQuantity) AS
TotalSales
FROM FactInternetSales S INNER JOIN
(
SELECT PC.ProductCategoryKey, PC.EnglishProductCategoryName,
P.ProductKey
FROM DimProduct P INNER JOIN
DimProductSubCategory PSC ON P.ProductSubcategoryKey =
PSC.ProductSubcategoryKey INNER JOIN
DimProductCategory PC ON PC.ProductCategoryKey =
PSC.ProductCategoryKey
) PRODUCTS ON PRODUCTS.ProductKey = S.ProductKey
GROUP BY PRODUCTS.ProductCategoryKey,
PRODUCTS.EnglishProductCategoryName
25. Sub-Queries in
FROM
Multiple rows, One column
Usually used for IN or NOT IN conditions
Doesn’t need an Alias Name
Could use internal joins as many times as needed
SELECT *
FROM FactInternetSales
WHERE ProductKey IN (
SELECT P.ProductKey
FROM DimProduct P INNER JOIN
DimProductSubCategory PSC ON P.ProductSubcategoryKey =
PSC.ProductSubcategoryKey INNER JOIN
DimProductCategory PC ON PC.ProductCategoryKey =
PSC.ProductCategoryKey
WHERE PC.ProductCategoryKey = 1
)
26. CROSSJOIN
Cartesian product of theTables involved in the JOIN
Result rows count =Table1.Rows xTable2.Rows x …
Used for computing Measures from unrelated Dimensions
If aWHERE clause is added, the cross join behaves as an inner join
SELECT CUSTOMERS.CustomerKey, PRODUCTS.ProductKey,
(
SELECT ISNULL(SUM(S.OrderQuantity), 0) FROM FactInternetSales S
WHERE S.ProductKey = PRODUCTS.ProductKey and S.CustomerKey =
CUSTOMERS.CustomerKey
)TotalSales
FROM (
SELECT TOP(10) CustomerKey FROM DimCustomer
) CUSTOMERS CROSS JOIN
(
SELECT TOP(10) ProductKey FROM DimProduct ORDER BY ListPrice DESC
) PRODUCTS
ORDER BYTotalSales DESC
27. Sub-Queries
Quiz
Select Customers withTotal Purchased Amount
Select only the Products which have been sold
Find out OrderQuantity sold in each country from each product
color
Show monthly SalesAmount distribution in each country
CombineYears and Customer Gender, and find each combination
Sales
Yearly Sales for Customers in the US (Use Sub-Query not JOIN)
28. About Me
Amin Choroomi
CTO & Co-Founder at vdash
Software Developer, Teacher and Consultant
DataVisualization, Analytics, Dashboards
Data Warehousing, Integration, Business Intelligence
http://www.vdash.ir
choroomi@live.com
choroomi@vdashonline.com
https://linkedin.com/in/choroomi
@aminchoroomi