0

I am struggling with a query. And wondering if someone could help.

I have a table of tags (service request tickets) and a table of serial numbers

From my tags I am doing this

Select * from tag 
where
tag.created
BETWEEN '2012-9-01'
AND '2012-12-29' 
and
tag.tagtype <> 'service'

Now, i would like to join with serialnumber (table) where (not sure inner/outer or just join)

tag.serialnumberid is in serialnumber.id and serialnumber .modelid = 80

I am thinking it should be easy. Any help would be appreciated

4

1 に答える 1

1
Select * from tag 
join serialnumber on tag.serialnumberid = serialnumber.id
where
   tag.created BETWEEN '2012-9-01' AND '2012-12-29' 
     and
  tag.tagtype <> 'service'
     and serialnumber.modelid = 80;
于 2012-12-28T21:42:06.180 に答える