Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

sql query

$
0
0

I'm trying to join to tables and get counts but not sure if this is right.

Table1 has columns -  name, model, os, memory, location

Table2 has columns -  location, description

This is output I'm trying to get based on model and os for the count;

select Table1.location, Table1, model, Table2.description

from Table1, Table2

where Table1.model = 1

order by Table1.location

group by Table1.model;


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>