SQL 1
SELECT lists.tp_ListId, lists.float1, lists.tp_ID
FROM lists
WHERE (((lists.tp_ListId)={guid {51ADAD28-41BD-4D04-9B28-F0FA2A26AE35}}));
SQL 2
SELECT lists.tp_ListId, DatePart('yyyy',[lists].[dateTime1]) AS [Year], DatePart('ww',[lists].[dateTime1]) AS WeekofYear, [dev_lstAssembly].float1
FROM lists INNER JOIN dev_lstAssembly ON lists.int1=[dev_lstAssembly].tp_ID
WHERE (((lists.tp_ListId)={guid {E10FA531-1F21-455F-8D9C-AA85AE1838F1}}));
Is there a way to combine 1 into 2?
2007-03-13
12:07:10
·
3 answers
·
asked by
Akshay L
1
in
Computers & Internet
➔ Programming & Design
SQL 1 is called dev_lstAssembly
Basically I have a Microsoft Sharepoint database and all my data is stored in one table. Thats why the first query extracts the the assembly table (sharepoint list) and the second extracts finished goods list.
Thanks for your help.
2007-03-14
04:53:33 ·
update #1
Hey,
So i have uploaded an access database file
http://www.gatehouseministries.org/akshay/new_sharepointgrapher.mdb
I have kept the same table structure as the sql database. The list I am trying to get is the dev_lstChannel view.
I would ideally like to get that same view in one SQL statement!
2007-03-15
12:22:39 ·
update #2