![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to monitor any suspicious financial transaction which take place in a bank through electronic transfer. There are three tables Customers, Account and transaction_type. How can I write a SQl to report the following: Detect an outbound Electronic transfer that is unusually high, compared to a set threshold. For each customer, generate alerts if any outbound Electronic Transfer exceeds threshold. Detect Electronic Transfer that are high, compared to a set threshold. For each customer, generate alerts if any set of last 5 outbound Electronic Transfers exceeds the set threshold. Detect Electronic Transfer that are high, compared to historical behavior of the customer. For each customer, generate alerts if any set of last 5 Electronic Transfer (the average of all sets of 5 outbound Electronic Transfer +2 standard deviation points) |
#3
| |||
| |||
|
|
I want to monitor any suspicious financial transaction which take place in a bank through electronic transfer. There are three tables Customers, Account and transaction_type. How can I write a SQl to report the following: Detect an outbound Electronic transfer that is unusually high, compared to a set threshold. For each customer, generate alerts if any outbound Electronic Transfer exceeds threshold. |
|
Detect Electronic Transfer that are high, compared to a set threshold. For each customer, generate alerts if any set of last 5 outbound Electronic Transfers exceeds the set threshold. |
|
Detect Electronic Transfer that are high, compared to historical behavior of the customer. For each customer, generate alerts if any set of last 5 Electronic Transfer (the average of all sets of 5 outbound Electronic Transfer +2 standard deviation points) |
#4
| |||
| |||
|
|
Beware of spamming the client. |
#5
| |||
| |||
|
|
10001 003 12346 100 1537 206212 2001-12-03 10002 003 12346 100 1376 206212 2001-12-03 |
|
[posted and mailed] Sam (masystem (AT) europe (DOT) com) writes: I want to monitor any suspicious financial transaction which take place in a bank through electronic transfer. There are three tables Customers, Account and transaction_type. How can I write a SQl to report the following: Detect an outbound Electronic transfer that is unusually high, compared to a set threshold. For each customer, generate alerts if any outbound Electronic Transfer exceeds threshold. Detect Electronic Transfer that are high, compared to a set threshold. For each customer, generate alerts if any set of last 5 outbound Electronic Transfers exceeds the set threshold. Detect Electronic Transfer that are high, compared to historical behavior of the customer. For each customer, generate alerts if any set of last 5 Electronic Transfer (the average of all sets of 5 outbound Electronic Transfer +2 standard deviation points) First: decide which engine you want this implemented on. You have cross-posted this to three newsgroups for three different products, and the solution is not likely to be the same for all three. Unless, portability is a requirement, but then you need to specify this. Second, do you really expect anyone to write a query for you, without the tables at hand. There is a standard recommendation for these kind of questions, and that is to include: o CREATE TABLE statements for your table(s). o INSERT statements with sample data. o The desired output from that sample data. That makes it possible for anyone to post a tested solution. Unless... this is really a school assignment, in which case you should solve the problem yourself and not ask someone else to do it. |
#6
| |||
| |||
|
|
please see below the data and the Schema DDL: |
|
Create table Accounts ( Trans_Id Number Primary Key Trans_Amount Number, Trans_Date Date, Trans_limit Number, Acct_No Number, Trans_type References Transaction_Type, Cust_Id References Customers); |
![]() |
| Thread Tools | |
| Display Modes | |
| |