Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. Find the username and level of the players that own a pistol
  2. Select distinct username, level
  3. from player, firearm
  4. where type=’pistol’;
  5.  
  6. List the firearms and the value of them that are shotguns
  7. Select distinct item_url, value
  8. from item, firearm
  9. where type=’shotgun’;
  10.  
  11. How many traders are there?
  12. Select count(trader_name) as ‘Number of Traders’
  13. from traders;
  14.  
  15. Find the average money of the users that have more than 500
  16. Select avg(money)
  17. from player
  18. where money>100;
  19.  
  20. Find the firearm and penetration where the damage is below 50
  21. Select item_url, penetration
  22. from caliber
  23. where damage<50;
  24.  
  25. Find the username of the players that bought more than 5 items in descending order
  26. Select username
  27. from player_buys by username
  28. having count(item_url)>5
  29. order by username desc;
  30.  
  31. Find the item where the recoil_mod from the attachment is 25
  32. Select item.url
  33. From item, attachment
  34. Where attachment.recoil_mod=’25’;
  35.  
  36. Find the username and money a player has where their name starts with ‘An’
  37. Select username, money
  38. From player
  39. Where username like ‘an%’;
  40.  
  41.  
  42. List the users and guns the players have that are above level 20 and have money above 1000 in ascending order
  43. Select username, item_url
  44. From player, owns
  45. Where level>20 AND money>1000
  46. Order by username asc;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement