I am planning to join two tables and am in a process to figure out the fastest possible query.
For eg:
Table A:
--------------------------------
Name Time purchased sold
larry 10:00 4 3
jamie 11:00 2 0
chris 11:00 1 1
---------------------------------
Table B
-------------------------------
Name Time offered
wayne 10:00 3
larry 10:00 6
jamie 11:00 5
--------------------------------
I NEED THE RESULT SET AS
Name Time purchased sold offered
wayne 10:00 0 0 3
larry 10:00 4 3 6
jamie 11:00 2 0 5
chris 11:00 1 1 0
It is something like I want combinations if the join satifies i.e. a.name = b.name and a.time = b.time . And also i need individual columns.
Any suggestions
thanks in advance
logic4fun
For eg:
Table A:
--------------------------------
Name Time purchased sold
larry 10:00 4 3
jamie 11:00 2 0
chris 11:00 1 1
---------------------------------
Table B
-------------------------------
Name Time offered
wayne 10:00 3
larry 10:00 6
jamie 11:00 5
--------------------------------
I NEED THE RESULT SET AS
Name Time purchased sold offered
wayne 10:00 0 0 3
larry 10:00 4 3 6
jamie 11:00 2 0 5
chris 11:00 1 1 0
It is something like I want combinations if the join satifies i.e. a.name = b.name and a.time = b.time . And also i need individual columns.
Any suggestions
thanks in advance
logic4fun