Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fazal-coder/sql_nashville_housing
SQL Project in MS SQL Server About Nashville Housing
https://github.com/fazal-coder/sql_nashville_housing
microsoft-sql-server mssqlserver sql-server
Last synced: 2 days ago
JSON representation
SQL Project in MS SQL Server About Nashville Housing
- Host: GitHub
- URL: https://github.com/fazal-coder/sql_nashville_housing
- Owner: fazal-coder
- Created: 2023-08-30T20:15:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-30T20:44:47.000Z (over 1 year ago)
- Last Synced: 2025-01-18T13:55:54.652Z (2 days ago)
- Topics: microsoft-sql-server, mssqlserver, sql-server
- Language: TSQL
- Homepage:
- Size: 5.65 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQL Nashville Housing
This section involves various data cleaning tasks for the `Nashvillahousing` table.
- **Standardize Date Format:** Converts the SaleDate column to a standardized date format using CAST.
- **Populate Property Address Data:** Fills in missing PropertyAddress values by joining the table with itself based on `ParcelID` and copying non-null addresses.
- **Breaking out PropertyAddress:** Splits the `PropertyAddress` column into `Address` and `City` using `SUBSTRING` and `CHARINDEX`, and stores them in new columns.
- **Breaking out OwnerAddress:** Similar to above, splits `OwnerAddress` into individual components (`OwnerAddress`, `OwnerCity`, `OwnerState`) using `PARSENAME` and `REPLACE`, and stores them in new columns.
- **Change Y and N to Yes and No:** Converts values in the `SoldAsVacant` column from 'Y' to 'Yes' and 'N' to 'No'.- **Remove Duplicates:** Utilizes a Common Table Expression (CTE) with `ROW_NUMBER()` to identify and remove duplicate rows based on certain columns.
- **Delete Unused Columns:** Drops specified columns (`OwnerAddress`, `TaxDistrict`, `PropertyAddress`, `SaleDate`) from the table.
*Repository created by [Diyan].*