Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ivra
Starting Member
18 Posts |
Posted - 2009-03-13 : 09:57:07
|
| Hi,ListingInfo UserInfoitem_id user_idItem_country countryseller_id email_addrbuyer_id good_status_ynsold_yn accept_marketing_yngmv powerseller_ynauct_end_date registration_date*ListingInfo="Contains row for every item listed on the site. Buyer_id is null if item didn't sell. Buyer & Seller Id = User_idThe listinginfo joins to userinfo by seller_id or buyer_id"*UserInfo=Contains row for every registered user *Fields named _yn contain either Y or N Question: How can I select list of sellers who have increased their GMV per month by at least 25% for the 3 months since registration. For example, Month 2 GMV must be more than a 25% increase on Month 1, and Month 3 must be more than a 25% increase on Month 2 |
|
|
darkdusky
Aged Yak Warrior
591 Posts |
Posted - 2009-03-13 : 11:28:25
|
| Can you give CREATE table scripts, sample data, what you have tried so far? |
 |
|
|
ivra
Starting Member
18 Posts |
Posted - 2009-03-18 : 04:07:24
|
| Sample dataUserInfouser_id registration_dateS123--- 10/5/2007S124--- 11/3/2007S125--- 10/30/2007S126--- 9/4/2007S127--- 11/26/2007S128--- 10/18/2007S129--- 9/8/2007S130--- 12/27/2007S131--- 1/13/2008S132--- 12/18/2007ListingInfoseller_id gmvS123---- 64.79S124---- 340.5S125---- 320.45S126---- 89.02S127---- 434.7S128---- 205.12S129---- 870.52S130---- 308.62S131---- 1102.47S132---- 859.53I dont have any script yet. |
 |
|
|
darkdusky
Aged Yak Warrior
591 Posts |
Posted - 2009-03-19 : 06:08:15
|
| If tables already exist: Right click on table: Script table as / Create To.What have you tried so far? |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-03-19 : 12:44:28
|
| do you've month info in listing table to designate when seller got a particular gmv? |
 |
|
|
ivra
Starting Member
18 Posts |
Posted - 2009-03-24 : 04:33:01
|
quote: Originally posted by visakh16 do you've month info in listing table to designate when seller got a particular gmv?
Hi visakh16,Yes, the month info designate when the seller gmv. eg: regdate of 10/5/2007 has gmv of 64.79 |
 |
|
|
|
|
|