Ad
Code
Diff
  • SELECT * FROM employees ORDER BY employees.salary desc LIMIT 10
    • -- Code Here
    • SELECT * FROM employees ORDER BY employees.salary desc LIMIT 10
Code
Diff
  • SELECT transactions.date, transactions.store, transactions.total_price FROM transactions
    WHERE transactions.date>='2022-01-01' and transactions.date<='2022-01-03' 
    • -- Code Here
    • SELECT transactions.date, transactions.store, transactions.total_price FROM transactions
    • WHERE transactions.date>='2022-01-01' and transactions.date<='2022-01-03'
Code
Diff
  • SELECT * FROM transactions
    WHERE transactions.store='BIE Store Bandung' and transactions.total_price<=100000
    • -- Code Here
    • SELECT * FROM transactions
    • WHERE transactions.store='BIE Store Bandung' and transactions.total_price<=100000
Code
Diff
  • SELECT * FROM customers 
    WHERE customers.kota='Tasikmalaya'
    • -- Code here
    • SELECT * FROM customers
    • WHERE customers.kota='Tasikmalaya'
Code
Diff
  • SELECT customers.name, customers.age FROM customers
    • -- Code Here
    • SELECT customers.name, customers.age FROM customers
Code
Diff
  • SELECT customers.name nama, customers.age umur FROM customers
    • -- Code Here
    • SELECT customers.name nama, customers.age umur FROM customers
Code
Diff
  • SELECT * FROM customers
    • -- Code here
    • SELECT * FROM customers
Code
Diff
  • select * from employees where employees.salary>5000000 and employees.months>=12
    order by employees.salary desc
    • -- Code Here
    • select * from employees where employees.salary>5000000 and employees.months>=12
    • order by employees.salary desc
Code
Diff
  • select * from transactions where transactions.customer is not null
    order by transactions.store asc, transactions.total_price desc
    • -- Code Here
    • select * from transactions where transactions.customer is not null
    • order by transactions.store asc, transactions.total_price desc
Code
Diff
  • select * from transactions
    order by total_price desc
    • -- Code Here
    • select * from transactions
    • order by total_price desc
Code
Diff
  • select * from transactions
    
    order by transactions.total_price asc
    • -- Code Here
    • select * from transactions
    • order by transactions.total_price asc