Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
How to Find the  Even and Odd records from a table | SQL interview questions  #coding #developer
Play lesson

SQL tutorials for beginners/ Oracle Database tutorials. - How to Find the Even and Odd records from a table | SQL interview questions #coding #developer

4.0 (2)
53 learners

What you'll learn

This course includes

  • 11.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

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

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere