Ad
Code
Diff
  • -- Code Here
    select*from transactions where customer like 'S%r';
    • --- Code Here
    • -- Code Here
    • select*from transactions where customer like 'S%r';
Code
Diff
  • -- Code Here
    select*from transactions
    where customer is not NULL;
    • --- Code Here
    • -- Code Here
    • select*from transactions
    • where customer is not NULL;
Code
Diff
  • -- Code Here
    select*from transactions
    where customer is NULL;
    • --- Code Here
    • -- Code Here
    • select*from transactions
    • where customer is NULL;
Code
Diff
  • -- Code Here
    SELECT*FROM transactions
    WHERE store Not in ('BIE Store Jakarta',
    'BIE Store Bandung');
    • --- Code Here
    • -- Code Here
    • SELECT*FROM transactions
    • WHERE store Not in ('BIE Store Jakarta',
    • 'BIE Store Bandung');
Code
Diff
  • -- Code Here
    SELECT*FROM transactions
    WHERE store in ('BIE Store Bandung',
    'BIE Store Palembang',
    'BIE Store Malang') ;
    • --- Code Here
    • -- Code Here
    • SELECT*FROM transactions
    • WHERE store in ('BIE Store Bandung',
    • 'BIE Store Palembang',
    • 'BIE Store Malang') ;
Code
Diff
  • -- Code Here
    SELECT date,store,total_price 
    FROM transactions
    WHERE date >= '2022-01-01' AND date <= '2022-01-03'
    • --- Code Here
    • -- Code Here
    • SELECT date,store,total_price
    • FROM transactions
    • WHERE date >= '2022-01-01' AND date <= '2022-01-03'
Code
Diff
  • -- Code Here
    SELECT * FROM transactions
    WHERE store = 'BIE Store Bandung' AND 
    total_price <= 100000 ;
    • --- Code Here
    • -- Code Here
    • SELECT * FROM transactions
    • WHERE store = 'BIE Store Bandung' AND
    • total_price <= 100000 ;
Code
Diff
  • -- Code here
    SELECT * FROM customers
    WHERE kota = 'Tasikmalaya';
    • --- Code here
    • -- 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;