question

monapatel728 avatar image
monapatel728 asked

Join static query with query result

Good morning,

How can I join static query with the query result. If I want to join 2 queries result as one table with time as common column. How can I do this?

thanks in advance.

sql2008
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
anthony.green avatar image
anthony.green answered

Use nested sub queries.

Select *
from
(
My first select query
) as q1
Inner join
(
My second select query
) q2
ON q1.datetime = q2.datetime
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.