I have a scenario where i have an input table table (Dynamic Table number of columns are not fixed) like below and need to get multiple tables based on not null values
Input table
ID Name Mobile Year value
1 john 1238769 2001 35
2 tommy 3423456 2001 56
3 smith 8761934 2007 65
4 NULL 4783921 2005 78
5 robert 8549543 2008 18
6 mary 5648404 2011 40
7 NULL 6729113 2003 59
8 NULL NULL 2006 10
9 cathy NULL 2010 35
10 jessi NULL 2012 45
So i need something like below tables based on not null
Output table1
ID Name Mobile Year value
1 john 1238769 2001 35
2 tommy 3423456 2001 56
3 smith 8761934 2007 65
5 robert 8549543 2008 18
6 mary 5648404 2011 40
output table 2
ID Mobile Year value
4 4783921 2005 78
7 6729113 2003 59
output table3
ID Name Year value
9 cathy 2010 3578
10 jessi 2012 45
and finally output table 4
ID Year value
8 2006 10