A business analyst has been asked to create a data entity/object called sales_by_employee. It should always stay up-to-date when new data are added to the sales table. The new entity should have the columns sales_person, which will be the name of the employee from the employees table, and sales, which will be all sales for that particular sales person. Both the sales table and the employees table have an employee_id column that is used to identify the sales person.
Which of the following code blocks will accomplish this task?
A)

B)

C)

D)

The SQL code provided in Option D is the correct way to create a view namedsales_by_employeethat will always stay up-to-date with the sales and employees tables. The code uses theCREATE OR REPLACE VIEWstatement to define a new view that joins the sales and employees tables on the employee_id column. It selects the employee_name as sales_person and all sales for each employee, ensuring that the data entity/object is always up-to-date when new data are added to these tables.
Stephanie
3 months agoAliza
3 months agoDonte
3 months agoOzell
4 months agoJanine
4 months agoAracelis
4 months agoAretha
4 months agoMitsue
4 months agoArt
5 months agoKristine
5 months agoEarleen
5 months agoCorazon
5 months agoAracelis
5 months agoMinna
5 months agoTruman
1 year agoSophia
1 year agoAdelina
1 year agoGail
1 year agoLettie
1 year agoFletcher
1 year agoNovella
1 year agoTamra
1 year agoQueenie
1 year agoNidia
1 year agoAlida
1 year agoKallie
1 year agoEleonora
1 year agoRenato
1 year agoCammy
1 year agoBecky
1 year agoElizabeth
1 year agoTresa
1 year agoChuck
1 year agoTamesha
1 year agoHarley
1 year agoBecky
1 year agoShenika
1 year agoAnika
1 year agoChauncey
1 year agoLuisa
1 year agoMirta
1 year agoOliva
1 year agoKarina
1 year agoMarkus
1 year ago