I have a table like this
primary_key param1 param2 param3 param4 param5 param6 param7
1 10 3 5 3 7
2 3 4 12 4 4 9 8
3 4 6 6 8 6
4 4 7 7 9 9
5 1 1 1 1 1 1 1
6 1 1 4 6 9 8
7 3 5 4 3 7 2
8 5 5 8 2 2 1
I need to come up with a way to retrieve one tuple at the time containing only the fields that are not null by querying against the primary key.
The table I am querying has more that 50 columns, and not all records need to have
values in all fields.
If I write
Select * from Table where primary_key=1, I get:
primary_key param1 param2 param3 param4 param5 param6 param7
1 10 3 5 3 7
I need to get something like this
primary_key param1 param2 param4 param5 param7
1 10 3 5 3 7
Is it posible to write a sql statement to do that?
Thanks,
Jalr2003
primary_key param1 param2 param3 param4 param5 param6 param7
1 10 3 5 3 7
2 3 4 12 4 4 9 8
3 4 6 6 8 6
4 4 7 7 9 9
5 1 1 1 1 1 1 1
6 1 1 4 6 9 8
7 3 5 4 3 7 2
8 5 5 8 2 2 1
I need to come up with a way to retrieve one tuple at the time containing only the fields that are not null by querying against the primary key.
The table I am querying has more that 50 columns, and not all records need to have
values in all fields.
If I write
Select * from Table where primary_key=1, I get:
primary_key param1 param2 param3 param4 param5 param6 param7
1 10 3 5 3 7
I need to get something like this
primary_key param1 param2 param4 param5 param7
1 10 3 5 3 7
Is it posible to write a sql statement to do that?
Thanks,
Jalr2003