Summary
Keywords
Full Transcript
In this video, we're going to learn a cool SQL trick: how to select rows with even row numbers. This is a really useful skill to have, especially if you're working with large datasets. We'll start by using the ROW_NUMBER function to assign a unique sequential number to each row in a result set. Then, we'll use the MOD function to check if the row number is divisible by 2. If it is, then the row number is even and we'll select the row. This is a really simple query, but it can be very powerful. You can use it to select specific rows from a dataset or to split a dataset into two groups. So, let's get started! ------------------------------------------------------------------------- ►►►Social Media – Where I sort of Live https://www.instagram.com/RebellionRider/ https://www.facebook.com/TheRebellionRider/ https://twitter.com/RebellionRider https://www.linkedin.com/in/mannbhardwaj/ ------------------------------------------------------------------------- ►►►Books I refer to PL/SQL https://amzn.to/2QE1jX0 Performance Tuning https://amzn.to/2sgiAw4 1z0-071 Exam https://amzn.to/2sgfeJw Python Programming https://amzn.to/305UEbh ------------------------------------------------------------------------- ►►►Camera Gears ► Video Gears That We Use For Creating Our YouTube Video https://www.amazon.in/shop/manishsharma?listId=DU9UM0XL97KM&ref=idea_share_inf ► Work From Home Essential Tech That We Use Daily https://www.amazon.in/shop/manishsharma?listId=XAZ18JLLSNB5&ref=idea_share_inf AFFILIATE DISCLOSURE: Some of the links used in the description will direct you to Amazon.in. As an Amazon Associate, I earn from qualifying purchases at no additional cost to you. #RebellionRider
