r***@gmail.com
2014-04-02 19:01:16 UTC
I have an SQL table qith fields QTY1, QTY2, QTY3.
For crosstab records I will like to create a VIEW table with the fields:
CALL_ID, QTY if QTY1>0
CALL_ID, QTY if QTY2>0
CALL_ID, QTY if QTY3>0
in other words the view may have only one record or if may have 3 depending on the fields QTY1, 2, 3 being populated.
Is this possible and if so how?
I love the concept of a VIEW table because is done at the backend and involves no programming.
Thanks,
Raul Rego
***@gmail.com
For crosstab records I will like to create a VIEW table with the fields:
CALL_ID, QTY if QTY1>0
CALL_ID, QTY if QTY2>0
CALL_ID, QTY if QTY3>0
in other words the view may have only one record or if may have 3 depending on the fields QTY1, 2, 3 being populated.
Is this possible and if so how?
I love the concept of a VIEW table because is done at the backend and involves no programming.
Thanks,
Raul Rego
***@gmail.com