filmov
tv
Creating a time table in SQL Server
Показать описание
In this video, we'll create a time table, with a row every 10 minutes or 20 seconds, and add columns for hour, minute and second.
My SQL Server Udemy courses are:
----
Time tables allow to you pre-calculate times and their properties, such as hour, minute and second. This way, you don't have to work them out multiple times, and you can index them to speed up your queries.
The code in this video is as follows:
DROP TABLE IF EXISTS tblTime;
CREATE TABLE tblTime
(myTime time,
myHour tinyint,
myMinute tinyint,
mySecond tinyint)
INSERT INTO tblTime(myTime)
SELECT DISTINCT CONVERT(TIME,
DATEADD(SECOND, 20 * ROW_NUMBER() OVER(ORDER BY (SELECT NULL)), '2029-12-31 00:00:00'))
UPDATE tblTime
SET myHour = DATEPART(HOUR, myTime),
myMinute = DATEPART(MINUTE, myTime),
mySecond = DATEPART(SECOND, myTime)
SELECT * FROM tblTime
ORDER BY myTime
----
Links to my website are:
My SQL Server Udemy courses are:
----
Time tables allow to you pre-calculate times and their properties, such as hour, minute and second. This way, you don't have to work them out multiple times, and you can index them to speed up your queries.
The code in this video is as follows:
DROP TABLE IF EXISTS tblTime;
CREATE TABLE tblTime
(myTime time,
myHour tinyint,
myMinute tinyint,
mySecond tinyint)
INSERT INTO tblTime(myTime)
SELECT DISTINCT CONVERT(TIME,
DATEADD(SECOND, 20 * ROW_NUMBER() OVER(ORDER BY (SELECT NULL)), '2029-12-31 00:00:00'))
UPDATE tblTime
SET myHour = DATEPART(HOUR, myTime),
myMinute = DATEPART(MINUTE, myTime),
mySecond = DATEPART(SECOND, myTime)
SELECT * FROM tblTime
ORDER BY myTime
----
Links to my website are:
How to make a timetable in Excel
How to make time table in Microsoft Excel 2019 || School Time table in Excel Sheet Download
How to Create Your Study Timetable⏰📚
How to make a TIMETABLE in Word | MS WORD Tutorials
Best Free TimeTable Generating Software For Schools and Colleges (ASC TUTORIAL)
How To Make a TimeTable That *Actually Works* | Anuj Pachhel
Create a study timetable with my ✨Rule of 3✨ and be prepared for exam season
How to make Time Table for students l Time Table for New Session From 7th To 9th class #timetable
How to Create the Perfect Timetable for Productivity
How to Create Time Table for Any Class in Ms Excel || How to make timetable in Excel
How to make a REVISION TIMETABLE for exams (and stick to it) | simple, effective
How to make a REALISTIC study timetable YOU CAN FOLLOW
How to make a revision timetable that you can easily stick too.#RevMas DAY 1
How to Create a Timetable in Word | EASY WORD TUTORIALS
Try out this cutest PINTEREST style 🤩 Time Table for School........🏫📚✏🖋 | School Supplies...
Study time table for class 9-10 l timetable for topper student #timetable #students #study
TECH-005 - Create a quick and simple Time Line (Gantt Chart) in Excel
Make a Timetable in Notion (free Template)
Most Effective Time Table for Students🔥| Daily Routine of Toppers| Prashant Kirad
HOW TO MAKE THE BEST STUDY TIMETABLE (that you'll actually stick to!) ✨📚
Perfect 💘 school 🎒 morning routine 😊 #routine #schedule #timetable #dress #background
How to create time table in Microsoft word 2019 | Effortless Time Table Creation in Microsoft Word
How to Make Time Table for School in Microsoft Word | Simple Class Routine in MS Word
How to Make a Weekly Schedule in Excel - Tutorial
Комментарии