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
Zepler [3.9K]
3 years ago
11

Write a CREATE VIEW statement that defines a view named InvoiceBasic that returns three columns: VendorName, InvoiceNumber, and

InvoiceTotal. Then, write a SELECT statement that returns all of the columns in the view, sorted by VendorName, where the first letter of the vendor name is N, O, or P.
Computers and Technology
1 answer:
Mila [183]3 years ago
7 0

Answer:

CREATE VIEW InvoiceBasic  AS

SELECT VendorName, InvoiceNumber, InvoiceTotal  

FROM Invoices JOIN Vendors ON Invoices.InvoiceID = Vendors.VendorID  

WHERE left(VendorName,1) IN ('N' , 'O ' , 'P' )

Explanation:

CREATE VIEW creates a view named InvoiceBasic  

SELECT statements selects columns VendorName, InvoiceNumber and InvoiceTotal   from Invoices table

JOIN is used to combine rows from Invoices and Vendors table, based on a InvoiceID and VendorsID columns.

WHERE clause specified a condition that the first letter of the vendor name is N, O, or P. Here left function is used to extract first character of text from a VendorName column.

You might be interested in
The large structure that supports a spacecraft prior to launch is called the
OlgaM077 [116]
Launch tower

Hope that helps
         

7 0
3 years ago
Consider the following line of code: price= input(Please enter the price: ") What would be the next line in your code that will
hodyreva [135]

Answer:

price float(price)

Explanation:

There are four basic type of data type use in the programming to declare the

variable.

1. int:  it is used for integer values.

2. float:  it is used for decimal values.

3. char:  it is used for character values

4. Boolean: it is used for true or false.

in the question, the one option contain the data type float (price float(price)). So, it store the value in decimal.

price int(price):  it store the value in integer.

price decimal(price):  it is wrong declaration of variable. their is no data type in the programming which name is decimal.

price price(decimal):  it is wrong declaration of variable. their is no data type in the programming which name is price.

6 0
3 years ago
You're the network administrator for several Windows Server 2016 servers in New York. Your company just opened an office in Cali
Galina-37 [17]

Answer: The time zone on the California server needs to be changed.

Explanation:

The system time of the server controls much of the activities of the server client procedure as many packet sending and their acknowledgement may be in a problem if the time zone is not changed as both the server and the domain controllers are in different time zones.

Therefore, The time zone on the California server needs to be changed.

4 0
4 years ago
Look at the code, and then answer the question below. .links { text-align: center; font-size: 16px; font-color: blue; background
Dvinal [7]
Link text is blue and 16 pixels
8 0
3 years ago
Read 2 more answers
Where is the option to insert a PivotTable in Excel 2016 located?
Semenov [28]

Answer:

It's A

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • Why does a layer 3 device perform the anding process on a destination ip address and subnet mask?
    10·1 answer
  • Maggie is preparing a document.she wants to open the help menu to sort out a formatting problem.which key should she press to op
    15·2 answers
  • Frank lives in an area that experiences frequent thunderstorms. What precautionary measure should he adopt?
    5·1 answer
  • 6.25 (Prime Numbers) A positive integer is prime if it’s divisible by only 1 and itself. For example, 2, 3, 5 and 7 are prime, b
    15·1 answer
  • PLEASE HELP FAST!!!!!!Color photographs often look better on which type of photo paper
    7·1 answer
  • Given the class definition: class CreateDestroy { public: CreateDestroy() { cout << "constructor called, "; } ~CreateDestr
    6·1 answer
  • Which entity might hire a Computer Systems Analyst to help it catch criminals?
    12·2 answers
  • Write a Python program stored in a file q1.py to play Rock-Paper-Scissors. In this game, two players count aloud to three, swing
    13·1 answer
  • Anyone wanna hop on 1v1.lol<br> party code : usfhb6
    12·2 answers
  • Do you like Anime and if so if your 13-15 let’s be friends my number is 954 643 2050
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!