Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 inner join

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-04-30 : 14:01:31
tommaso writes "could we use this kind of query using SQL sever?
Access suppot this, but I don't know if sql server do this

SELECT DISTINCT name, surname, note FROM
(capability INNER JOIN details ON capability.id_capability = dettaglio.id_capability)
INNER JOIN
(customers INNER JOIN project ON customer.id_customer = project.id_customer)
ON details.id_project = project.id_project
WHERE cap_descr = 'cap_selected' ORDER BY name

SQL server version : 2000
Windows NT

Thank you"

nr
SQLTeam MVY

12543 Posts

Posted - 2004-04-30 : 14:28:51
Why all the brackets?

SELECT DISTINCT name, surname, note
FROM capability
INNER JOIN details
ON capability.id_capability = dettaglio.id_capability
INNER JOIN project
ON details.id_project = project.id_project
INNER JOIN customers
ON customer.id_customer = project.id_customer
WHERE cap_descr = 'cap_selected' ORDER BY name

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -