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
4 months agoAliza
5 months agoDonte
5 months agoOzell
5 months agoJanine
5 months agoAracelis
6 months agoAretha
6 months agoMitsue
6 months agoArt
6 months agoKristine
6 months agoEarleen
6 months agoCorazon
6 months agoAracelis
6 months agoMinna
6 months agoTruman
1 year agoSophia
1 year agoAdelina
1 year agoGail
1 year agoLettie
1 year agoFletcher
1 year agoNovella
1 year agoTamra
2 years agoQueenie
1 year agoNidia
1 year agoAlida
1 year agoKallie
2 years agoEleonora
1 year agoRenato
1 year agoCammy
1 year agoBecky
2 years agoElizabeth
2 years agoTresa
2 years agoChuck
1 year agoTamesha
1 year agoHarley
2 years agoBecky
2 years agoShenika
2 years agoAnika
1 year agoChauncey
2 years agoLuisa
2 years agoMirta
2 years agoOliva
2 years agoKarina
2 years agoMarkus
2 years ago