Skip to main content
deleted 5 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

I am trying to group the number of times a subscriber has visited each unique store but am getting an error:

    select subscriberkey, storename, count (orderID) as shopvisits from salesorder 
    group by subscriberkey,storename

What is missing from/incorrect about this query?

Thanks

I am trying to group the number of times a subscriber has visited each unique store but am getting an error:

    select subscriberkey, storename, count (orderID) as shopvisits from salesorder 
    group by subscriberkey,storename

What is missing from/incorrect about this query?

Thanks

I am trying to group the number of times a subscriber has visited each unique store but am getting an error:

select subscriberkey, storename, count (orderID) as shopvisits from salesorder 
   group by subscriberkey,storename

What is missing from/incorrect about this query?

Thanks

Preformatted text and removed the irrelevant tags like SFMC, SQL Server
Source Link

I am trying to group the number of times a subscriber has visited each unique store but am getting an error:

select subscriberkey, storename, count (orderID) as shopvisits from salesorder group by subscriberkey,storename

    select subscriberkey, storename, count (orderID) as shopvisits from salesorder 
    group by subscriberkey,storename

What is missing from/incorrect about this query?

Thanks

I am trying to group the number of times a subscriber has visited each unique store but am getting an error:

select subscriberkey, storename, count (orderID) as shopvisits from salesorder group by subscriberkey,storename

What is missing from/incorrect about this query?

Thanks

I am trying to group the number of times a subscriber has visited each unique store but am getting an error:

    select subscriberkey, storename, count (orderID) as shopvisits from salesorder 
    group by subscriberkey,storename

What is missing from/incorrect about this query?

Thanks

Source Link

SQL Query to Group Shop Visits?

I am trying to group the number of times a subscriber has visited each unique store but am getting an error:

select subscriberkey, storename, count (orderID) as shopvisits from salesorder group by subscriberkey,storename

What is missing from/incorrect about this query?

Thanks