Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT &mindbf..ansnavn,&mindbf.ansattnumm
Message
From
12/02/1997 17:51:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SELECT &mindbf..ansnavn,&mindbf.ansattnumm
Miscellaneous
Thread ID:
00020253
Message ID:
00020253
Views:
82
In a multiuser env. using grids I'm using
variables to create unique tablenames like
mindbf=SUBSTR(SYS(2015), 3, 10)
I then runs sqls like:
SELECT &mindbf..ansnavn,&mindbf..ansattnumm,&mindbf..avdeling,&mindbf..job,;
&mindbf..dato1,&mindbf..skift,&mindbf..lønnsartna,;
&mindbf..lønnsartnu,;
&mindbf2..timer-&mindbf..Timer AS Timer;
FROM &mindbf,&mindbf2;
WHERE &mindbf..ansattnumm=&mindbf2..ansattnumm;
AND &mindbf..dato1=&mindbf2..dato1;
AND &mindbf..avdeling=&mindbf2..avdeling;
AND &mindbf..job=&mindbf2..job;
AND &mindbf..lønnsartnu=&mindbf2..lønnsartnu;
AND &mindbf2..timer-&mindbf..timer !=0;
GROUP BY &mindbf..ansattnumm,&mindbf..dato1,&mindbf..avdeling,&mindbf..job,&mindbf..lønnsartnu;
ORDER BY &mindbf..ansattnumm,&mindbf..dato1,&mindbf..avdeling,&mindbf..job,&mindbf..lønnsartnu;
INTO TABLE &korrdbf

I'm just wondering if this is a correct way to things??
Next
Reply
Map
View

Click here to load this message in the networking platform