1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Novosadov [1.4K]
4 years ago
9

Using data from the BITS database, define a view named TopLevelClient. It consists of the number, name, address, balance, and cr

edit limit of all clients with credit limits that are greater than or equal to $10,000.
(a) Using SQL, write the view definition for TopLevelClient.



(b) Write an SQL query to retrieve the number and name of all customers as well as the difference between their credit limit and balance in the TopLevelClient.



(c) Convert the query you wrote in (b) to the query that the DBMS will actually execute.
Computers and Technology
1 answer:
LiRa [457]4 years ago
6 0

Answer:

Check the explanation

Explanation:

a) Consider the following SQL query to create a view TopLevelCust

Query: Create View TopLevelCust AS Select CustomerNum, CustomerName, Street, City, State, PostalCode, Balance, Creditlimit From Customer Where Creditlimit P= 10000,  

  • In order to create a view for TopLevelCust, it is required to replace viewname with TopLevelCust
  • select Clause is used to retrieve stored records from the table o CustomerNum, CustomerName, Street, City, State, PostalCode, Balance and Creditlimit are the attribute name
  • from clause specifies one or more table from where records. be retrieved o Customer is the table name
  • where clause is used in SQL query to retrieve only those records that satisfy the specified condition
  • CreditlLimit>=10000 is the specified condition to retrieve the information from table.
You might be interested in
Write a C++ program using a do while loop for (Find the highest score). The program should work for any number of students. Run
alexdok [17]

Answer:

  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.    int highest = 0;
  6.    int score;  
  7.    do{
  8.        cout<<"Input a score: ";
  9.        cin>>score;
  10.        
  11.        if(score > highest){
  12.            highest = score;
  13.        }    
  14.    }while(score >= 0);
  15.    
  16.    cout<<highest;
  17.    return 0;
  18. }

Explanation:

Firstly, create a variable highest and initialize it with zero (Line 5). Next, create a do while loop (Line 7 - 14). Within the loop prompt user to input a score (Line 8-9) and if the current score is higher than the highest variable, assign the score to highest variable (Line 11 - 13).

After finishing the loop when user put in any negative value, the program shall be able to print out the highest input score (Line 16).

8 0
3 years ago
Which kind of image is indispensable and needs added text to go with it?
madreJ [45]

Answer:

A chart and a graph are kind of image that are indispensable and need added text to go with it.

4 0
3 years ago
Should a waiting thread receive priority over a thread first attempting to enter a monitor? What priority scheme, if any, should
nadezda [96]

Answer:

Yes, thread should have a priority level. Threads are scheduled to run based on their scheduling priority. Each thread is assigned a scheduling priority. The priority levels range from zero (lowest priority) to 31.

Explanation:

Threads generally are given different kinds of priorities based on the types of work the threads will be used for. This is normally known as scheduling and it is a vital procedure in thread prioritization. The standard priority levels for every thread is from the lowest priority which is typically '0' and the highest priority which is approximately 31.

6 0
3 years ago
What scientific principle would a plumber need to know when designing and installing plumbing a new construction
Volgvan
Diong reasearch to know what your dion
7 0
4 years ago
Which if the following is an effect of intellectual property theft?
Leno4ka [110]
Record companies lose money because people download songs for free.
8 0
3 years ago
Read 2 more answers
Other questions:
  • 1. Which of the following are considered CAD powerhouses?
    6·1 answer
  • An administrator working on a Windows Server 2016 Server Core installation needs to disable DHCP on all interfaces on the server
    12·1 answer
  • If you want a user to enter exactly 20 values which loop would be the best to use
    12·1 answer
  • He has a new Wi-Fi router that connects wirelessly to a new desktop and two new laptops, in addition to multiple smartphones, ta
    8·1 answer
  • What are some areas to fill out in the New Formatting Rule dialog box? Check all that apply.
    13·2 answers
  • What is the advantage of postfix notation?
    6·1 answer
  • What is the purpose of the 5 Whys Strategy? How could you use the 5 Whys strategy in your day-to-day life? (Site 2)
    5·1 answer
  • Specialization of computer engineering ?<br>​
    7·1 answer
  • What are the main dimensions of information system and their components
    13·1 answer
  • The probability of event A occurring is 10/10. The probability of event B occurring is 0/10. What is the entropy of this system?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!