Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to fetch alternate records from two tables

To fetch even Numbered row:

SELECT * FROM table_name WHERE column_name % 2 = 0

To fetch odd Numbered row:

SELECT * FROM table_name WHERE column_name % 2 = 1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fetch #alternate #records #tables
ADD COMMENT
Topic
Name
8+7 =