Quantcast
Channel: Question and Answer » oracle
Viewing all articles
Browse latest Browse all 717

find sold subscriptions from table 1 and store name in table 2, joined by store id. (oracle)

$
0
0

I am trying to get the number of sold subscriptions from one table and the store name from another. The tables have a common column containing a store id, however the columns do not have the same name.

Talbe1                  |   Table2

Amount     store_code   |   store_name    store_no

1          nf1ii        |   Jims kiosk    nf1ii
1          nfoi1        |   Henrys kiosk  nfoi1
...        ...          |   ...           ...

I am trying to count the number of subscriptions sold for each store name. How is this doen in Oracle? I am fairly new to SQL in general so please forgive me if the question is phrased strangely.


Viewing all articles
Browse latest Browse all 717

Trending Articles