(Error 3296)

  • Thread starter Thread starter daniel caparg
  • Start date Start date
D

daniel caparg

Dear,
i need some help,
i try run this sql, but ans error 3296 over each conditions:

SELECT coco_sector ,
coco_USM ,
coco_Center ,
coco_Tecno ,
*
FROM coco
LEFT JOIN Reservated
ON ([coco_sector] = [res_sector])
AND (coco_USM = Res_USM)
AND (coco_Centro = Res_Centro)
AND (coco_Tecno = Res_Tecno);

tks
 
well that error is about your joins is there any reason you are
joining 4 fields in the one table. What you seem to be doing is
having massive reduandcy in your data and your select is off as well
because you are double selecting data because of the wildcard *

do you not have an id that links the two tables together
 
Dear,
i need some help,
i try run this sql, but ans error 3296 over each conditions:

SELECT coco_sector ,
coco_USM ,
coco_Center ,
coco_Tecno ,
*
FROM coco
LEFT JOIN Reservated
ON ([coco_sector] = [res_sector])
AND (coco_USM = Res_USM)
AND (coco_Centro = Res_Centro)
AND (coco_Tecno = Res_Tecno);

tks

You probably need to specify the table name and field name in each JOIN clause
portion, and get rid of some parentheses: try

SELECT coco_sector ,
coco_USM ,
coco_Center ,
Reservated.*
FROM coco
LEFT JOIN Reservated
ON [coco].[coco_sector] =[Reservated].[res_sector]
AND [coco].coco_USM = [Reservated].Res_USM
AND [coco].coco_Centro = [Reservated].Res_Centro
AND [coco].coco_Tecno = [Reservated].Res_Tecno;

That's a pure guess, of course, since I know nothing about the structure of
your tables, their relationships, or the meaning of these fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Reserved error (Error 3000) 4
Error in syntax 2
Reserved Error -7711 Pass Thru Query 5
SQL JOIN simplifying 5
Join on a UNION query 2
Running Sum Error in Query 7
Error -1524 1
"Invalid use of Null" in query 3

Back
Top