Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why becoming error(operand type mismatch
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01050437
Message ID:
01050448
Views:
13
Khubaib,
Why you sorry?
I am still using VFP DB engine :-)

About your qustion:
SELECT lcode,;
       sec,;
       descr,;
       examcode,;
       sum(tobt) as tobtt,;
       SUM(tmax) as tmaxt;
FROM Examtran;
WHERE examcode=thisform.code.value .and.;
      scode>=thisform.shiftfm.value .and. scode<=thisform.shiftto.value;
GROUP BY lcode,sec;
INTO CURSOR tyu

SELECT lcode,;
       sec,;
       descr,;
       examcode,;
       tobtt,;
       tmaxt,;
       TRANSFORM((tobtt/tmaxt)*100,"##.##") AS PERCENTAGE;
FROM tyu;
WHERE examcode=thisform.code.value .and. scode>=thisform.shiftfm.value .and. scode<=thisform.shiftto.value;
GROUP BY lcode,sec;
INTO CURSOR ppp
SELECT ppp
brows
What exactly is the error?
BTW the WHERE clasue in second select is useless, becaouse you already get the filtered recordset in first one.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform