X
XP
Assuming:
SummaryTable contains summary info in which the value of several items have
been added together for each transaction. DetailTable contains detailed info
in which a separate record is included for every item composing each
transaction.
SummaryTable, with many fewer rows, includes an account number. The TranID
is the primary key in both tables and relates the transactions. I need a
query that pulls detailed information from DetailTable, but includes an
account number for every item in the query from SummaryTable. For now at
least, I just want all records from the DetailTable.
Can someone please post generic example SQL how I would do this?
Thanks much in advance.
SummaryTable contains summary info in which the value of several items have
been added together for each transaction. DetailTable contains detailed info
in which a separate record is included for every item composing each
transaction.
SummaryTable, with many fewer rows, includes an account number. The TranID
is the primary key in both tables and relates the transactions. I need a
query that pulls detailed information from DetailTable, but includes an
account number for every item in the query from SummaryTable. For now at
least, I just want all records from the DetailTable.
Can someone please post generic example SQL how I would do this?
Thanks much in advance.