filmov
tv
SQL Tutorial - Creating a sample of data

Показать описание
Another video brought to you by BeardedDev, bringing you tutorials on Business Intelligence, SQL Programming and Data Analysis.
In this video I talk about how to create a sample set of data to work in Microsoft SQL Server. Creating a sample set of data can be extremely beneficial for development or testing, there is no need to wait minutes or hours for queries to run.
The techniques explored in this SQL Server Tutorial are:
Or for a full tutorial on CTEs check out this playlist:
SELECT * INTO
SQL Queries in the video:
WITH Number
AS
(
SELECT
CustomerId
, NTILE(1000) OVER(ORDER BY CustomerId) AS N
FROM dbo.Customers
)
,
TopCustomer
AS
(
SELECT
MAX(CustomerId) AS CustId
FROM Number
GROUP BY N
)
SELECT
C2.*
INTO dbo.CustomersSample
FROM TopCustomer AS C1
INNER JOIN dbo.Customers AS C2
ON C1.CustId = C2.CustomerId
SELECT * FROM dbo.CustomersSample
Please feel free to post comments.
In this video I talk about how to create a sample set of data to work in Microsoft SQL Server. Creating a sample set of data can be extremely beneficial for development or testing, there is no need to wait minutes or hours for queries to run.
The techniques explored in this SQL Server Tutorial are:
Or for a full tutorial on CTEs check out this playlist:
SELECT * INTO
SQL Queries in the video:
WITH Number
AS
(
SELECT
CustomerId
, NTILE(1000) OVER(ORDER BY CustomerId) AS N
FROM dbo.Customers
)
,
TopCustomer
AS
(
SELECT
MAX(CustomerId) AS CustId
FROM Number
GROUP BY N
)
SELECT
C2.*
INTO dbo.CustomersSample
FROM TopCustomer AS C1
INNER JOIN dbo.Customers AS C2
ON C1.CustId = C2.CustomerId
SELECT * FROM dbo.CustomersSample
Please feel free to post comments.
Learn How to Create a Database | First Steps in SQL Tutorial
SQL Tutorial for Beginners
Learn Basic SQL in 15 Minutes | Business Intelligence For Beginners | SQL Tutorial For Beginners 1/3
SQL Tutorial for Beginners 2: Creating Your First Table
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
SQL Tutorial for Beginners 1: Installing PostgreSQL and Creating Your First Database
SQL Tutorial - Full Database Course for Beginners
SQL Course for Beginners [Full Course]
How to create data entry Form using SQL server Database with #csharp C# #shorts
SQL Create Table and Insert Data - A Complete Tutorial
SQL Basics Tutorial For Beginners | Installing SQL Server Management Studio and Create Tables | 1/4
How to Create a Table | SQL Tutorial for Beginners | 2021
How to create Database in SQL #sql #code #coding #how_to #tutorial #database
5 Best SQL Websites to Practice n Learn Interview Questions for FREE
SQL Database Design Tutorial for Beginners | Data Analyst Portfolio Project (1/3)
How to Create a Database | SQL Tutorial for Beginners | 2021
SQL indexing best practices | How to make your database FASTER!
SQL Tutorial - 9: Create Table Statement
Fastest Way To Learn SQL
SQL Querying for Beginners Tutorial
MySQL - The Basics // Learn SQL in 23 Easy Steps
Learn Basic SQL in 15 Minutes (PART 2/3) | Creating Tables | SQL Tutorial | Business Intelligence
create table as select in MySQL database #shorts #mysql #database
SQL Tutorial - Creating a managed database
Комментарии