UNPIVOT in SQL Server

UNPIVOT in SQL Server

kudvenkat

8 лет назад

113,334 Просмотров

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


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

@rahmiul1980
@rahmiul1980 - 23.09.2023 04:17

God bless you Sir..

Ответить
@sarumathi9
@sarumathi9 - 22.09.2023 14:51

Am getting Error While executing the query like Sub query does not contain the unpivoting column(s) 'India, US, UK', mentioned in the UNPIVOT operator.

Ответить
@LUPECARREON
@LUPECARREON - 24.05.2023 20:00

Thank you Sr. You are making my life much easier :)

Ответить
@nehasingh-ue1gi
@nehasingh-ue1gi - 03.03.2023 11:10

This is just amazing :) Part 55* for pivot in sql server

Ответить
@girishggirishg1083
@girishggirishg1083 - 16.12.2022 20:54

Can anyone suggest, what is the alternative for this pivot/unpivot method in MySQL?

Ответить
@poonammahto6442
@poonammahto6442 - 28.06.2022 09:14

thank u so much for this video

Ответить
@venudamarla4349
@venudamarla4349 - 31.03.2022 17:13

Hello Venkat. I am trying to get calendar weeks as column names weekending is sunday for 1 year. if the month has started again it need to start as 1st week of that month
example: Jan has ( 6 weeks (1, 2-8, 9-15, 16-22, 23-39,30-31)) in Feb has 5 weeks
January: 123456, February: 6,7,8 instead of that 12345
I want this results because i am getting count results based on month, weeks how to write query for my requirement

Ответить
@paragpujari3961
@paragpujari3961 - 30.03.2022 09:01

error coming

Ответить
@ivannasoto9286
@ivannasoto9286 - 29.07.2021 18:40

thank you soo much!

Ответить
@shreyanair7347
@shreyanair7347 - 02.02.2021 11:40

Understood 😉 clearly

Ответить
@israkvelvarga993
@israkvelvarga993 - 21.01.2021 15:27

An university course free

Ответить
@yadiramedinacometa1901
@yadiramedinacometa1901 - 19.12.2020 17:20

Excelente ayuda, gracias.

Ответить
@Yoemer94
@Yoemer94 - 24.06.2020 15:28

Thanks a lot!

Ответить
@anastasiia3840
@anastasiia3840 - 19.06.2020 09:57

Thank you!!!

Ответить
@binbinbinvininfo6992
@binbinbinvininfo6992 - 09.03.2020 10:39

Hello after this how can I save the unpivoted table in SQL Server?

Ответить
@valijoneshniyazov3859
@valijoneshniyazov3859 - 26.02.2020 04:13

where to download database!?

Ответить
@valijoneshniyazov3859
@valijoneshniyazov3859 - 26.02.2020 04:12

were is database?

Ответить
@richardwood8815
@richardwood8815 - 05.02.2020 06:55

Thank you :-)

Ответить
@johnnyvlee
@johnnyvlee - 16.09.2019 17:04

That was a very clear example, which is great. But could you go a bit more in-depth with more complex examples? For example, I have a case where I want to Unpivot 36 columns in a table into 36 rows with the column name and the value from that column, but the data types in each column are not identical.

Ответить
@lahubhawar696
@lahubhawar696 - 21.07.2019 13:24

Thank you very much for such a detailed and clear explanation

Ответить
@arunanthony7534
@arunanthony7534 - 15.02.2019 21:21

Is there another way to unpivot

Ответить
@zeee9522
@zeee9522 - 06.12.2018 01:33

Thank you!

Ответить
@claudiofondital5871
@claudiofondital5871 - 08.11.2018 19:16

Thank you!

Ответить
@murlimohanmahalanka3213
@murlimohanmahalanka3213 - 16.09.2018 07:48

Hi venkat .. why u have use alias name for unpivot i.e unpivotexample . where it is used.

Ответить
@lewisshaw4421
@lewisshaw4421 - 14.08.2018 14:36

Thanks for this, much easier to understand via video then the written word.

Ответить
@zhussupbekzhidebay7990
@zhussupbekzhidebay7990 - 22.04.2018 15:38

Thanks a lot! It helped me solve problem!

Ответить
@gp7178
@gp7178 - 01.09.2017 07:21

Thank you for this video Venkat. Is there a way to dynamically use the Upivot operator?

Ответить
@TheCarloszoom3000
@TheCarloszoom3000 - 05.04.2017 05:14

Hi. I have a table and by doing the selection (SELECT `value`,`title`FROM `jos_facileforms_subrecords` WHERE `record`=80), I get the value and title, each one being a column with records below them. How would it apply to make the title values all the rows and the value records the row below that?
I appreciate your help.
Regards,

Ответить
@krzysztofs8535
@krzysztofs8535 - 17.02.2017 13:58

Thank U for educating community! You are master of SQL Server and the way of your style of teaching is just superb! Best regards from Poland ! Keep goin' please!

Ответить
@Ngen0519
@Ngen0519 - 17.11.2016 22:20

Extremely clear and concise instructions. Thanks!

Ответить
@OsmanOlmedo
@OsmanOlmedo - 19.10.2016 18:39

thanks. Very clear explanation.

Ответить
@CalifGirl000
@CalifGirl000 - 08.10.2016 00:43

Thanks.  Very clear explanation.  I was confused on how to use UNPIVOT until I watched your video.

Ответить
@AmitKumar-pc3ly
@AmitKumar-pc3ly - 29.08.2016 02:09

Excellent Video ! Well Explained Venkat !

Ответить
@KevinNguyenSESE
@KevinNguyenSESE - 05.04.2016 15:59

Thank you for this great video. Might I ask a question? Suppose there are two types of fields that needs to be unpivoted. For your example you unpivot three countries into a new field 'country'. But let's suppose for each of those three country there is a field indicating market strength. So in my result table I would like {sales agent; country; marketstrength; salesamount}. The method to do this in excel requires concatenation then splitting. What is the SQL method? I am trying to automate some data transformation for analysis. Thank you for any help.

Ответить
@prathyushasaineni6999
@prathyushasaineni6999 - 23.11.2015 11:49

hello sir explain about delete and truncate sir........

Ответить
@muhammadrehbarsheikh8498
@muhammadrehbarsheikh8498 - 11.10.2015 17:00

Thanks sir!!

Ответить
@raqibulAlam-su3jo
@raqibulAlam-su3jo - 11.10.2015 07:25

Nice tutorial.

Ответить
@jasons7310
@jasons7310 - 10.10.2015 21:04

Hello Venkat, your videos are great and have helped me a great deal so I thank you! I was wondering if you will be doing a video on using Client Statistics and Execution Plans soon?

Ответить