Ad
Code
Diff
  • select * from employees
    order by salary desc
    limit 10;
    • -- Code Here
    • select * from employees
    • order by salary desc
    • limit 10;
Code
Diff
  • select * from transactions
    where customer is not null
    order by store asc, total_price desc;
    • -- Code Here
    • select * from transactions
    • where customer is not null
    • order by store asc, 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  total_price asc;
    • -- Code Here
    • select * from transactions
    • order by total_price asc;
Code
Diff
  • select * from transactions
    where customer like 'S%r';
    • -- Code Here
    • select * from transactions
    • where customer like 'S%r';
Code
Diff
  • select * from transactions
    where customer is not null;
    • -- Code Here
    • select * from transactions
    • where customer is not null;
Code
Diff
  • select * from transactions
    where customer is null;
    • -- Code Here
    • select * from transactions
    • where customer is null;
Code
Diff
  • select * from transactions
    where store not in ('BIE Store Jakarta','BIE Store Bandung');
    • -- Code Here
    • select * from transactions
    • where store not in ('BIE Store Jakarta','BIE Store Bandung');
Code
Diff
  • select * from transactions
    where store in ('BIE Store Bandung',
    'BIE Store Palembang',
    'BIE Store Malang');
    • -- Code Here
    • select * from transactions
    • where store in ('BIE Store Bandung',
    • 'BIE Store Palembang',
    • 'BIE Store Malang');
Code
Diff
  • select date, store, total_price from transactions
    where date between '2022-01-01' and '2022-01-03'
    ;
    • -- Code Here
    • select date, store, total_price from transactions
    • where date between '2022-01-01' and '2022-01-03'
    • ;
Code
Diff
  • select * from transactions
    where store= 'BIE Store Bandung'
    and total_price <= '100000'
    ;
    • -- Code Here
    • select * from transactions
    • where store= 'BIE Store Bandung'
    • and total_price <= '100000'
    • ;
Code
Diff
  • select * from customers
    where kota = 'Tasikmalaya'
    ;
    • -- Code here
    • select * from customers
    • where kota = 'Tasikmalaya'
    • ;
Code
Diff
  • -- Code Here
    select name as nama, age as umur from customers;
    • --- Code Here
    • -- Code Here
    • select name as nama, age as umur from customers;
Code
Diff
  • -- Code Here
    
    select name, age from customers;
    • --- Code Here
    • -- Code Here
    • select name, age from customers;
Code
Diff
  • -- Code here
    select * from customers;
    • -- Code here
    • select * from customers;