fetch

How to fetch Alternate Records from the Table | SQL Interview Question

0:00
↔️ ↕️

Timecodes:

[Music]

hello friends this is sunil and welcome

back to my channel it junction for all

in this video i am going to discuss a

very basic sql interview question that

is how to fetch

alternate records from the table

so we have the input table over here

that is the students and from this

student table we have to fetch alternate

records from the table when we say

alternate records this alternate records

can either be

or even number records or

odd number records so when i say even

number records it can be row number two

row number four no row number six like

that when i say odd number records it

will be row number one row number three

row number five like that so

this is our requirement let's see how we


Related queries:


how to get alternate records from a table in sql
how to fetch alternate rows from the table in sql
how to fetch records from two tables in sql
how to fetch alternate records from a table
how to fetch alternate records from a table in mysql