Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Need SQL Queries

$
0
0

Hello, I need some help with SQL Queries. I have 2 tables that contain the following fields

advertiser_lookup

 -advertiser_id

 -advertiser_name

data_snippet

 -Date

 -advertiser_id

 -site_id

 -domain

 -datacenter

 -geo

 -user_accepts_cookies? (TRUE/FALSE)

 -user_has_data? (TRUE/FALSE)

 -impressions

 -spend

 -requests_sent

 -bid_volume

 -total_bid_value

 -total_wins

I need queries for the following by advertiser name.

Total requests sent

Total requests sent with user data

Percent requests sent with user data

Bid volume

Bid rate

Avg bid value (multiply your answer by 1000 to get to CPM)

Win volume

Win rate

Impressions

Avg spend (multiply your answer by 1000 to get to CPM)

All help is highly appreciated. Thank you.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>