Data Analyst – Pre-Interview Questions
Your Name: Seth Renda
Please write SQL queries to address each of the following 3 scenarios:
Scenario 1: Marketing would like a list of individuals, 18 years or older, who are the primary owner of at least one open checking account. Using the ERD on page 4, write a select query that returns:
· MEMBER_NBR
· FIRST_NAME
· LAST_NAME
· Member age
· Count of checking accounts
· Total balance of checking accounts
Assume the “Share” table holds deposit accounts, such as checking and savings.
Assume open checking accounts are identified with the field CLOSED, when its value is 0 (zero).
Assume primary owners are identified with the field PARTICIPATION_TYPE when its value is 101.
Assume the Individual table contains a date field called BIRTH_DATE.
Query 1:
select MEMBER_NBR M, I.FIRST_NAME, I.LAST_NAME,I.DATEBIRTH_DATE,S.COUNT(CLOSED),S.SUM(BALANCE)
FROM Individual I
JOIN MembershipParticipant M
ON I.DRIVERS_LICENSE_NBR = M.INDIVIDUAL_ID
JOIN Share S
ON S.MEMBER_NBR = M.MEMBER_NBR
WHERE DATEDIFF(YEAR, I.BIRTH_DATE,SYSDATE) >= 18 AND S.CLOSED = 0 AND S.PARTICIPATION_TYPE = 101 AND S.ACCOUNT_TYPE = 2 ----(checking)
Scenario 2: Accounting would like a list of members who have one or more open credit card accounts with a credit limit of $20,000 or more. Using the ERD on page 4, write a select query that returns:
· MEMBER_NBR
· Count of credit card accounts
· Total credit limit
· Total credit card balances
· Total available credit
· Percent credit usage
Assume credit cards are identified with the field IS_CREDIT_CARD when its value is equal to 1.
Assume open credit card accounts are identified with the field CLOSED, when its value is equal to 0 (zero).
Scenario 3: Consumer Loans would like to know how many members have an open checking account with balances between $1,000 and $2,000 and had closed a credit card loan in the past 6 months. Using the ERD on page 4, write a select query that returns:
· Count of members per month
· Month name
Assume the “Share” table holds deposit accounts, such as checking and savings.
Assume open checking accounts are identified with the field CLOSED, when its value is 0 (zero).
Assume credit cards are identified with the field IS_CREDIT_CARD when its value is equal to 1.
Assume CLOSED_DATE will have a value of the date in which the loan was closed.
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
Prepare and execute each of the queries listed using the "Adventureworks2012" database in SQL: Server: http://msftdbprodsamples.codeplex.com/releases/view/93587 When all of your queries are complete, cut and paste the SQL Syntax into a word document. In order to see what the column names are, you need to click on the table and then Columns to see the field names. Make sure to include column headings that make sense in the queries (use the as “Field Name” after the field selected). Multi-table Queries...
War—A Card game Playing cards are used in many computer games, including versions of such classics as solitaire, hearts, and poker. War: Deal two Cards—one for the computer and one for the player—and determine the higher card, then display a message indicating whether the cards are equal, the computer won, or the player won. (Playing cards are considered equal when they have the same value, no matter what their suit is.) For this game, assume the Ace (value 1) is...
Crescent Bank made it’s name by lending to farmers and agricultural machinery suppliers. Traditionally, Crescent has helped farmers by providing loans for property, plant, and equipment (PPE), and by closing the gap between agricultural machinery retailers and the agricultural machinery original equipment manufacturers (OEM). Associated with these banking activities are CRUD operators - Creating accounts, Reading accounts, Updating accounts, and Deleting accounts...with more accounts being created than deleted. Because of how well Crescent has performed in the agricultural sector, it...
Crescent Bank made it’s name by lending to farmers and agricultural machinery suppliers. Traditionally, Crescent has helped farmers by providing loans for property, plant, and equipment (PPE), and by closing the gap between agricultural machinery retailers and the agricultural machinery original equipment manufacturers (OEM). Associated with these banking activities are CRUD operators - Creating accounts, Reading accounts, Updating accounts, and Deleting accounts...with more accounts being created than deleted. Because of how well Crescent has performed in the agricultural sector, it...
How do I start this c++ code homework? Write a code in C++ for a BlackJack card game using the following simplified rules: Each card has a numerical value. Numbered cards are counted at their face value (two counts as 2 points, three, 3 points, and so on) An Ace count as either 1 point or 11 points (whichever suits the player best) Jack, queen and king count 10 points each The player will compete against the computer which represents...
5-50 CHAPTER 5 Checking Accounts, Credit Scores, and Credit Cards Calculating the Cost of Life's Financial Journey Belinda is in the process of choosing a credit card. She has narrowed her choice to two cards: ticket. If she uses the cash-back credit card, assume that she will pay a $25 baggage fee for each leg of her trip.) 1. A credit card co-branded with a major airline. The card offers the following features: Instructions Based on this information, which credit...
You will develop an E-Commerce database used to maintain
customers, products and sales information. You are required to 1)
gather and analyze requirements 2) design logical structure of the
database 3) create stored procedures to develop the tables and
insert the data 4) write SQL statements for data extraction and
reporting.
Throughout the course of this semester you have analyzed the
requirements for an eCommerce database, designed and developed your
database. As a class we have gone through the process...
This needs to be done in c++11 and be compatible with g++ compiling Project description: Write a C++ program to simulate a simple card game between two players. The game proceeds as follows: The 52 cards in a deck of cards are shuffled and each player draws three cards from the top of the deck. Remaining cards are placed in a pile face-down between the two players. Players then select a card from the three in their hand. The player...
Big data is the collection and cross-referencing of large numbers and varieties of data sets that allows organizations to identify patterns and categories of cardholders through a multitude of attributes and variables. Every time customers use their cards, big data suggests the products that can be offered to the customers. These days many credit card users receive calls from different companies offering them new credit cards as per their needs and expenses on the existing cards. This information is gathered...
hello there, i have to implement this on java processing. can someone please help me regarding that? thanks War is the name of a popular children’s card game. There are many variants. After playing War with a friend for over an hour, they argue that this game must never end . However! You are convinced that it will end. As a budding computer scientist, you decide to build a simulator to find out for sure! You will implement the logic...
> EDR is awful and I don't like to assume
Seth Renda Fri, Oct 22, 2021 2:45 PM