Advanced SQL Tutorial | Temp Tables

Advanced SQL Tutorial | Temp Tables

Alex The Analyst

3 года назад

242,746 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Farheeeezy
Farheeeezy - 22.08.2023 04:19

The first use case is not really straightforward to me. Can someone point me to a different example that I might find more clear please?

Ответить
Ezeh Confidence Adaeze
Ezeh Confidence Adaeze - 19.08.2023 19:58

Thanks Alex

Ответить
Viatic Space
Viatic Space - 17.06.2023 17:11

Alex often uses the expression to hit sth. off of sth. What does it mean? To copy? To extract? I tried to google this expression, but couldn't find anything that would apply to this context. Can anyone help?

Ответить
Maryamnaz
Maryamnaz - 29.05.2023 18:27

Can anyone explain what the number is we put inside parenthese in fron of VARCHAR?

Ответить
mcfunthomas
mcfunthomas - 27.05.2023 12:15

I don't think # is a pound sign. I call it a hash sign. :)

Ответить
Christine Onunze
Christine Onunze - 26.05.2023 18:54

Hi Alex, kindly explain the difference between 'text' and 'varchar' and why you have to use a parenthesis right after the varchar?

Ответить
David Chung
David Chung - 26.04.2023 11:48

What do you mean by hit off?

Ответить
Anthony D
Anthony D - 06.04.2023 00:20

Thanks for this Alex!

Ответить
Diogo Maia
Diogo Maia - 05.04.2023 16:22

For those who are working with mysql, the view statement is used as temp tables. I wrote the query in this way:

CREATE view temp_Employee as
SELECT demo.EmployeeID, sal.JobTitle, sal.Salary
FROM employeedemographics demo
JOIN employeesalary sal
ON demo.EmployeeID=sal.EmployeeID;

Ответить
Behnoud Alaghband
Behnoud Alaghband - 31.03.2023 09:30

When I inserted values, I got two the same rows while I did the same as you. Do you know why two same rows has been created for me (EmployeeID: 1001)?

Ответить
Alaeddin Msetri
Alaeddin Msetri - 25.03.2023 18:30

Nice and easy thanks

Ответить
Brandon Smith
Brandon Smith - 20.03.2023 08:54

For anyone following along in postgreSQL, use TEMP or TEMPORARY to create your temporary tables. Unfortunately, postgreSQL doesn't recognize the # sign in creating temp tables.
EX:

CREATE TEMP TABLE temp_employee(
employeeid INT,
jobtitle VARCHAR(100),
salary INT
);

Ответить
Nath
Nath - 15.03.2023 08:56

Where can I find the temp table

Ответить
Carrie Goff
Carrie Goff - 12.03.2023 02:11

These tutorials are amazing! Thanks so much, Alex. Question: Why would a person use a temp table if it is just session-specific. Why wouldn't one just create a new table using a past query so that it is stored permanently, for use later?

Ответить
Sanil Kumar Barik
Sanil Kumar Barik - 10.03.2023 18:16

Liking the video even before start watching it.
That's the faith I have on Alex.

Ответить
Secret Nobody
Secret Nobody - 08.03.2023 10:02

can you explain the meaning of varchar? i get the int as integer type of data, but what is varchar? why not put string?

Ответить
Shokoofeh Heidari
Shokoofeh Heidari - 08.03.2023 03:44

Thanks a lot!

Ответить
Kel the KONQR'R
Kel the KONQR'R - 07.03.2023 21:58

Nice

Ответить
Rach Rach
Rach Rach - 06.03.2023 18:29

Great tutorial! This is like querying a query. I’m learning a lot from your videos. Thank you Alex

Ответить
Sanjana Kale
Sanjana Kale - 17.02.2023 02:33

Hello Alex, Could you please explain the difference between Temp tables and CTEs. Also, when should you use which one?

Ответить
Samuel Raj
Samuel Raj - 11.02.2023 09:04

Done

Ответить
santiago fajardo
santiago fajardo - 07.02.2023 19:29

thank You Sr <3

Ответить
Akshay Patil
Akshay Patil - 15.12.2022 17:20

How do i improve the skill of knowing different ways to write a code for the same output. Does learning python improves vocabulary of coding? I am aspiring data analyst and i want to master this skill of yours? plz reply....u speak simple and clear in ur videos. Thanks.

