Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select does not support the quarter function
Message
 
 
To
12/05/2006 13:20:39
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01121405
Message ID:
01121406
Views:
8
>It seems that you cannot use the quarter function within a select statement.
>
Sure you can
CREATE CURSOR test (ii i AUTOINC, date D)
INSERT INTO test (date) VALUES (DATE())
INSERT INTO test (date) VALUES (DATE()-120)
INSERT INTO test (date) VALUES (DATE()+120)
SELECT *, QUARTER(date) FROM test
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform