User UserCard * USER_ID * UserlD * CardNum Name UserType Transaction * Trans_ID phone_Num City TransDate CardNum Amount Card Trans type * CardNum CardTypelD PIN UserType * UserTypelD ExpireDate...


For this exercise use the following schema, the script to create this schema and populate data is given in ATM.SQL file


1- List the Cities of the users who have balance between 20000 and 35000.
2- List the Users who have never used the Card for transaction.
3- List the Card numbers that will expire in year 2020.
4- List the names of the users who’s transaction had failed.


User<br>UserCard<br>* USER_ID<br>* UserlD<br>* CardNum<br>Name<br>UserType<br>Transaction<br>* Trans_ID<br>phone_Num<br>City<br>TransDate<br>CardNum<br>Amount<br>Card<br>Trans type<br>* CardNum<br>CardTypelD<br>PIN<br>UserType<br>* UserTypelD<br>ExpireDate<br>balance<br>Name<br>TransactionType<br>8 Trans_Type ID<br>TypeName<br>CardType<br>8 CardTypelD<br>Description<br>Name<br>Description<br>

Extracted text: User UserCard * USER_ID * UserlD * CardNum Name UserType Transaction * Trans_ID phone_Num City TransDate CardNum Amount Card Trans type * CardNum CardTypelD PIN UserType * UserTypelD ExpireDate balance Name TransactionType 8 Trans_Type ID TypeName CardType 8 CardTypelD Description Name Description
user TypelD<br>name<br>1<br>Silver<br>2<br>Gold<br>3<br>Bronze<br>4<br>4<br>Common<br>userld<br>user Type phoneNum<br>city<br>name<br>Ali<br>2<br>03036067000 Narowal<br>2<br>2<br>Ahmed<br>1<br>03036047000 Lahore<br>3<br>Аgeel<br>3<br>03036063000 Karachi<br>4<br>4<br>Usman 4<br>03036062000 Sialkot<br>5<br>5<br>Hafeez 2<br>03036061000 Lahore<br>userlD<br>cardNum<br>1<br>1324327436569<br>1<br>2343243253436<br>2<br>2324325423336<br>2343243253436<br>3<br>2324325436566<br>6<br>2324325423336<br>cardNum<br>card TypelD PIN<br>expire Date balance<br>1<br>1324327436569 3<br>1770 2022-07-01 43025.31<br>2<br>2324325423336<br>3<br>0234 2020-03-02 14425.62<br>3<br>2324325436566<br>1<br>1234 2019-02-06 34325.52<br>4<br>2324325666456 2<br>1200 2021-02-05 24325.3<br>2343243253436 2<br>0034 2020-09-02 34025.12<br>card TypelD<br>name description<br>1<br>1<br>Debit Spend Now, Pay Now<br>Credit Spend Now, Pay later<br>3<br>Gift<br>Enjoy<br>transld transDate<br>cardNum<br>amount trans Type<br>1<br>1<br>2017-02-02 1324327436569<br>500<br>1<br>2<br>2018-02-03 2343243253436<br>3000<br>3<br>3<br>3<br>2017-05-06 2324325436566 2500<br>2<br>4<br>4<br>2016-09-09 2324325436566 2000<br>1<br>5<br>2015-02-10 2324325423336 6000<br>4<br>trans TypelD typeName description<br>1<br>1<br>Withdraw NULL<br>2<br>Deposit<br>NULL<br>3<br>Schedul. NULL<br>4<br>Failed<br>NULL<br>234<br>N3<br>

Extracted text: user TypelD name 1 Silver 2 Gold 3 Bronze 4 4 Common userld user Type phoneNum city name Ali 2 03036067000 Narowal 2 2 Ahmed 1 03036047000 Lahore 3 Аgeel 3 03036063000 Karachi 4 4 Usman 4 03036062000 Sialkot 5 5 Hafeez 2 03036061000 Lahore userlD cardNum 1 1324327436569 1 2343243253436 2 2324325423336 2343243253436 3 2324325436566 6 2324325423336 cardNum card TypelD PIN expire Date balance 1 1324327436569 3 1770 2022-07-01 43025.31 2 2324325423336 3 0234 2020-03-02 14425.62 3 2324325436566 1 1234 2019-02-06 34325.52 4 2324325666456 2 1200 2021-02-05 24325.3 2343243253436 2 0034 2020-09-02 34025.12 card TypelD name description 1 1 Debit Spend Now, Pay Now Credit Spend Now, Pay later 3 Gift Enjoy transld transDate cardNum amount trans Type 1 1 2017-02-02 1324327436569 500 1 2 2018-02-03 2343243253436 3000 3 3 3 2017-05-06 2324325436566 2500 2 4 4 2016-09-09 2324325436566 2000 1 5 2015-02-10 2324325423336 6000 4 trans TypelD typeName description 1 1 Withdraw NULL 2 Deposit NULL 3 Schedul. NULL 4 Failed NULL 234 N3
Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here