Hi folx
I am using DBISAM, so here is a list of unsupported SQL:
ALLOCATE CURSOR (Command)
ALLOCATE DESCRIPTOR (Command)
ALTER DOMAIN (Command)
CASE (Expression)
CHECK (Constraint)
CLOSE (Command)
CONNECT (Command)
CONVERT (Function)
CORRESPONDING BY (Expression)
CREATE ASSERTION (Command)
CREATE CHARACTER SET (Command)
CREATE COLLATION (Command)
CREATE DOMAIN (Command)
CREATE SCHEMA (Command)
CREATE TRANSLATION (Command)
CREATE VIEW (Command)
CROSS JOIN (Relational operator)
DEALLOCATE DESCRIPTOR (Command)
DEALLOCATE PREPARE (Command)
DECLARE CURSOR (Command)
DECLARE LOCAL TEMPORARY TABLE (Command)
DESCRIBE (Command)
DISCONNECT (Command)
DROP ASSERTION (Command)
DROP CHARACTER SET (Command)
DROP COLLATION (Command)
DROP DOMAIN (Command)
DROP SCHEMA (Command)
DROP TRANSLATION (Command)
DROP VIEW (Command)
ESCAPE (LIKE clause)
EXCEPT (Relational operator)
EXECUTE (Command)
EXECUTE IMMEDIATE (Command)
FETCH (Command)
FOREIGN KEY (Constraint)
GET DESCRIPTOR (Command)
GET DIAGNOSTICS (Command)
GRANT (Command)
INTERSECT (Relational operator)
MATCH (Predicate)
NATURAL (Relational operator)
NULLIF (Expression)
OPEN (Command)
OVERLAPS (Predicate)
PREPARE (Command)
REFERENCES (Constraint)
REVOKE (Command)
SET CATALOG (Command)
SET CONNECTION (Command)
SET CONSTRAINTS MODE (Command)
SET DESCRIPTOR (Command)
SET NAMES (Command)
SET SCHEMA (Command)
SET SESSION AUTHORIZATION (Command)
SET TIME ZONE (Command)
SET TRANSACTION (Command)
TRANSLATE (Function)
USING (Relational operator)
I want to find the top 60% of nettsales within an area.
Sample data:
ACCNUM AREA NETTSALES
AAA001 10 134,233.00
AAA034 10 99,230.00
AAA012 10 95,450.00
AAA341 10 80,283.00
AAA234 10 75,530.00
AAA567 10 65,950.00
AAA223 10 45,223.00
AAA665 10 30,030.00
AAA676 10 20,850.00
AAA233 10 18,123.00
I want the result to look like this:
ACCNUM AREA NETTSALES TOP60PERCENT
AAA001 10 134,233.00 1
AAA034 10 99,230.00 1
AAA012 10 95,450.00 1
AAA341 10 80,283.00 1
AAA234 10 75,530.00 1
AAA567 10 65,950.00 1
AAA223 10 45,223.00 0
AAA665 10 30,030.00 0
AAA676 10 20,850.00 0
AAA233 10 18,123.00 0
Thank you.
Kind regards
wickyd
I am using DBISAM, so here is a list of unsupported SQL:
ALLOCATE CURSOR (Command)
ALLOCATE DESCRIPTOR (Command)
ALTER DOMAIN (Command)
CASE (Expression)
CHECK (Constraint)
CLOSE (Command)
CONNECT (Command)
CONVERT (Function)
CORRESPONDING BY (Expression)
CREATE ASSERTION (Command)
CREATE CHARACTER SET (Command)
CREATE COLLATION (Command)
CREATE DOMAIN (Command)
CREATE SCHEMA (Command)
CREATE TRANSLATION (Command)
CREATE VIEW (Command)
CROSS JOIN (Relational operator)
DEALLOCATE DESCRIPTOR (Command)
DEALLOCATE PREPARE (Command)
DECLARE CURSOR (Command)
DECLARE LOCAL TEMPORARY TABLE (Command)
DESCRIBE (Command)
DISCONNECT (Command)
DROP ASSERTION (Command)
DROP CHARACTER SET (Command)
DROP COLLATION (Command)
DROP DOMAIN (Command)
DROP SCHEMA (Command)
DROP TRANSLATION (Command)
DROP VIEW (Command)
ESCAPE (LIKE clause)
EXCEPT (Relational operator)
EXECUTE (Command)
EXECUTE IMMEDIATE (Command)
FETCH (Command)
FOREIGN KEY (Constraint)
GET DESCRIPTOR (Command)
GET DIAGNOSTICS (Command)
GRANT (Command)
INTERSECT (Relational operator)
MATCH (Predicate)
NATURAL (Relational operator)
NULLIF (Expression)
OPEN (Command)
OVERLAPS (Predicate)
PREPARE (Command)
REFERENCES (Constraint)
REVOKE (Command)
SET CATALOG (Command)
SET CONNECTION (Command)
SET CONSTRAINTS MODE (Command)
SET DESCRIPTOR (Command)
SET NAMES (Command)
SET SCHEMA (Command)
SET SESSION AUTHORIZATION (Command)
SET TIME ZONE (Command)
SET TRANSACTION (Command)
TRANSLATE (Function)
USING (Relational operator)
I want to find the top 60% of nettsales within an area.
Sample data:
ACCNUM AREA NETTSALES
AAA001 10 134,233.00
AAA034 10 99,230.00
AAA012 10 95,450.00
AAA341 10 80,283.00
AAA234 10 75,530.00
AAA567 10 65,950.00
AAA223 10 45,223.00
AAA665 10 30,030.00
AAA676 10 20,850.00
AAA233 10 18,123.00
I want the result to look like this:
ACCNUM AREA NETTSALES TOP60PERCENT
AAA001 10 134,233.00 1
AAA034 10 99,230.00 1
AAA012 10 95,450.00 1
AAA341 10 80,283.00 1
AAA234 10 75,530.00 1
AAA567 10 65,950.00 1
AAA223 10 45,223.00 0
AAA665 10 30,030.00 0
AAA676 10 20,850.00 0
AAA233 10 18,123.00 0
Thank you.
Kind regards
wickyd