<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>SQL on Elad Oz-Cohen</title>
    <link>https://eladozcohen.com/categories/sql/</link>
    <description>Recent content in SQL on Elad Oz-Cohen</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 10 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://eladozcohen.com/categories/sql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SQL Marketing Campaign Analysis</title>
      <link>https://eladozcohen.com/project/banking/</link>
      <pubDate>Mon, 10 Apr 2023 00:00:00 +0000</pubDate>
      
      <guid>https://eladozcohen.com/project/banking/</guid>
      <description>Question 1 - Data Exploration Investigating the conversion rate for both the continues and categorical variables in the data set.The goal is to to stop which features are associated with higher conversion rate (note: conversion rate is the ratio between the number of sales to leads) The continues variables:
SELECT y, ROUND(AVG(age),2) &amp;#39;Average Age&amp;#39;, ROUND(AVG(emp_var_rate),2) &amp;#39;Average Employee Varation Rate&amp;#39;, ROUND(AVG(CPI_index),2) &amp;#39;CPI index&amp;#39;, ROUND(AVG(cons_conf_index),2) &amp;#39;Consumer confidence index&amp;#39; FROM bank_data GROUP BY y The categorical variables:</description>
    </item>
    
    <item>
      <title>SQL Data Analysis - Covid-19</title>
      <link>https://eladozcohen.com/project/covid_portfolio/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://eladozcohen.com/project/covid_portfolio/</guid>
      <description>Data used: https://ourworldindata.org/ Q1: Exploring infections death rates both at a global scale and at a continent scale. /* Using CTE to create a derived table with the relevant data at the continent scale */ WITH continents_average AS ( SELECT &amp;#39;Continent Average&amp;#39; AS &amp;#39;Location&amp;#39;, CONVERT(DATE,v.date,103) AS &amp;#39;Date&amp;#39;, ROUND(SUM(cd.new_cases)/COUNT(DISTINCT cd.continent),0) AS &amp;#39;New Infections&amp;#39;, ROUND(SUM(v.daily_vaccinations)/COUNT(DISTINCT cd.continent),0) AS &amp;#39;Vaccinations&amp;#39;, SUM(CAST(cd.new_deaths AS INT))/COUNT(DISTINCT cd.continent) AS &amp;#39;New Deaths&amp;#39; FROM vaccinations v INNER JOIN coviddeaths cd ON cd.</description>
    </item>
    
    <item>
      <title>SQL Nashville Housing Data set Cleaning</title>
      <link>https://eladozcohen.com/project/nashville_housing_portfolio/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://eladozcohen.com/project/nashville_housing_portfolio/</guid>
      <description>Standardize Date Format Select saleDateConverted, CONVERT(Date,SaleDate) From PortfolioProject.dbo.NashvilleHousing Update NashvilleHousing SET SaleDate = CONVERT(Date,SaleDate) -- If it doesn&amp;#39;t Update properly ALTER TABLE NashvilleHousing Add SaleDateConverted Date; Update NashvilleHousing SET SaleDateConverted = CONVERT(Date,SaleDate) Populate Property Address data Select * From PortfolioProject.dbo.NashvilleHousing --Where PropertyAddress is null order by ParcelID Select a.ParcelID, a.PropertyAddress, b.ParcelID, b.PropertyAddress, ISNULL(a.PropertyAddress,b.PropertyAddress) From PortfolioProject.dbo.NashvilleHousing a JOIN PortfolioProject.dbo.NashvilleHousing b on a.ParcelID = b.ParcelID AND a.[UniqueID ] &amp;lt;&amp;gt; b.[UniqueID ] Where a.</description>
    </item>
    
  </channel>
</rss>