Ответить
Muhammad Ajlal Mahmood
Muhammad Ajlal Mahmood - 09.12.2022 17:55

Hi Alex your tutorial are game-changing for me. can we combine a temporary table and cte

Ответить
jamal alkelani
jamal alkelani - 17.11.2022 17:41

Why not to use CREATE TABLE IF NOT EXISTS instead of dropping it and re-creating it again ?

Ответить
K Bello
K Bello - 08.11.2022 20:57

Thanks, really helfpul.

Ответить
Ian Anderson
Ian Anderson - 31.10.2022 19:29

Helpful video, especially the DROP TABLE tip. Thank you sir

Ответить
Md. Mahmudul Hasan
Md. Mahmudul Hasan - 06.10.2022 17:11

Great helpful tutorials.

Ответить
Akpor Hari
Akpor Hari - 30.09.2022 15:46

Thank you, Alex. You give the quickest easy-to-understand tutoring I have received on my DA journey. You explain these things well, and you do not overload the learner with more than they need per time.
One helpful thing I do is practice while I watch and play around with it as you teach. I often break something, though, and that helps too.

Ответить
Alem Abebe
Alem Abebe - 02.09.2022 21:53

Thanks much alot

Whenever I created and inserted data in temp table and shut down my computer and come back and select the temp table it doesn’t work I have to Crete and insert datas again and again when ever I come back into it.
Can you please give me some solution for me
Thanks

Ответить
Roman Vasiura
Roman Vasiura - 31.08.2022 23:03

Yes, I like this video 😀
Thank you!

Ответить
Anthony Nkem
Anthony Nkem - 26.08.2022 15:17

Great video tutorial

Ответить
Seeker J
Seeker J - 15.08.2022 00:46

Such a great example. I was looking for a solution for something I’m working on at work and this is ‘drop table is exist’ is perfect. Thank you.

Ответить
Majed
Majed - 06.08.2022 01:56

I want to retrieve a row by a max value in a specific column…
Example: I have location, date, and temperature columns. I want to have max temperature in each location with corresponding date. Anyone can help?

Ответить
Mfundoh G
Mfundoh G - 16.07.2022 15:46

Great thanks 👍👌

Ответить
Ahmet Alperen YILDIRIM
Ahmet Alperen YILDIRIM - 05.07.2022 10:58

Simple and functional as always, thanks Alex, data loves you! :)

Ответить
Yasin KAYA
Yasin KAYA - 04.07.2022 12:37

Thank you but I don't understand the advantage of temp tables. Would ot using queries without them be faster? You just added more steps. This is my first time seeing a video regarding temp tables btw.

Ответить
Oğuz Özakın
Oğuz Özakın - 01.07.2022 11:26

I got exactly the information I was looking for and I started following your channel, thanks.

Ответить
shanh54
shanh54 - 26.06.2022 00:51

Once again a great tutorial!! This is the next concept in the Google data analytics course. Thank you so much you made it smooth digestible.

Ответить
Chris Mavroeidis
Chris Mavroeidis - 24.06.2022 15:08

I would like to ask a question. is there any book that you suggest to read for SQL Server? I want a book with full 100% documentation and to learn in deep SQL server.

Ответить
Arslonboy Isorov
Arslonboy Isorov - 06.06.2022 21:03

super, thank you

Ответить
PabloC 3
PabloC 3 - 24.05.2022 02:37

Whats the point of creating a temp table over a regular view? Is it mainly to do with storage efficiencies. Why not just Drop the table when you're down with it? Or is it because temp tables are good for stored procedures because its more efficient? thanks! just trying to figure it out

Ответить
David Mwangi
David Mwangi - 18.05.2022 16:00

You know what's magical / lifesaving? Putting a query result in a temp table.

Ответить
All Social Monkey
All Social Monkey - 26.04.2022 09:34

Geat tutorial. Please, what do the two dots (..) between the table and column mean? Thanks for the video!

Ответить
Nathália Mendes De Albuquerque
Nathália Mendes De Albuquerque - 26.03.2022 21:22

Hello Alex, thanks for these videos. How can I delete duplicates on my table?

Ответить
BCTAHbKA
BCTAHbKA - 05.03.2022 14:24

Это лучшее видео на свете

Ответить