Permalink
Browse files

Added fstender views

  • Loading branch information...
jdpurdyvi authored and maxolasersquad committed Aug 4, 2010
1 parent cf103da commit a657a3e01c8412d2cbf05c4ec1b7fc5705723e85
@@ -0,0 +1,11 @@
+USE `is4c_log`;
+
+DROP VIEW IF EXISTS `fstenders`;
+CREATE VIEW `fstenders` AS SELECT
+ `tendertape`.`tdate` AS `tdate`,
+ `tendertape`.`emp_no` AS `emp_no`,
+ `tendertape`.`register_no` AS `register_no`,
+ `tendertape`.`trans_no` AS `trans_no`,
+ `tendertape`.`fsTender` AS `FsTender`
+ FROM `tendertape`
+ WHERE (`tendertape`.`fsTender`<>0)
@@ -0,0 +1,9 @@
+USE `is4c_log`;
+
+DROP VIEW IF EXISTS `fstendertotal`;
+CREATE VIEW `fstendertotal` AS SELECT
+ `fstenders`.`register_no` AS `register_no`,
+ `fstenders`.`emp_no` AS `emp_no`,
+ SUM(`fstenders`.`FsTender`) AS `fsTender`
+ FROM `fstenders`
+ GROUP BY `fstenders`.`register_no`

0 comments on commit a657a3e

Please sign in to comment.