cswork / OAOpen practice workspace

VeriskOA #2

Campaign Engagement Report (SQL)

Estimated EasyStatement and editorial — judging is being prepared

Topics (AI-labelled)SQL

A marketing company tracks advertising campaigns and engagements. Generate a report that, for every active campaign, lists the campaign name, the total number of engagements, and the combined sum of views and clicks. Columns: campaign_name | total_engagements | total_views_and_clicks. Sort by campaign_name ascending.

Schema:

campaigns

nametypedescription
idINT PKcampaign id
nameVARCHAR(255)campaign name
is_activeSMALLINT1 if active, 0 if inactive

engagements

nametypedescription
campaign_idINT FKreference to campaigns(id)
viewsINTviews count
clicksINTclicks count

Editorial

Loading solution…