Ad
Code
Diff
  • select * from transactions
    where customer like 'D%' or customer like 'E%';
    • -- Code Here
    • select * from transactions
    • where customer like 'D%' or customer like 'E%';
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 employees 
    where salary >= 5000000 and months >= 12
    order by salary desc;
    • -- Code Here
    • select * from employees
    • where salary >= 5000000 and months >= 12
    • order by salary 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;
    • -- Code Here
    • select * from transactions
    • order by total_price;
Code
Diff
  • select * from transactions
    where customer like 'S%' and customer like '%r';
    • -- Code Here
    • select * from transactions
    • where customer like 'S%' and customer like '%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 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 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
  • select name, age from customers;
    • -- Code Here
    • select name, age from customers;
Loading more items...